8 #include "FairGeoInterface.h"
9 #include "FairGeoLoader.h"
10 #include "FairGeoNode.h"
12 #include "FairRuntimeDb.h"
15 #include "TObjArray.h"
18 FairGeoLoader* loader = FairGeoLoader::Instance();
19 FairGeoInterface* GeoInterface = loader->getGeoInterface();
21 MGeo->setGeomFile(GetGeometryFileName());
22 GeoInterface->addGeoModule(MGeo);
23 Bool_t rc = GeoInterface->readSet(MGeo);
24 if (rc) MGeo->create(loader->getGeoBuilder());
26 TList* volList = MGeo->getListOfVolumes();
28 FairRun* fRun = FairRun::Instance();
29 FairRuntimeDb* rtdb = FairRun::Instance()->GetRuntimeDb();
35 TListIter iter(volList);
36 FairGeoNode* node = NULL;
37 FairGeoVolume* aVol = NULL;
39 while ((node = (FairGeoNode*) iter.Next())) {
40 aVol =
dynamic_cast<FairGeoVolume*
>(node);
41 if (node->isSensitive()) {
42 fSensNodes->AddLast(aVol);
44 fPassNodes->AddLast(aVol);
48 par->setInputVersion(fRun->GetRunId(), 1);
54 : FairModule(name, Title), world() {