| 1 |
// |
// |
| 2 |
// Calorimeter useful functions and subroutines - Emiliano Mocchiutti |
// Calorimeter useful functions and subroutines - Emiliano Mocchiutti |
| 3 |
// |
// |
| 4 |
// CaloFunctions.h version 4.00 (2005-11-29) |
// CaloFunctions.h version 4.02 (2006-01-24) |
| 5 |
// |
// |
| 6 |
// Programs in this file are called by other programs and cannot be run by hand. |
// Programs in this file are called by other programs and cannot be run by hand. |
| 7 |
// |
// |
| 8 |
// Changelog: |
// Changelog: |
| 9 |
// |
// |
| 10 |
|
// 4.01 - 4.02 (2006-01-24): small bug in getfileLEVname fixed. |
| 11 |
|
// |
| 12 |
|
// 4.00 - 4.01 (2005-12-13): bug in CaloFindCalibs (do not search on other calibration files when fails to find any calibration): fixed. |
| 13 |
|
// |
| 14 |
// 3.10 - 4.00 (2005-11-29): preparing for the final release, changed checkemilib (PAM_YODALIB -> PAM_YODA). |
// 3.10 - 4.00 (2005-11-29): preparing for the final release, changed checkemilib (PAM_YODALIB -> PAM_YODA). |
| 15 |
// |
// |
| 16 |
// 3.09 - 3.10 (2005-11-15): changed langaupro since it did not work in the compiled version; changed WhatToDo to work in compiled version. |
// 3.09 - 3.10 (2005-11-15): changed langaupro since it did not work in the compiled version; changed WhatToDo to work in compiled version. |
| 1150 |
stringcopy(tmptempf,filename,spos,epos); |
stringcopy(tmptempf,filename,spos,epos); |
| 1151 |
const char *tempf = tmptempf; |
const char *tempf = tmptempf; |
| 1152 |
file.str(""); |
file.str(""); |
| 1153 |
file << tempf << ".Physics.Level"; |
file << tempf << "00.Physics.Level"; |
| 1154 |
// file << "00.Physics.Level"; |
// file << "00.Physics.Level"; |
| 1155 |
file << num << "."; |
file << num << "."; |
| 1156 |
file << det << ".Event."; |
file << det << ".Event."; |
| 1329 |
if ( inter == 0 ){ |
if ( inter == 0 ){ |
| 1330 |
printf(" WARNING: no suitable calibration for section %i in this file!\n",s); |
printf(" WARNING: no suitable calibration for section %i in this file!\n",s); |
| 1331 |
printf(" I WILL SEARCH IN PREVIOUS FILES\n"); |
printf(" I WILL SEARCH IN PREVIOUS FILES\n"); |
| 1332 |
|
if ( !firstlook ){ |
| 1333 |
|
wused = 2; |
| 1334 |
|
filename = calibfile; |
| 1335 |
|
firstlook = 1; |
| 1336 |
|
goto repeatsearch; |
| 1337 |
|
}; |
| 1338 |
}; |
}; |
| 1339 |
if ( inter > 50 ){ |
if ( inter > 50 ){ |
| 1340 |
printf(" WARNING: cannot handle more than 50 calibrations for file!\n"); |
printf(" WARNING: cannot handle more than 50 calibrations for file!\n"); |
| 1341 |
printf(" I WILL SEARCH IN PREVIOUS FILES\n"); |
printf(" I WILL SEARCH IN PREVIOUS FILES\n"); |
| 1342 |
inter = 0; |
inter = 0; |
| 1343 |
|
if ( !firstlook ){ |
| 1344 |
|
wused = 2; |
| 1345 |
|
filename = calibfile; |
| 1346 |
|
firstlook = 1; |
| 1347 |
|
goto repeatsearch; |
| 1348 |
|
}; |
| 1349 |
}; |
}; |
| 1350 |
if ( obtjump ){ |
if ( obtjump ){ |
| 1351 |
calib.obtjump = 1; |
calib.obtjump = 1; |