159 TFile *
f = (TFile*)gROOT->GetListOfFiles()->FindObject(
"root://castoratlas//castor/cern.ch/grid/atlas/atlasscratchdisk/user.lorenzi/user.lorenzi.T1.TRKVAL.NNtrain.clustersOnTrack.110701122007_sub022943841/user.lorenzi.000160.TRKVAL._00027.root");
161 f =
new TFile(
"root://castoratlas//castor/cern.ch/grid/atlas/atlasscratchdisk/user.lorenzi/user.lorenzi.T1.TRKVAL.NNtrain.clustersOnTrack.110701122007_sub022943841/user.lorenzi.000160.TRKVAL._00027.root");
172 delete fChain->GetCurrentFile();
178 if (!fChain)
return 0;
179 return fChain->GetEntry(
entry);
184 if (!fChain)
return -5;
185 Long64_t centry = fChain->LoadTree(
entry);
186 if (centry < 0)
return centry;
187 if (!fChain->InheritsFrom(TChain::Class()))
return centry;
188 TChain *
chain = (TChain*)fChain;
189 if (
chain->GetTreeNumber() != fCurrent) {
190 fCurrent =
chain->GetTreeNumber();
205 cout <<
"Init RIOs" << endl;
209 PixClusLocXcentroid = 0;
210 PixClusLocYcentroid = 0;
211 PixClusLocX_LorentzCorrection = 0;
221 PixClusGroupsize = 0;
233 PixClusAmbiguous = 0;
235 PixClusSplitProb1 = 0;
236 PixClusSplitProb2 = 0;
245 PixHitBarrelEndcap = 0;
253 PixHitAngle_Lorcorr = 0;
254 PixHitEnergyLoss = 0;
256 PixHitPDGParticle = 0;
262 fChain->SetMakeClass(1);
264 fChain->SetBranchAddress(
"PixelEventNumber", &PixelEventNumber, &b_event_number);
265 fChain->SetBranchAddress(
"PixelClusNum", &PixelClusNum, &b_number_cluster_per_event);
266 fChain->SetBranchAddress(
"LVL1TriggerType", &LVL1TriggerType, &b_type_of_trigger);
267 fChain->SetBranchAddress(
"PixClusLocX", &PixClusLocX, &b_PixClusLocX);
268 fChain->SetBranchAddress(
"PixClusLocY", &PixClusLocY, &b_PixClusLocY);
269 fChain->SetBranchAddress(
"PixClusLocXcentroid", &PixClusLocXcentroid, &b_PixClusLocXcentroid);
270 fChain->SetBranchAddress(
"PixClusLocYcentroid", &PixClusLocYcentroid, &b_PixClusLocYcentroid);
271 fChain->SetBranchAddress(
"PixClusLocX_LorentzCorrection", &PixClusLocX_LorentzCorrection, &b_PixClusLocX_LorentzCorrection);
272 fChain->SetBranchAddress(
"PixClusGloX", &PixClusGloX, &b_PixClusGloX);
273 fChain->SetBranchAddress(
"PixClusGloY", &PixClusGloY, &b_PixClusGloY);
274 fChain->SetBranchAddress(
"PixClusGloZ", &PixClusGloZ, &b_PixClusGloZ);
275 fChain->SetBranchAddress(
"PixClusEta", &PixClusEta, &b_PixClusEta);
276 fChain->SetBranchAddress(
"PixClusPhi", &PixClusPhi, &b_PixClusPhi);
277 fChain->SetBranchAddress(
"PixECBarrel", &PixECBarrel, &b_PixECBarrel);
278 fChain->SetBranchAddress(
"PixClusLayer", &PixClusLayer, &b_PixClusLayer);
279 fChain->SetBranchAddress(
"PixEtaModule", &PixEtaModule, &b_PixEtaModule);
280 fChain->SetBranchAddress(
"PixPhiModule", &PixPhiModule, &b_PixPhiModule);
281 fChain->SetBranchAddress(
"PixClusGroupsize", &PixClusGroupsize, &b_PixClusGroupsize);
282 fChain->SetBranchAddress(
"PixClusRow", &PixClusRow, &b_PixClusRow);
283 fChain->SetBranchAddress(
"PixClusCol", &PixClusCol, &b_PixClusCol);
284 fChain->SetBranchAddress(
"PixDeltaRow", &PixDeltaRow, &b_PixDeltaRow);
285 fChain->SetBranchAddress(
"PixDeltaCol", &PixDeltaCol, &b_PixDeltaCol);
286 fChain->SetBranchAddress(
"PixOmegaPhi", &PixOmegaPhi, &b_PixOmegaPhi);
287 fChain->SetBranchAddress(
"PixOmegaEta", &PixOmegaEta, &b_PixOmegaEta);
288 fChain->SetBranchAddress(
"PixClusToT", &PixClusToT, &b_PixClusToT);
289 fChain->SetBranchAddress(
"PixClusCharge", &PixClusCharge, &b_PixClusCharge);
290 fChain->SetBranchAddress(
"PixClusLvl1", &PixClusLvl1, &b_PixClusLvl1);
291 fChain->SetBranchAddress(
"PixClusGanged", &PixClusGanged, &b_PixClusGanged);
292 fChain->SetBranchAddress(
"PixClusFake", &PixClusFake, &b_PixClusFake);
293 fChain->SetBranchAddress(
"PixClusAmbiguous", &PixClusAmbiguous, &b_PixClusAmbiguous);
294 fChain->SetBranchAddress(
"PixClusIsSplit", &PixClusIsSplit, &b_PixClusIsSplit);
295 fChain->SetBranchAddress(
"PixClusSplitProb1", &PixClusSplitProb1, &b_PixClusSplitProb1);
296 fChain->SetBranchAddress(
"PixClusSplitProb2", &PixClusSplitProb2, &b_PixClusSplitProb2);
297 fChain->SetBranchAddress(
"PixClusErrX", &PixClusErrX, &b_PixClusErrX);
298 fChain->SetBranchAddress(
"PixClusErrY", &PixClusErrY, &b_PixClusErrY);
299 fChain->SetBranchAddress(
"PixelHitsNum", &PixelHitsNum, &b_number_hits_per_event);
300 fChain->SetBranchAddress(
"PixHitXstartpos", &PixHitXstartpos, &b_PixHitXstartpos);
301 fChain->SetBranchAddress(
"PixHitYstartpos", &PixHitYstartpos, &b_PixHitYstartpos);
302 fChain->SetBranchAddress(
"PixHitZstartpos", &PixHitZstartpos, &b_PixHitZstartpos);
303 fChain->SetBranchAddress(
"PixHitXendpos", &PixHitXendpos, &b_PixHitXendpos);
304 fChain->SetBranchAddress(
"PixHitYendpos", &PixHitYendpos, &b_PixHitYendpos);
305 fChain->SetBranchAddress(
"PixHitZendpos", &PixHitZendpos, &b_PixHitZendpos);
306 fChain->SetBranchAddress(
"PixHitBarrelEndcap", &PixHitBarrelEndcap, &b_PixHitBarrelEndcap);
307 fChain->SetBranchAddress(
"PixHitLayerDisk", &PixHitLayerDisk, &b_PixHitLayerDisk);
308 fChain->SetBranchAddress(
"PixHitEtaModule", &PixHitEtaModule, &b_PixHitEtaModule);
309 fChain->SetBranchAddress(
"PixHitPhiModule", &PixHitPhiModule, &b_PixHitPhiModule);
310 fChain->SetBranchAddress(
"PixHitEtaIndex", &PixHitEtaIndex, &b_PixHitEtaIndex);
311 fChain->SetBranchAddress(
"PixHitPhiIndex", &PixHitPhiIndex, &b_PixHitPhiIndex);
312 fChain->SetBranchAddress(
"PixHitAngle", &PixHitAngle, &b_PixHitAngle);
313 fChain->SetBranchAddress(
"PixHitAngle2", &PixHitAngle2, &b_PixHitAngle2);
314 fChain->SetBranchAddress(
"PixHitAngle_Lorcorr", &PixHitAngle_Lorcorr, &b_PixHitAngle_Lorcorr);
315 fChain->SetBranchAddress(
"PixHitEnergyLoss", &PixHitEnergyLoss, &b_PixHitEnergyLoss);
316 fChain->SetBranchAddress(
"PixHitTime", &PixHitTime, &b_PixHitTime);
317 fChain->SetBranchAddress(
"PixHitPDGParticle", &PixHitPDGParticle, &b_PixHitPDGParticle);
318 fChain->SetBranchAddress(
"PixHitFlag", &PixHitFlag, &b_PixHitFlag);
347 #endif // #ifdef RIOs_cxx