4 #include "FairGeoLoader.h"
5 #include "FairGeoInterface.h"
7 #include "FairGeoRootBuilder.h"
8 #include "FairRuntimeDb.h"
10 #include "TObjArray.h"
12 #include "FairGeoVolume.h"
13 #include "FairGeoNode.h"
23 : FairModule(name ,title)
28 FairGeoLoader *loader=FairGeoLoader::Instance();
29 FairGeoInterface *GeoInterface =loader->getGeoInterface();
31 MGeo->setGeomFile(GetGeometryFileName());
32 GeoInterface->addGeoModule(MGeo);
33 Bool_t rc = GeoInterface->readSet(MGeo);
34 if ( rc ) MGeo->create(loader->getGeoBuilder());
36 TList* volList = MGeo->getListOfVolumes();
38 FairRun *
fRun = FairRun::Instance();
39 FairRuntimeDb *
rtdb= FairRun::Instance()->GetRuntimeDb();
44 TListIter iter(volList);
45 FairGeoNode* node = NULL;
46 FairGeoVolume *aVol=NULL;
48 while( (node = (FairGeoNode*)iter.Next()) ) {
49 aVol =
dynamic_cast<FairGeoVolume*
> ( node );
50 if ( node->isSensitive() ) {
51 fSensNodes->AddLast( aVol );
53 fPassNodes->AddLast( aVol );
56 ProcessNodes( volList );
58 par->setInputVersion(fRun->GetRunId(),1);
TObjArray * GetGeoPassiveNodes()
TObjArray * GetGeoSensitiveNodes()
virtual void ConstructGeometry()