| 969 |
|
|
| 970 |
cout<<endl<<" Number of entries: "<<Trout->GetEntries()<<endl<<endl; |
cout<<endl<<" Number of entries: "<<Trout->GetEntries()<<endl<<endl; |
| 971 |
|
|
| 972 |
|
pam_tree = (TChain*)Trout; |
| 973 |
|
|
| 974 |
return Trout; |
return Trout; |
| 975 |
|
|
| 976 |
} |
} |
| 1499 |
R->SetBranchAddress("SoftInfo", GetPointerTo("SoftInfo")); // Emiliano |
R->SetBranchAddress("SoftInfo", GetPointerTo("SoftInfo")); // Emiliano |
| 1500 |
cout << "Software : set branch address SoftInfo"<<endl; // Emiliano |
cout << "Software : set branch address SoftInfo"<<endl; // Emiliano |
| 1501 |
} |
} |
| 1502 |
|
|
| 1503 |
|
run_tree = (TChain*)R; |
| 1504 |
|
|
| 1505 |
return R; |
return R; |
| 1506 |
|
|
| 1507 |
} |
} |
| 2299 |
} |
} |
| 2300 |
if(sel_tree_clone)sel_tree_clone->Fill(); |
if(sel_tree_clone)sel_tree_clone->Fill(); |
| 2301 |
// if( irunentry == 0 || run_tree_clone->GetEntries()==0 )run_tree_clone->Fill(); |
// if( irunentry == 0 || run_tree_clone->GetEntries()==0 )run_tree_clone->Fill(); |
| 2302 |
Int_t nstoredruns = run_tree_clone->GetEntries(); |
// Int_t nstoredruns = run_tree_clone->GetEntries(); |
| 2303 |
if( irun == nstoredruns )run_tree_clone->Fill(); |
// if( irun == nstoredruns )run_tree_clone->Fill(); |
| 2304 |
else if( irun > nstoredruns || irun < nstoredruns-1){ |
// else if( irun > nstoredruns || irun < nstoredruns-1){ |
| 2305 |
cout << " PamLevel2::FillCloneTrees() -- ERROR -- current run "<< irun <<" stored runs "<< nstoredruns <<endl; |
// cout << " PamLevel2::FillCloneTrees() -- ERROR -- current run "<< irun <<" stored runs "<< nstoredruns <<endl; |
| 2306 |
} |
// } |
| 2307 |
|
|
| 2308 |
} |
} |
| 2309 |
|
|
| 2310 |
|
|
| 2352 |
Int_t PamLevel2::GetEntry(Int_t iee){ |
Int_t PamLevel2::GetEntry(Int_t iee){ |
| 2353 |
|
|
| 2354 |
if(!pam_tree){ |
if(!pam_tree){ |
| 2355 |
cout << " Int_t PamLevel2::GetEntry(Int_t) -- ERROR -- level2 trees not loeaded"<<endl; |
cout << " Int_t PamLevel2::GetEntry(Int_t) -- ERROR -- level2 trees not loaded"<<endl; |
| 2356 |
return 0; |
return 0; |
| 2357 |
} |
} |
| 2358 |
if(!run_tree ){ |
if(!run_tree ){ |
| 2359 |
cout << " Int_t PamLevel2::GetEntry(Int_t) -- ERROR -- run tree not loeaded"<<endl; |
cout << " Int_t PamLevel2::GetEntry(Int_t) -- ERROR -- run tree not loaded"<<endl; |
| 2360 |
return 0; |
return 0; |
| 2361 |
} |
} |
| 2362 |
|
|
| 2366 |
if( !pam_tree->GetEntry(ii) ) return 0; |
if( !pam_tree->GetEntry(ii) ) return 0; |
| 2367 |
//------------------------------- |
//------------------------------- |
| 2368 |
ii = iee; |
ii = iee; |
| 2369 |
UpdateRunInfo(run_tree,ii); |
Bool_t UPDATED = UpdateRunInfo(run_tree,ii); |
| 2370 |
if(SELLI==0)irunentry = iee-runfirstentry; |
if(SELLI==0)irunentry = iee-runfirstentry; |
| 2371 |
|
if(UPDATED && run_tree_clone)run_tree_clone->Fill(); |
| 2372 |
|
|
| 2373 |
// cout << "PamLevel2::GetEntry("<<iee<<") "<<irun<<" "<<runfirstentry<<" "<<irunentry<<endl; |
// cout << "PamLevel2::GetEntry("<<iee<<") "<<irun<<" "<<runfirstentry<<" "<<irunentry<<endl; |
| 2374 |
|
|