Changeset 7528 for trunk/MagicSoft/Mars/datacenter/macros/fillcalib.C
- Timestamp:
- 02/25/06 18:31:03 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/macros/fillcalib.C
r7460 r7528 55 55 // file called sql.rc and the resource file is found. 56 56 // 57 // Returns 0 in case of failure and 1 in case of success. 57 // Returns 2 in case of failure, 1 in case of success and 0 if the connection 58 // to the database is not working. 58 59 // 59 60 ///////////////////////////////////////////////////////////////////////////// … … 115 116 { 116 117 cout << "ERROR - Could not find file " << fname << endl; 117 return 0;118 return 2; 118 119 } 119 120 … … 121 122 { 122 123 cout << "ERROR - Reading of MBadPixelsCam failed." << endl; 123 return 0;124 return 2; 124 125 } 125 126 … … 147 148 148 149 if (unsin<0 || unsout<0 || unrin<0 || unrout<0 || isoin<0 || isoout<0 || clumax<0) 149 return 0; 150 { 151 cout << "ERROR - one of the pixel values < 0." << endl; 152 return 2; 153 } 150 154 151 155 // MHCamera hist(geom); … … 158 162 MStatusArray arr; 159 163 if (arr.Read()<=0) 160 return 0; 164 { 165 cout << "ERROR - could not read MStatusArray." << endl; 166 return 2; 167 } 161 168 162 169 TH1 *h; … … 167 174 { 168 175 cout << "WARNING - Could not find histogram HRelTimeHiGainArea0." << endl; 169 return 0;176 return 2; 170 177 } 171 178 … … 183 190 { 184 191 cout << "WARNING - Could not find histogram HRelTimeHiGainArea1." << endl; 185 return 0;192 return 2; 186 193 } 187 194 … … 199 206 { 200 207 cout << "WARNING - Could not find MHCamera TotalConv." << endl; 201 return 0;208 return 2; 202 209 } 203 210 … … 221 228 { 222 229 cout << "WARNING - Could get sequence# from filename: " << fname << endl; 223 return 0;230 return 2; 224 231 } 225 232 … … 289 296 290 297 if (dummy) 291 return 0;298 return 1; 292 299 293 300 TSQLResult *res = serv.Query(query); … … 295 302 { 296 303 cout << "ERROR - Query failed: " << query << endl; 297 return 0;304 return 2; 298 305 } 299 306 delete res;
Note:
See TracChangeset
for help on using the changeset viewer.