FairRoot/PandaRoot
Public Member Functions | Private Attributes | List of all members
PndCave Class Reference

#include <PndCave.h>

Inheritance diagram for PndCave:

Public Member Functions

 PndCave (const char *name, const char *Title="Exp Cave")
 
 PndCave ()
 
virtual ~PndCave ()
 
virtual void ConstructGeometry ()
 

Private Attributes

Double_t world [3]
 

Detailed Description

Definition at line 8 of file PndCave.h.

Constructor & Destructor Documentation

PndCave::PndCave ( const char *  name,
const char *  Title = "Exp Cave" 
)

Definition at line 66 of file PndCave.cxx.

References world.

67  : FairModule(name ,Title)
68 {
69  world[0] = 0;
70  world[1] = 0;
71  world[2] = 0;
72 }
TString name
Double_t world[3]
Definition: PndCave.h:17
PndCave::PndCave ( )

Definition at line 59 of file PndCave.cxx.

59  {
60 }
PndCave::~PndCave ( )
virtual

Definition at line 62 of file PndCave.cxx.

63 {
64 
65 }

Member Function Documentation

void PndCave::ConstructGeometry ( )
virtual

Definition at line 25 of file PndCave.cxx.

References Bool_t, fRun, PndGeoPassivePar::GetGeoPassiveNodes(), PndGeoPassivePar::GetGeoSensitiveNodes(), par, and rtdb.

26 {
27  FairGeoLoader *loader=FairGeoLoader::Instance();
28  FairGeoInterface *GeoInterface =loader->getGeoInterface();
29  PndGeoCave *MGeo=new PndGeoCave();
30  MGeo->setGeomFile(GetGeometryFileName());
31  GeoInterface->addGeoModule(MGeo);
32  Bool_t rc = GeoInterface->readSet(MGeo);
33  if ( rc ) MGeo->create(loader->getGeoBuilder());
34 
35  TList* volList = MGeo->getListOfVolumes();
36  // store geo parameter
37  FairRun *fRun = FairRun::Instance();
38  FairRuntimeDb *rtdb= FairRun::Instance()->GetRuntimeDb();
39  PndGeoPassivePar* par=(PndGeoPassivePar*)(rtdb->getContainer("PndGeoPassivePar"));
40  TObjArray *fSensNodes = par->GetGeoSensitiveNodes();
41  TObjArray *fPassNodes = par->GetGeoPassiveNodes();
42 
43  TListIter iter(volList);
44  FairGeoNode* node = NULL;
45  FairGeoVolume *aVol=NULL;
46 
47  while( (node = (FairGeoNode*)iter.Next()) ) {
48  aVol = dynamic_cast<FairGeoVolume*> ( node );
49  if ( node->isSensitive() ) {
50  fSensNodes->AddLast( aVol );
51  }else{
52  fPassNodes->AddLast( aVol );
53  }
54  }
55  par->setChanged();
56  par->setInputVersion(fRun->GetRunId(),1);
57 
58 }
TObjArray * GetGeoPassiveNodes()
Double_t par[3]
FairRunAna * fRun
Definition: hit_dirc.C:58
FairRuntimeDb * rtdb
Definition: hit_dirc.C:66
TObjArray * GetGeoSensitiveNodes()

Member Data Documentation

Double_t PndCave::world[3]
private

Definition at line 17 of file PndCave.h.

Referenced by PndCave().


The documentation for this class was generated from the following files: