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.01 (2005-12-13) |
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.00 - 4.01 (2005-12-13): bug in CaloFindCalibs (do not search on other calibration files when fails to find any calibration): fixed. |
11 |
|
// |
12 |
// 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). |
13 |
// |
// |
14 |
// 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. |
1327 |
if ( inter == 0 ){ |
if ( inter == 0 ){ |
1328 |
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); |
1329 |
printf(" I WILL SEARCH IN PREVIOUS FILES\n"); |
printf(" I WILL SEARCH IN PREVIOUS FILES\n"); |
1330 |
|
if ( !firstlook ){ |
1331 |
|
wused = 2; |
1332 |
|
filename = calibfile; |
1333 |
|
firstlook = 1; |
1334 |
|
goto repeatsearch; |
1335 |
|
}; |
1336 |
}; |
}; |
1337 |
if ( inter > 50 ){ |
if ( inter > 50 ){ |
1338 |
printf(" WARNING: cannot handle more than 50 calibrations for file!\n"); |
printf(" WARNING: cannot handle more than 50 calibrations for file!\n"); |
1339 |
printf(" I WILL SEARCH IN PREVIOUS FILES\n"); |
printf(" I WILL SEARCH IN PREVIOUS FILES\n"); |
1340 |
inter = 0; |
inter = 0; |
1341 |
|
if ( !firstlook ){ |
1342 |
|
wused = 2; |
1343 |
|
filename = calibfile; |
1344 |
|
firstlook = 1; |
1345 |
|
goto repeatsearch; |
1346 |
|
}; |
1347 |
}; |
}; |
1348 |
if ( obtjump ){ |
if ( obtjump ){ |
1349 |
calib.obtjump = 1; |
calib.obtjump = 1; |