/[PAMELA software]/DarthVader/S4Level2/src/S4Core.cpp
ViewVC logotype

Diff of /DarthVader/S4Level2/src/S4Core.cpp

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

revision 1.8 by mocchiut, Fri Nov 17 10:08:10 2006 UTC revision 1.9 by mocchiut, Thu Jan 11 14:33:46 2007 UTC
# Line 198  int S4Core(UInt_t run, TFile *file, TSQL Line 198  int S4Core(UInt_t run, TFile *file, TSQL
198    //    //
199    // variables needed to reprocess data    // variables needed to reprocess data
200    //    //
201      Long64_t maxsize = 10000000000LL;  
202      TTree::SetMaxTreeSize(maxsize);
203      //
204    TString S4version;    TString S4version;
205    ItoRunInfo *runinfo = 0;    ItoRunInfo *runinfo = 0;
206    TArrayI *runlist = 0;    TArrayI *runlist = 0;
# Line 343  int S4Core(UInt_t run, TFile *file, TSQL Line 346  int S4Core(UInt_t run, TFile *file, TSQL
346      //      //
347      // 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?
348      //      //
349        S4trclone->SetAutoSave(900000000000000LL);
350      reproc = true;      reproc = true;
351      //      //
352      // update versioning information      // update versioning information
# Line 387  int S4Core(UInt_t run, TFile *file, TSQL Line 391  int S4Core(UInt_t run, TFile *file, TSQL
391    //    //
392    file->cd();    file->cd();
393    S4tr = new TTree("S4-new","PAMELA Level2 S4 data");    S4tr = new TTree("S4-new","PAMELA Level2 S4 data");
394      S4tr->SetAutoSave(900000000000000LL);
395    S4tr->Branch("S4Level2","S4Level2",&s4);    S4tr->Branch("S4Level2","S4Level2",&s4);
396    //    //
397    if ( reproc && !reprocall ){    if ( reproc && !reprocall ){
# Line 395  int S4Core(UInt_t run, TFile *file, TSQL Line 400  int S4Core(UInt_t run, TFile *file, TSQL
400      //      //
401      tempfile = new TFile(tempname.str().c_str(),"READ");      tempfile = new TFile(tempname.str().c_str(),"READ");
402      S4trclone = (TTree*)tempfile->Get("S4-old");      S4trclone = (TTree*)tempfile->Get("S4-old");
403        S4trclone->SetAutoSave(900000000000000LL);
404      S4trclone->SetBranchAddress("S4Level2",&s4clone);      S4trclone->SetBranchAddress("S4Level2",&s4clone);
405      //            //      
406      if ( nobefrun > 0 ){      if ( nobefrun > 0 ){

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.23