/[PAMELA software]/DarthVader/NDLevel2/src/NDCore.cpp
ViewVC logotype

Diff of /DarthVader/NDLevel2/src/NDCore.cpp

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

revision 1.8 by mocchiut, Fri Nov 17 10:08:09 2006 UTC revision 1.9 by mocchiut, Thu Jan 11 14:33:42 2007 UTC
# Line 116  int NDCore(UInt_t run, TFile *file, TSQL Line 116  int NDCore(UInt_t run, TFile *file, TSQL
116    Int_t code = 0;    Int_t code = 0;
117    Int_t sgnl;    Int_t sgnl;
118    //    //
119      Long64_t maxsize = 10000000000LL;  
120      TTree::SetMaxTreeSize(maxsize);
121      //
122      //
123    // ND level2 classes    // ND level2 classes
124    //    //
125    NDLevel2 *nd = new NDLevel2();    NDLevel2 *nd = new NDLevel2();
# Line 238  int NDCore(UInt_t run, TFile *file, TSQL Line 242  int NDCore(UInt_t run, TFile *file, TSQL
242      }      }
243    } else {    } else {
244      //      //
245        NDtrclone->SetAutoSave(900000000000000LL);
246        //
247      // 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?
248      //      //
249      reproc = true;      reproc = true;
# Line 284  int NDCore(UInt_t run, TFile *file, TSQL Line 290  int NDCore(UInt_t run, TFile *file, TSQL
290    //    //
291    file->cd();    file->cd();
292    NDtr = new TTree("NeutronD-new","PAMELA Level2 NeutronD data");    NDtr = new TTree("NeutronD-new","PAMELA Level2 NeutronD data");
293      NDtr->SetAutoSave(900000000000000LL);
294    NDtr->Branch("NDLevel2","NDLevel2",&nd);    NDtr->Branch("NDLevel2","NDLevel2",&nd);
295    //    //
296    if ( reproc && !reprocall ){    if ( reproc && !reprocall ){
# Line 292  int NDCore(UInt_t run, TFile *file, TSQL Line 299  int NDCore(UInt_t run, TFile *file, TSQL
299      //      //
300      tempfile = new TFile(tempname.str().c_str(),"READ");      tempfile = new TFile(tempname.str().c_str(),"READ");
301      NDtrclone = (TTree*)tempfile->Get("NeutronD-old");      NDtrclone = (TTree*)tempfile->Get("NeutronD-old");
302        NDtrclone->SetAutoSave(900000000000000LL);
303      NDtrclone->SetBranchAddress("NDLevel2",&ndclone);      NDtrclone->SetBranchAddress("NDLevel2",&ndclone);
304      //            //      
305      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