3 #include "FairMCApplication.h"
5 #include "FairVolume.h"
6 #include "FairVolumeList.h"
7 #include "TGeoMCGeometry.h"
8 #include "TGeoManager.h"
9 #include "TGeoVolume.h"
10 #include "TGeoMedium.h"
12 #include "FairGeoLoader.h"
13 #include "FairGeoInterface.h"
15 #include "FairGeoRootBuilder.h"
16 #include "FairRuntimeDb.h"
18 #include "TObjArray.h"
19 #include "FairGeoVolume.h"
20 #include "FairGeoNode.h"
27 FairGeoLoader *loader=FairGeoLoader::Instance();
28 FairGeoInterface *GeoInterface =loader->getGeoInterface();
30 MGeo->setGeomFile(GetGeometryFileName());
31 GeoInterface->addGeoModule(MGeo);
32 Bool_t rc = GeoInterface->readSet(MGeo);
33 if ( rc ) MGeo->create(loader->getGeoBuilder());
35 TList* volList = MGeo->getListOfVolumes();
37 FairRun *
fRun = FairRun::Instance();
38 FairRuntimeDb *
rtdb= FairRun::Instance()->GetRuntimeDb();
43 TListIter iter(volList);
44 FairGeoNode* node = NULL;
45 FairGeoVolume *aVol=NULL;
47 while( (node = (FairGeoNode*)iter.Next()) ) {
48 aVol =
dynamic_cast<FairGeoVolume*
> ( node );
49 if ( node->isSensitive() ) {
50 fSensNodes->AddLast( aVol );
52 fPassNodes->AddLast( aVol );
56 par->setInputVersion(fRun->GetRunId(),1);
67 : FairModule(name ,Title)
TObjArray * GetGeoPassiveNodes()
TObjArray * GetGeoSensitiveNodes()