/[PAMELA software]/PadmeAmidala/src/RunGlue.cpp
ViewVC logotype

Diff of /PadmeAmidala/src/RunGlue.cpp

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

revision 1.19 by mocchiut, Fri Oct 17 10:21:02 2014 UTC revision 1.22 by mocchiut, Fri Oct 17 13:28:01 2014 UTC
# Line 573  void RunGlue::MergeRootfile(TList *sourc Line 573  void RunGlue::MergeRootfile(TList *sourc
573    //    //
574    nli->CreateCloneTrees(Target);    nli->CreateCloneTrees(Target);
575    //    //
576    nli->GetCloneTree("Tracker")->SetAutoSave(900000000000000LL);    /*  nli->GetCloneTree("Tracker")->SetAutoSave(900000000000000LL);
577    nli->GetCloneTree("Trigger")->SetAutoSave(900000000000000LL);    nli->GetCloneTree("Trigger")->SetAutoSave(900000000000000LL);
578    nli->GetCloneTree("Calorimeter")->SetAutoSave(900000000000000LL);    nli->GetCloneTree("Calorimeter")->SetAutoSave(900000000000000LL);
579    nli->GetCloneTree("S4")->SetAutoSave(900000000000000LL);    nli->GetCloneTree("S4")->SetAutoSave(900000000000000LL);
# Line 581  void RunGlue::MergeRootfile(TList *sourc Line 581  void RunGlue::MergeRootfile(TList *sourc
581    nli->GetCloneTree("NeutronD")->SetAutoSave(900000000000000LL);    nli->GetCloneTree("NeutronD")->SetAutoSave(900000000000000LL);
582    nli->GetCloneTree("OrbitalInfo")->SetAutoSave(900000000000000LL);    nli->GetCloneTree("OrbitalInfo")->SetAutoSave(900000000000000LL);
583    nli->GetCloneTree("Run")->SetAutoSave(900000000000000LL);    nli->GetCloneTree("Run")->SetAutoSave(900000000000000LL);
584    nli->GetCloneTree("ToF")->SetAutoSave(900000000000000LL);    nli->GetCloneTree("ToF")->SetAutoSave(900000000000000LL);*/
585    //    //
586    ULong64_t nevents = nli->GetEntries();            ULong64_t nevents = nli->GetEntries();        
587    printf(" NEVENTS %llu \n",nevents);    printf(" NEVENTS %llu \n",nevents);
# Line 597  void RunGlue::MergeRootfile(TList *sourc Line 597  void RunGlue::MergeRootfile(TList *sourc
597    //  Target->Write();    //  Target->Write();
598    //  TTree *slist = (TTree*)Target->Get("SelectionList");    //  TTree *slist = (TTree*)Target->Get("SelectionList");
599    //  slist->Delete("all");    //  slist->Delete("all");
600      if ( !nli->GetCloneTree("ProcessingInfo") ){
601        TChain *P = new TChain("ProcessingInfo");
602        // loop over files and create chains
603        TIter next(sourcelist);
604        TSystemFile *questo = 0;
605        while ((questo = (TSystemFile*) next())) {
606          TString name = questo->GetName();
607          P->Add(name);
608        }
609        if ( P->GetEntries() ){
610          TTree *Pclone = P->CloneTree();
611          Target->cd();
612          Pclone->Write("ProcessingInfo",TObject::kOverwrite);
613          P->Delete();
614          P=0;
615        }
616      }
617      //  
618    Target->Close();    Target->Close();
619    
620  //   //  //   //

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.22

  ViewVC Help
Powered by ViewVC 1.1.23