16 TFile *f =
new TFile(
filename,
"read");
18 cout <<
"Error, could not open input file: " <<
filename << endl;
22 TTree *tree = (TTree*)f->Get(
"wcsimGeoT");
24 TBranch *gb = tree->GetBranch(
"wcsimrootgeom");
25 gb->SetAddress(&geom);
27 Printf(
"Number of ID PMTs of the first type (e.g. 20\" PMTs in HK FD, 3\" PMTs in mPMTs in IWCD): %d", geom->
GetWCNumPMT());
29 Printf(
"Number of ID PMTs of the second type (e.g. 3\" PMTs in mPMTs in HK FD): %d", geom->
GetWCNumPMT(
true));
31 cout <<
"Tank radius & height: " 39 for(
int i = 0;
i < 10;
i++)
40 cout <<
"PMT " <<
i <<
"\tX, Y, Z: " Int_t GetODWCNumPMT() const
Detector geometry information (also containing PMT information arrays)
Float_t GetWCPMTRadius(bool hybridsecondtype=false) const
Float_t GetWCCylLength() const
WCSimRootPMT GetPMT(Int_t i, bool hybridsecondtype=false)
Float_t GetWCCylRadius() const
Int_t GetWCNumPMT(bool hybridsecondtype=false) const
int read_number_of_PMTs(const char *filename="../wcsim.root")
Float_t GetPosition(Int_t i=0) const