| 628 | 
   if (strcmp(pamdbpsw, "")) | 
   if (strcmp(pamdbpsw, "")) | 
| 629 | 
     psw = pamdbpsw; | 
     psw = pamdbpsw; | 
| 630 | 
  | 
  | 
| 631 | 
  | 
   customString = ""; | 
| 632 | 
  | 
  | 
| 633 | 
   //    sorted_tracks = 0;//new TRefArray(); | 
   //    sorted_tracks = 0;//new TRefArray(); | 
| 634 | 
  | 
  | 
| 635 | 
   CAL0 = false; | 
   CAL0 = false; | 
| 5214 | 
     //  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; | 
| 5215 | 
     run_tree_clone->Fill(); | 
     run_tree_clone->Fill(); | 
| 5216 | 
   } | 
   } | 
| 5217 | 
   if ( PROC ){ | 
   // | 
| 5218 | 
  | 
   // replicate processinginfo tree | 
| 5219 | 
  | 
   // | 
| 5220 | 
  | 
   if ( PROC ){ // EMEMEM | 
| 5221 | 
     proc_tree_clone = new TTree("ProcessingInfo","Log of data processing"); | 
     proc_tree_clone = new TTree("ProcessingInfo","Log of data processing"); | 
| 5222 | 
     proc_tree_clone->Branch("ProcInfo", "ProcInfo", GetPointerTo("ProcInfo")); | 
     proc_tree_clone->Branch("ProcInfo", "ProcInfo", GetPointerTo("ProcInfo")); | 
| 5223 | 
     cout << "ProcessingInfo: branch ProcessingInfo" << endl;   | 
     cout << "ProcessingInfo: branch ProcessingInfo" << endl;   | 
| 5228 | 
     //    cout << "irun\t | RUN\t NEVENTS\t absolute time"<<endl; | 
     //    cout << "irun\t | RUN\t NEVENTS\t absolute time"<<endl; | 
| 5229 | 
     for (Int_t i = 0; i < proc_tree->GetEntries(); i++) { | 
     for (Int_t i = 0; i < proc_tree->GetEntries(); i++) { | 
| 5230 | 
       proc_tree->GetEntry(i); | 
       proc_tree->GetEntry(i); | 
| 5231 | 
       //        cout << i<< "\t | "<<GetRunInfo()->ID<<"\t "<<GetRunInfo()->NEVENTS<< "\t "<<GetRunInfo()->RUNHEADER_TIME<<" <---> "<<GetRunInfo()->RUNTRAILER_TIME<<endl; | 
       //      cout << i<< "\t | "<<endl; | 
| 5232 | 
       proc_tree_clone->Fill(); | 
       proc_tree_clone->Fill(); | 
| 5233 | 
     } | 
     } | 
| 5234 | 
     if ( SELLI != 2 || true ){       | 
     if ( SELLI != 2 ){       | 
| 5235 | 
       proc_obj->runID = 0; | 
       proc_obj->runID = 0; | 
| 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 | 
       proc_obj->commandLine = Form("PamelaLevel2 was called"); | 
       proc_obj->commandLine = Form("PamelaLevel2 was called: CAL2 %i CAL1 %i CAL0 %i TRK2 %i TRK1 %i TRKh %i TRK0 %i TOF %i TOF0 %i TRG %i \n                                            S4 %i ND %i AC %i ORB %i GP %i EXT %i NUC %i RUN %i ISGP %i SELLI %i \n Custom string   = %s",CAL2,CAL1,CAL0,TRK2,TRK1,TRKh,TRK0,TOF,TOF0,TRG,S4,ND,AC,ORB,GP,EXT,NUC,RUN,ISGP,SELLI,customString.Data()); | 
| 5240 | 
       proc_obj->outputFilename = ""; | 
       proc_obj->outputFilename = ofile->GetName(); | 
| 5241 | 
       proc_obj->localDir = gSystem->WorkingDirectory(); | 
       proc_obj->localDir = gSystem->WorkingDirectory(); | 
| 5242 | 
       proc_obj->uname = gSystem->GetFromPipe("uname -a"); | 
       proc_obj->uname = gSystem->GetFromPipe("uname -a"); | 
| 5243 | 
  | 
       if (!dbc || (dbc && !dbc->IsConnected())) SetDBConnection();  | 
| 5244 | 
       proc_obj->DB = Form("mysql://%s/%s",dbc->GetHost(),dbc->GetDB()); | 
       proc_obj->DB = Form("mysql://%s/%s",dbc->GetHost(),dbc->GetDB()); | 
| 5245 | 
  | 
       dbc->Close(); | 
| 5246 | 
       proc_tree_clone->Fill(); | 
       proc_tree_clone->Fill(); | 
| 5247 | 
     } | 
     } | 
| 5248 | 
     cout << "----------------------------------------------------" << endl; | 
     cout << "----------------------------------------------------" << endl; | 
| 5465 | 
     }; | 
     }; | 
| 5466 | 
   } | 
   } | 
| 5467 | 
    | 
    | 
| 5468 | 
   if ( PROC ){ | 
   if ( PROC ){//EMEMEMEM | 
| 5469 | 
     proc_tree_clone->Write("ProcessingInfo",TObject::kOverwrite); | 
     proc_tree_clone->Write("ProcessingInfo",TObject::kOverwrite); | 
| 5470 | 
   } | 
   } | 
| 5471 | 
   cout << "+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+" << endl; | 
   cout << "+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+" << endl; |