12 #ifndef TrkValidationNtupleRIOs_h
13 #define TrkValidationNtupleRIOs_h
22 #pragma link C++ class vector< int >;
23 #pragma link C++ class vector< float >;
60 #ifdef TrkValidationNtupleRIOs_cxx
66 TFile *
f = (TFile*)gROOT->GetListOfFiles()->FindObject(
"TrkValidation2.root");
68 f =
new TFile(
"TrkValidation2.root");
69 f->cd(
"TrkValidation2.root:/Validation");
80 delete fChain->GetCurrentFile();
86 if (!fChain)
return 0;
87 return fChain->GetEntry(
entry);
92 if (!fChain)
return -5;
93 Long64_t centry = fChain->LoadTree(
entry);
94 if (centry < 0)
return centry;
95 if (!fChain->InheritsFrom(TChain::Class()))
return centry;
96 TChain *
chain = (TChain*)fChain;
97 if (
chain->GetTreeNumber() != fCurrent) {
98 fCurrent =
chain->GetTreeNumber();
123 fChain->SetMakeClass(1);
125 fChain->SetBranchAddress(
"EventNumber", &TRT_EventNumber, &b_TRT_event_number);
126 fChain->SetBranchAddress(
"TRT_nRIOs", &TRT_nRIOs, &b_Number_of_RIOs);
127 fChain->SetBranchAddress(
"TRT_DriftRadius", &TRT_DriftRadius, &b_TRT_DriftRadius);
128 fChain->SetBranchAddress(
"TRT_SurfaceX", &TRT_SurfaceX, &b_TRT_SurfaceX);
129 fChain->SetBranchAddress(
"TRT_SurfaceY", &TRT_SurfaceY, &b_TRT_SurfaceY);
130 fChain->SetBranchAddress(
"TRT_SurfaceZ", &TRT_SurfaceZ, &b_TRT_SurfaceZ);
159 #endif // #ifdef TrkValidationNtupleRIOs_cxx