69 |
const char* outDir = gSystem->DirName(gSystem->DirName(file->GetPath())); |
const char* outDir = gSystem->DirName(gSystem->DirName(file->GetPath())); |
70 |
// |
// |
71 |
Int_t i = 0; |
Int_t i = 0; |
72 |
TString processFolder = "NDFolder_"+run; |
TString processFolder = Form("NDFolder_%u",run); |
73 |
if ( NDargc > 0 ){ |
if ( NDargc > 0 ){ |
74 |
i = 0; |
i = 0; |
75 |
while ( i < NDargc ){ |
while ( i < NDargc ){ |
84 |
verbose = true; |
verbose = true; |
85 |
}; |
}; |
86 |
if ( (!strcmp(NDargv[i],"--debug")) || (!strcmp(NDargv[i],"-g")) ) { |
if ( (!strcmp(NDargv[i],"--debug")) || (!strcmp(NDargv[i],"-g")) ) { |
87 |
|
debug = true; |
88 |
verbose= true; |
verbose= true; |
89 |
}; |
}; |
90 |
i++; |
i++; |
231 |
// |
// |
232 |
numbofrun = runinfo->GetNoRun(); |
numbofrun = runinfo->GetNoRun(); |
233 |
// |
// |
234 |
|
// |
235 |
|
// |
236 |
|
UInt_t totnorun = runinfo->GetRunEntries(); |
237 |
|
// |
238 |
// Try to access the S4 tree in the file, if it exists we are reprocessing data if not we are processing a new run |
// Try to access the S4 tree in the file, if it exists we are reprocessing data if not we are processing a new run |
239 |
// |
// |
240 |
NDtrclone = (TTree*)file->Get("NeutronD"); |
NDtrclone = (TTree*)file->Get("NeutronD"); |
262 |
// |
// |
263 |
if (verbose) printf("\n Preparing the pre-processing...\n"); |
if (verbose) printf("\n Preparing the pre-processing...\n"); |
264 |
// |
// |
265 |
if ( run == 0 ){ |
if ( run == 0 || totnorun == 1 ){ |
266 |
// |
// |
267 |
// we are reprocessing all the file |
// we are reprocessing all the file |
268 |
// if we are reprocessing everything we don't need to copy any old event and we can just work with the new tree and delete the old one immediately |
// if we are reprocessing everything we don't need to copy any old event and we can just work with the new tree and delete the old one immediately |