| 72 |
GL_S4_CALIB *glS4calib = new GL_S4_CALIB(); |
GL_S4_CALIB *glS4calib = new GL_S4_CALIB(); |
| 73 |
// |
// |
| 74 |
if ( !dbc->IsConnected() ) throw -504; |
if ( !dbc->IsConnected() ) throw -504; |
| 75 |
glS4calib->Query_GL_S4_CALIB(atime, dbc); |
Int_t s4sig = glS4calib->Query_GL_S4_CALIB(atime, dbc); |
| 76 |
|
if ( s4sig < 0 ) throw s4sig; |
| 77 |
// |
// |
| 78 |
GL_ROOT *glroot = new GL_ROOT(); |
GL_ROOT *glroot = new GL_ROOT(); |
| 79 |
if ( !dbc->IsConnected() ) throw -504; |
if ( !dbc->IsConnected() ) throw -504; |
| 171 |
const char* outDir = gSystem->DirName(gSystem->DirName(file->GetPath())); |
const char* outDir = gSystem->DirName(gSystem->DirName(file->GetPath())); |
| 172 |
// |
// |
| 173 |
Int_t i = 0; |
Int_t i = 0; |
| 174 |
TString processFolder = "S4Folder_"+run; |
TString processFolder = Form("S4Folder_%u",run); |
| 175 |
if ( S4argc > 0 ){ |
if ( S4argc > 0 ){ |
| 176 |
i = 0; |
i = 0; |
| 177 |
while ( i < S4argc ){ |
while ( i < S4argc ){ |
| 184 |
}; |
}; |
| 185 |
if ( (!strcmp(S4argv[i],"--debug")) || (!strcmp(S4argv[i],"-g"))) { |
if ( (!strcmp(S4argv[i],"--debug")) || (!strcmp(S4argv[i],"-g"))) { |
| 186 |
verbose = true; |
verbose = true; |
| 187 |
|
debug = true; |
| 188 |
}; |
}; |
| 189 |
if ( (!strcmp(S4argv[i],"--verbose")) || (!strcmp(S4argv[i],"-v"))) { |
if ( (!strcmp(S4argv[i],"--verbose")) || (!strcmp(S4argv[i],"-v"))) { |
| 190 |
verbose = true; |
verbose = true; |
| 327 |
// number of run to be processed |
// number of run to be processed |
| 328 |
// |
// |
| 329 |
numbofrun = runinfo->GetNoRun(); |
numbofrun = runinfo->GetNoRun(); |
| 330 |
|
UInt_t totnorun = runinfo->GetRunEntries(); |
| 331 |
// |
// |
| 332 |
// 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 |
| 333 |
// |
// |
| 355 |
// |
// |
| 356 |
if (verbose) printf("\n Preparing the pre-processing...\n"); |
if (verbose) printf("\n Preparing the pre-processing...\n"); |
| 357 |
// |
// |
| 358 |
if ( run == 0 ){ |
if ( run == 0 || totnorun == 1 ){ |
| 359 |
// |
// |
| 360 |
// we are reprocessing all the file |
// we are reprocessing all the file |
| 361 |
// 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 |