#include <PndCave.h>
Definition at line 8 of file PndCave.h.
PndCave::PndCave |
( |
const char * |
name, |
|
|
const char * |
Title = "Exp Cave" |
|
) |
| |
void PndCave::ConstructGeometry |
( |
| ) |
|
|
virtual |
Definition at line 25 of file PndCave.cxx.
References Bool_t, fRun, PndGeoPassivePar::GetGeoPassiveNodes(), PndGeoPassivePar::GetGeoSensitiveNodes(), par, and rtdb.
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);
TObjArray * GetGeoPassiveNodes()
TObjArray * GetGeoSensitiveNodes()
The documentation for this class was generated from the following files: