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(); |
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; |
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 ){ |
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 ){ |