er  dev
ERCave.cxx
1 // -------------------------------------------------------------------------
2 // ----- ERCave source file -----
3 // ----- Created 11/12/15 by V.Schetinin -----
4 // -------------------------------------------------------------------------
5 
6 #include "FairMCApplication.h"
7 #include "ERCave.h"
8 #include "FairVolume.h"
9 #include "FairVolumeList.h"
10 #include "TGeoMCGeometry.h"
11 #include "TGeoManager.h"
12 #include "TGeoVolume.h"
13 #include "TGeoMedium.h"
14 
15 #include "FairGeoLoader.h"
16 #include "FairGeoInterface.h"
17 #include "FairGeoRootBuilder.h"
18 #include "FairRuntimeDb.h"
19 #include "TObjArray.h"
20 #include "FairGeoVolume.h"
21 #include "FairGeoNode.h"
22 #include "FairRun.h"
23 
24 #include "ERGeoCave.h"
25 #include "ERGeoPassivePar.h"
26 
27 
28 ClassImp(ERCave)
29 void ERCave::ConstructGeometry()
30 {
31  FairGeoLoader *loader=FairGeoLoader::Instance();
32  FairGeoInterface *GeoInterface =loader->getGeoInterface();
33  ERGeoCave *MGeo=new ERGeoCave();
34  MGeo->setGeomFile(GetGeometryFileName());
35  GeoInterface->addGeoModule(MGeo);
36  Bool_t rc = GeoInterface->readSet(MGeo);
37  if ( rc ) MGeo->create(loader->getGeoBuilder());
38 
39  TList* volList = MGeo->getListOfVolumes();
40  // store geo parameter
41 
42 }
43 
44 ERCave::ERCave(){
45 }
46 
47 ERCave::~ERCave(){
48 }
49 
50 
51 ERCave::ERCave(const char * name, const char *Title)
52  : FairModule(name ,Title)
53 {
54  world[0] = 0;
55  world[1] = 0;
56  world[2] = 0;
57 }
Definition: ERCave.h:13