/[PAMELA software]/PamelaLevel2/src/PamLevel2.cpp
ViewVC logotype

Diff of /PamelaLevel2/src/PamLevel2.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.103 by mocchiut, Fri Oct 17 16:18:31 2014 UTC revision 1.104 by mocchiut, Fri Oct 17 16:21:50 2014 UTC
# Line 5212  void PamLevel2::CreateCloneTrees(TFile * Line 5212  void PamLevel2::CreateCloneTrees(TFile *
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;  
# Line 5229  void PamLevel2::CreateCloneTrees(TFile * Line 5232  void PamLevel2::CreateCloneTrees(TFile *
5232      if ( SELLI != 2 || true ){            if ( SELLI != 2 || true ){      
5233        cout << "|| "<<endl;        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;        cout << "||| "<<endl;
5250        proc_tree_clone->Fill();        proc_tree_clone->Fill();
# Line 5460  void PamLevel2::WriteCloneTrees() { Line 5469  void PamLevel2::WriteCloneTrees() {
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;

Legend:
Removed from v.1.103  
changed lines
  Added in v.1.104

  ViewVC Help
Powered by ViewVC 1.1.23