971 |
if (sel_tree) |
if (sel_tree) |
972 |
sel_tree->Delete();; |
sel_tree->Delete();; |
973 |
sel_tree = NULL; |
sel_tree = NULL; |
974 |
|
|
975 |
|
if (proc_tree) |
976 |
|
proc_tree->Delete(); |
977 |
|
proc_tree = NULL; |
978 |
// |
// |
979 |
// Close file |
// Close file |
980 |
// |
// |
3508 |
cout << ">>> Found ProcessingInfo <<<" << endl; |
cout << ">>> Found ProcessingInfo <<<" << endl; |
3509 |
// L->SetBranchAddress("RunEntry",&irun); |
// L->SetBranchAddress("RunEntry",&irun); |
3510 |
P->SetBranchAddress("ProcInfo", &proc_obj);//NEWNEW |
P->SetBranchAddress("ProcInfo", &proc_obj);//NEWNEW |
3511 |
|
proc_tree = P; |
3512 |
} |
} |
3513 |
// -------------------------------------------- |
// -------------------------------------------- |
3514 |
// return the pamela chain with all the friends |
// return the pamela chain with all the friends |
3515 |
// -------------------------------------------- |
// -------------------------------------------- |
3516 |
|
|
3517 |
pam_tree = Trout; |
pam_tree = Trout; |
|
|
|
3518 |
return Trout; |
return Trout; |
3519 |
} |
} |
3520 |
|
|
5212 |
// cout << i<< "\t | "<<GetRunInfo()->ID<<"\t "<<GetRunInfo()->NEVENTS<< "\t "<<GetRunInfo()->RUNHEADER_TIME<<" <---> "<<GetRunInfo()->RUNTRAILER_TIME<<endl; |
// cout << i<< "\t | "<<GetRunInfo()->ID<<"\t "<<GetRunInfo()->NEVENTS<< "\t "<<GetRunInfo()->RUNHEADER_TIME<<" <---> "<<GetRunInfo()->RUNTRAILER_TIME<<endl; |
5213 |
run_tree_clone->Fill(); |
run_tree_clone->Fill(); |
5214 |
} |
} |
5215 |
if ( PROC ){ |
// |
5216 |
|
// replicate processinginfo tree |
5217 |
|
// |
5218 |
|
if ( PROC ){ // EMEMEM |
5219 |
proc_tree_clone = new TTree("ProcessingInfo","Log of data processing"); |
proc_tree_clone = new TTree("ProcessingInfo","Log of data processing"); |
5220 |
proc_tree_clone->Branch("ProcInfo", "ProcInfo", GetPointerTo("ProcInfo")); |
proc_tree_clone->Branch("ProcInfo", "ProcInfo", GetPointerTo("ProcInfo")); |
5221 |
cout << "ProcessingInfo: branch ProcessingInfo" << endl; |
cout << "ProcessingInfo: branch ProcessingInfo" << endl; |
5226 |
// cout << "irun\t | RUN\t NEVENTS\t absolute time"<<endl; |
// cout << "irun\t | RUN\t NEVENTS\t absolute time"<<endl; |
5227 |
for (Int_t i = 0; i < proc_tree->GetEntries(); i++) { |
for (Int_t i = 0; i < proc_tree->GetEntries(); i++) { |
5228 |
proc_tree->GetEntry(i); |
proc_tree->GetEntry(i); |
5229 |
// cout << i<< "\t | "<<GetRunInfo()->ID<<"\t "<<GetRunInfo()->NEVENTS<< "\t "<<GetRunInfo()->RUNHEADER_TIME<<" <---> "<<GetRunInfo()->RUNTRAILER_TIME<<endl; |
cout << i<< "\t | "<<endl; |
5230 |
proc_tree_clone->Fill(); |
proc_tree_clone->Fill(); |
5231 |
} |
} |
5232 |
if ( SELLI != 2 || true ){ |
if ( SELLI != 2 || true ){ |
5233 |
|
cout << "|| "<<endl; |
5234 |
proc_obj->runID = 0; |
proc_obj->runID = 0; |
5235 |
|
cout << "|||d "<<endl; |
5236 |
TTimeStamp *dt = new TTimeStamp(); |
TTimeStamp *dt = new TTimeStamp(); |
5237 |
proc_obj->date = dt->AsString(); |
proc_obj->date = dt->AsString(); |
5238 |
delete dt; |
delete dt; |
5239 |
|
cout << "|||f "<<endl; |
5240 |
proc_obj->commandLine = Form("PamelaLevel2 was called"); |
proc_obj->commandLine = Form("PamelaLevel2 was called"); |
5241 |
|
cout << "|||g "<<endl; |
5242 |
proc_obj->outputFilename = ""; |
proc_obj->outputFilename = ""; |
5243 |
|
cout << "|||h "<<endl; |
5244 |
proc_obj->localDir = gSystem->WorkingDirectory(); |
proc_obj->localDir = gSystem->WorkingDirectory(); |
5245 |
|
cout << "|||j "<<endl; |
5246 |
proc_obj->uname = gSystem->GetFromPipe("uname -a"); |
proc_obj->uname = gSystem->GetFromPipe("uname -a"); |
5247 |
|
cout << "|||s "<<endl; |
5248 |
proc_obj->DB = Form("mysql://%s/%s",dbc->GetHost(),dbc->GetDB()); |
proc_obj->DB = Form("mysql://%s/%s",dbc->GetHost(),dbc->GetDB()); |
5249 |
|
cout << "||| "<<endl; |
5250 |
proc_tree_clone->Fill(); |
proc_tree_clone->Fill(); |
5251 |
} |
} |
5252 |
cout << "----------------------------------------------------" << endl; |
cout << "----------------------------------------------------" << endl; |
5469 |
}; |
}; |
5470 |
} |
} |
5471 |
|
|
5472 |
if ( PROC ){ |
if ( PROC && false ){//EMEMEMEM |
5473 |
proc_tree_clone->Write("ProcessingInfo",TObject::kOverwrite); |
proc_tree_clone->Write("ProcessingInfo",TObject::kOverwrite); |
5474 |
} |
} |
5475 |
cout << "+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+" << endl; |
cout << "+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+" << endl; |