/[PAMELA software]/DarthVader/ToFLevel2/src/ToFCore.cpp
ViewVC logotype

Diff of /DarthVader/ToFLevel2/src/ToFCore.cpp

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

revision 1.53 by mocchiut, Mon Jul 21 13:01:51 2014 UTC revision 1.54 by mocchiut, Mon Jul 28 15:42:09 2014 UTC
# Line 299  int ToFCore(UInt_t run, TFile *file, GL_ Line 299  int ToFCore(UInt_t run, TFile *file, GL_
299      //      //
300      // get tracker level2 data pointer      // get tracker level2 data pointer
301      //      //
302      tracker->SetMaxVirtualSize(2500000000LL); // EM residual Tracker-new tree in level2 files when NEVENTS is big      //    tracker->SetMaxVirtualSize(2500000000LL); // EM residual Tracker-new tree in level2 files when NEVENTS is big
303      tracker->SetBranchAddress("TrkLevel2",&trk);        tracker->SetBranchAddress("TrkLevel2",&trk);  
304      nevtrkl2 = tracker->GetEntries();      nevtrkl2 = tracker->GetEntries();
305      //      //
# Line 353  int ToFCore(UInt_t run, TFile *file, GL_ Line 353  int ToFCore(UInt_t run, TFile *file, GL_
353    //    //
354    // get trigger level2 data pointer    // get trigger level2 data pointer
355    //    //
356    trigger->SetMaxVirtualSize(2500000000LL); // EM residual Tracker-new tree in level2 files when NEVENTS is big    //  trigger->SetMaxVirtualSize(2500000000LL); // EM residual Tracker-new tree in level2 files when NEVENTS is big
357    trigger->SetBranchAddress("TrigLevel2",&trg);      trigger->SetBranchAddress("TrigLevel2",&trg);  
358    nevtrgl2 = trigger->GetEntries();    nevtrgl2 = trigger->GetEntries();
359    
# Line 412  int ToFCore(UInt_t run, TFile *file, GL_ Line 412  int ToFCore(UInt_t run, TFile *file, GL_
412      //      //
413      // tree exists, we are reprocessing data. Are we reprocessing a single run or all the file?      // tree exists, we are reprocessing data. Are we reprocessing a single run or all the file?
414      //      //
415      toftclone->SetMaxVirtualSize(2500000000LL); // EM residual Tracker-new tree in level2 files when NEVENTS is big      //    toftclone->SetMaxVirtualSize(2500000000LL); // EM residual Tracker-new tree in level2 files when NEVENTS is big
416      toftclone->SetAutoSave(900000000000000LL);      toftclone->SetAutoSave(900000000000000LL);
417      reproc = true;      reproc = true;
418      //      //
# Line 460  int ToFCore(UInt_t run, TFile *file, GL_ Line 460  int ToFCore(UInt_t run, TFile *file, GL_
460    //    //
461    file->cd();    file->cd();
462    toft = new TTree("ToF-new","PAMELA Level2 ToF data");    toft = new TTree("ToF-new","PAMELA Level2 ToF data");
463    toft->SetMaxVirtualSize(2500000000LL); // EM residual Tracker-new tree in level2 files when NEVENTS is big    //  toft->SetMaxVirtualSize(2500000000LL); // EM residual Tracker-new tree in level2 files when NEVENTS is big
464    toft->SetAutoSave(900000000000000LL);              toft->SetAutoSave(900000000000000LL);          
465    tof->Set();//ELENA **TEMPORANEO?**    tof->Set();//ELENA **TEMPORANEO?**
466    toft->Branch("ToFLevel2","ToFLevel2",&tof);    toft->Branch("ToFLevel2","ToFLevel2",&tof);
# Line 487  int ToFCore(UInt_t run, TFile *file, GL_ Line 487  int ToFCore(UInt_t run, TFile *file, GL_
487      //      //
488      tempfile = new TFile(tempname.str().c_str(),"READ");      tempfile = new TFile(tempname.str().c_str(),"READ");
489      toftclone = (TTree*)tempfile->Get("ToF-old");      toftclone = (TTree*)tempfile->Get("ToF-old");
490      toftclone->SetMaxVirtualSize(2500000000LL); // EM residual Tracker-new tree in level2 files when NEVENTS is big      //    toftclone->SetMaxVirtualSize(2500000000LL); // EM residual Tracker-new tree in level2 files when NEVENTS is big
491      toftclone->SetAutoSave(900000000000000LL);      toftclone->SetAutoSave(900000000000000LL);
492      if ( !l1only ) toftclone->SetBranchAddress("ToFLevel2",&tofclone);      if ( !l1only ) toftclone->SetBranchAddress("ToFLevel2",&tofclone);
493      //            //      

Legend:
Removed from v.1.53  
changed lines
  Added in v.1.54

  ViewVC Help
Powered by ViewVC 1.1.23