FairRoot/PandaRoot
PndSttRootGeometryInitTask.cxx
Go to the documentation of this file.
1 // PndSttRootGeometryInitTask
3 //
4 // Class to initialize the geometry handling of the ROOT geometry of the STT
5 //
6 // authors: Tobias Stockmanns - FZ Jülich
7 //
8 //
10 
14 
16 {}
17 
18 
20 {}
21 
22 
24 {
25  return kSUCCESS;
26 }
27 
29 {
31  return kSUCCESS;
32 }
33 
35 {
36  if ( fGeoH == nullptr )
38 
40  FairRuntimeDb* rtdb = FairRun::Instance()->GetRuntimeDb();
42  fSttParameters = (PndGeoSttPar*) rtdb->getContainer("PndGeoSttPar");
43 }
44 
46 {
47  if (fSttParameters->GetGeometryType() != 2)
48  fRunOnce = false;
49  if (fRunOnce){
50  PndSttTubeIdMapCreatorRoot idmapCreator;
51  idmapCreator.CreateTubeMap();
52  PndSttTubeMapCreatorRoot mapCreator;
53  mapCreator.CreateTubeMap();
54  fRunOnce = false;
55  std::cout << "-I- PndSttRootGeometryInitTask::Exec PndSttTubeIdMap and PndSttTubeMap created" << std::endl;
56  }
57 }
58 
59 
60 
PndGeoHandling * fGeoH
Definition: anasim.C:34
virtual void SetParContainers()
Int_t GetGeometryType()
Definition: PndGeoSttPar.h:28
virtual void Exec(Option_t *opt)
FairRuntimeDb * rtdb
Definition: hit_dirc.C:66
static PndGeoHandling * Instance()
ClassImp(PndAnaContFact)