/[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.107 by mocchiut, Fri Oct 17 16:25:38 2014 UTC revision 1.109 by mocchiut, Tue Oct 21 10:08:36 2014 UTC
# Line 628  void PamLevel2::Initialize() { Line 628  void PamLevel2::Initialize() {
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;
# Line 3509  TChain *PamLevel2::GetPamTree(TList *fl, Line 3511  TChain *PamLevel2::GetPamTree(TList *fl,
3511      //  L->SetBranchAddress("RunEntry",&irun);      //  L->SetBranchAddress("RunEntry",&irun);
3512      P->SetBranchAddress("ProcInfo", &proc_obj);//NEWNEW      P->SetBranchAddress("ProcInfo", &proc_obj);//NEWNEW
3513      proc_tree = P;      proc_tree = P;
3514      } else {
3515        //    proc_tree = new TChain("ProcessingInfo","Log of data processing");
3516        //    proc_tree->Branch("ProcInfo", "ProcInfo", &proc_obj);
3517        cout << "----------------------------------------------------" << endl;
3518        cout << ">>> ProcessingInfo not found, PROC set to false and continue (not 10RED files?)<<<" << endl;
3519        PROC = false;
3520    }    }
3521    //  --------------------------------------------    //  --------------------------------------------
3522    //  return the pamela chain with all the friends    //  return the pamela chain with all the friends
# Line 5234  void PamLevel2::CreateCloneTrees(TFile * Line 5242  void PamLevel2::CreateCloneTrees(TFile *
5242        TTimeStamp *dt = new TTimeStamp();        TTimeStamp *dt = new TTimeStamp();
5243        proc_obj->date = dt->AsString();        proc_obj->date = dt->AsString();
5244        delete dt;        delete dt;
5245        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());
5246        proc_obj->outputFilename = "";        proc_obj->outputFilename = ofile->GetName();
5247        proc_obj->localDir = gSystem->WorkingDirectory();        proc_obj->localDir = gSystem->WorkingDirectory();
5248        proc_obj->uname = gSystem->GetFromPipe("uname -a");        proc_obj->uname = gSystem->GetFromPipe("uname -a");
5249        //      proc_obj->DB = Form("mysql://%s/%s",dbc->GetHost(),dbc->GetDB());        if (!dbc || (dbc && !dbc->IsConnected())) SetDBConnection();
5250        proc_obj->DB = "";        proc_obj->DB = Form("mysql://%s/%s",dbc->GetHost(),dbc->GetDB());
5251          dbc->Close();
5252        proc_tree_clone->Fill();        proc_tree_clone->Fill();
5253      }      }
5254      cout << "----------------------------------------------------" << endl;      cout << "----------------------------------------------------" << endl;

Legend:
Removed from v.1.107  
changed lines
  Added in v.1.109

  ViewVC Help
Powered by ViewVC 1.1.23