23 cout <<
"Error, could not open input file: " <<
filename << endl;
28 TTree *gtree = (TTree*)
file->Get(
"wcsimGeoT");
31 int nevent = gtree->GetEntries();
32 printf(
"geo nevent %d\n",nevent);
39 TBranch *branch = gtree->GetBranch(
"wcsimrootgeom");
40 branch->SetAddress(&wcsimrootgeom);
44 for (ev=0;ev<nevent; ev++) {
50 printf(
"Offset x y z %f %f %f\n", wcsimrootgeom->
GetWCOffset(0),
53 printf(
"Num PMTs %d\n", numpmt);
56 for (
i=0;
i<((numpmt<20)?numpmt:20);
i++){
Detector geometry information (also containing PMT information arrays)
Float_t GetWCPMTRadius(bool hybridsecondtype=false) const
Float_t GetWCCylLength() const
int testgeo(const char *filename="../wcsim.root")
WCSimRootPMT GetPMT(Int_t i, bool hybridsecondtype=false)
Float_t GetWCCylRadius() const
PMT geometry information.
Int_t GetWCNumPMT(bool hybridsecondtype=false) const
Float_t GetWCOffset(Int_t i) const
Float_t GetOrientation(Int_t i=0) const
Float_t GetPosition(Int_t i=0) const