Changeset 6888 for trunk/MagicSoft
- Timestamp:
- 03/24/05 11:22:20 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r6887 r6888 21 21 22 22 -*-*- END OF LINE -*-*- 23 24 2005/03/24 Thomas Bretz 25 26 * callisto.cc, ganymed.cc, mars.cc, merpp.cc, readdaq.cc, 27 readraw.cc, showlog.cc, showplot.cc, sinope.cc, star.cc: 28 - replaced all returns of -1 by return 2 29 30 * manalysis/AnalysisLinkDef.h, manalysis/Makefile: 31 - added MEnergyEst (container) 32 33 * mhflux/MAlphaFitter.[h,cc]: 34 - implemented new fit result options 35 36 23 37 24 38 2005/03/23 Markus Gaug -
trunk/MagicSoft/Mars/NEWS
r6884 r6888 2 2 *** Version <cvs> 3 3 4 5 - Fix bug on the arrival time reconstruction when using Digital 6 Filter 7 8 - all executables now return 2 where in previous versions -1 has 9 been returned (gave problems with shell-scripts) 4 10 5 11 -
trunk/MagicSoft/Mars/callisto.cc
r6845 r6888 155 155 { 156 156 Usage(); 157 return -1;157 return 2; 158 158 } 159 159 … … 201 201 gLog << err << "Neither calibration (-c) nor signal extraction (-y) or test-mode (--use-test) specified!" << endl; 202 202 Usage(); 203 return 0;203 return 2; 204 204 } 205 205 … … 233 233 arg.Print("options"); 234 234 gLog << endl; 235 return -1;235 return 2; 236 236 } 237 237 … … 242 242 { 243 243 Usage(); 244 return -1;244 return 2; 245 245 } 246 246 … … 253 253 { 254 254 gLog << err << "Sorry, sequence file '" << kSequence << "' doesn't exist." << endl; 255 return -1;255 return 2; 256 256 } 257 257 … … 259 259 { 260 260 gLog << err << "Sorry, config file '" << kConfig << "' doesn't exist." << endl; 261 return -1;261 return 2; 262 262 } 263 263 … … 279 279 { 280 280 gLog << err << "Sequence read but not valid!" << endl << endl; 281 return -1;281 return 2; 282 282 } 283 283 … … 310 310 gLog << (kInpathD.IsNull() ? "<defaultpath>" : kInpathD.Data()) << endl; 311 311 if (!kForceExec) 312 return -1;312 return 2; 313 313 } 314 314 … … 363 363 { 364 364 gLog << err << "Calculation of pedestal failed." << endl << endl; 365 return -1;365 return 2; 366 366 } 367 367 … … 397 397 { 398 398 gLog << err << "Calculation of pedestal resolution failed." << endl << endl; 399 return -1;399 return 2; 400 400 } 401 401 … … 427 427 { 428 428 gLog << err << "Calculation of calibration failed." << endl << endl; 429 return -1;429 return 2; 430 430 } 431 431 … … 455 455 { 456 456 gLog << err << "Calibration of calibration failed." << endl << endl; 457 return -1;457 return 2; 458 458 } 459 459 … … 495 495 { 496 496 gLog << err << "Calculation of fundamental pedestal failed." << endl << endl; 497 return -1;497 return 2; 498 498 } 499 499 … … 531 531 { 532 532 gLog << err << "Calculation of pedestal from extrtactor (random) failed." << endl << endl; 533 return -1;533 return 2; 534 534 } 535 535 … … 567 567 { 568 568 gLog << err << "Calculation of pedestal from extractor failed." << endl << endl; 569 return -1;569 return 2; 570 570 } 571 571 … … 594 594 // Where to search for calibration files 595 595 if (!job4.ProcessFile(job1.GetPedestalCam(), job2.GetPedestalCam(), job3.GetPedestalCam())) 596 return -1;596 return 2; 597 597 598 598 if (kDebugEnv>0) -
trunk/MagicSoft/Mars/ganymed.cc
r6874 r6888 98 98 { 99 99 Usage(); 100 return -1;100 return 2; 101 101 } 102 102 … … 140 140 { 141 141 Usage(); 142 return -1;142 return 2; 143 143 } 144 144 … … 151 151 { 152 152 gLog << err << "Sorry, sequences file '" << kSequences << "' doesn't exist." << endl; 153 return -1;153 return 2; 154 154 } 155 155 … … 157 157 { 158 158 gLog << err << "Sorry, config file '" << kConfig << "' doesn't exist." << endl; 159 return -1;159 return 2; 160 160 } 161 161 … … 179 179 { 180 180 gLog << err << "Sequences read but not valid!" << endl << endl; 181 return -1;181 return 2; 182 182 } 183 183 … … 228 228 { 229 229 gLog << err << "Calculation of cuts failed." << endl << endl; 230 return -1;230 return 2; 231 231 } 232 232 if (kDebugEnv>0) -
trunk/MagicSoft/Mars/manalysis/AnalysisLinkDef.h
r6877 r6888 14 14 #pragma link C++ class MMultiDimDistCalc+; 15 15 16 #pragma link C++ class MEnergyEst+; 16 17 #pragma link C++ class MEnergyEstimate+; 17 18 -
trunk/MagicSoft/Mars/manalysis/Makefile
r6878 r6888 28 28 SRCFILES = MGeomApply.cc \ 29 29 MCameraData.cc \ 30 MEnergyEst.cc \ 30 31 MEnergyEstimate.cc \ 31 32 MHadronness.cc \ -
trunk/MagicSoft/Mars/mars.cc
r6855 r6888 86 86 { 87 87 Usage(); 88 return -1;88 return 2; 89 89 } 90 90 -
trunk/MagicSoft/Mars/merpp.cc
r6253 r6888 158 158 { 159 159 Usage(); 160 return -1;160 return 2; 161 161 } 162 162 … … 197 197 { 198 198 Usage(); 199 return -1;199 return 2; 200 200 } 201 201 … … 233 233 { 234 234 gLog << err << "Sorry, the input file '" << kNamein << "' doesn't exist." << endl; 235 return -1;235 return 2; 236 236 } 237 237 … … 242 242 { 243 243 gLog << err << "Sorry, you don't have write permission for '" << kNameout << "'." << endl; 244 return -1;244 return 2; 245 245 } 246 246 … … 248 248 { 249 249 gLog << err << "Sorry, file '" << kNameout << "' already existing." << endl; 250 return -1;250 return 2; 251 251 } 252 252 … … 413 413 { 414 414 gLog << err << "ERROR: Merging and preprocessing failed!" << endl; 415 return -1;415 return 2; 416 416 } 417 417 -
trunk/MagicSoft/Mars/mhflux/MAlphaFitter.cc
r6874 r6888 501 501 case kSignificanceChi2: 502 502 return -GetSignificance()/GetChiSqSignal(); 503 case kSignificanceExcess: 504 return -GetSignificance()*GetEventsExcess(); 505 case kExcess: 506 return -GetEventsExcess(); 503 507 } 504 508 return 0; … … 557 561 if (txt==(TString)"significancechi2") 558 562 fStrategy = kSignificanceChi2; 563 if (txt==(TString)"significanceexcess") 564 fStrategy = kSignificanceExcess; 565 if (txt==(TString)"excess") 566 fStrategy = kExcess; 559 567 rc = kTRUE; 560 568 } -
trunk/MagicSoft/Mars/mhflux/MAlphaFitter.h
r6874 r6888 30 30 enum Strategy_t { 31 31 kSignificance, 32 kSignificanceChi2 32 kSignificanceChi2, 33 kSignificanceExcess, 34 kExcess 33 35 }; 34 36 private: -
trunk/MagicSoft/Mars/readdaq.cc
r4738 r6888 70 70 { 71 71 Usage(); 72 return -1;72 return 2; 73 73 } 74 74 … … 90 90 { 91 91 Usage(); 92 return -1;92 return 2; 93 93 } 94 94 … … 112 112 { 113 113 gLog << err << "Sorry, the input file '" << kNamein << "' doesn't exist." << endl; 114 return -1;114 return 2; 115 115 } 116 116 … … 192 192 { 193 193 gLog << err << "ERROR: Reading DAQ file failed!" << endl; 194 return -1;194 return 2; 195 195 } 196 196 -
trunk/MagicSoft/Mars/readraw.cc
r4738 r6888 81 81 { 82 82 Usage(); 83 return -1;83 return 2; 84 84 } 85 85 … … 123 123 { 124 124 gLog << err << "Sorry, the input file '" << kNamein << "' doesn't exist." << endl; 125 return -1;125 return 2; 126 126 } 127 127 … … 157 157 { 158 158 gLog << err << "Tree 'Events' not found in file... exit!" << endl; 159 return -1;159 return 2; 160 160 } 161 161 -
trunk/MagicSoft/Mars/showlog.cc
r6253 r6888 57 57 { 58 58 Usage(); 59 return -1;59 return 2; 60 60 } 61 61 … … 77 77 { 78 78 Usage(); 79 return -1;79 return 2; 80 80 } 81 81 … … 85 85 { 86 86 gLog << "Cannot open file " << arg.GetArgumentStr(0) << ": " << strerror(errno) << endl; 87 return -1;87 return 2; 88 88 } 89 89 -
trunk/MagicSoft/Mars/showplot.cc
r6253 r6888 68 68 { 69 69 Usage(); 70 return -1;70 return 2; 71 71 } 72 72 … … 93 93 { 94 94 Usage(); 95 return -1;95 return 2; 96 96 } 97 97 -
trunk/MagicSoft/Mars/sinope.cc
r6820 r6888 262 262 { 263 263 Usage(); 264 return -1;264 return 2; 265 265 } 266 266 … … 293 293 arg.Print("options"); 294 294 gLog << endl; 295 return -1;295 return 2; 296 296 } 297 297 … … 300 300 gLog << warn << "ERROR - No '--run=' option given... required." << endl; 301 301 gLog << endl; 302 return -1;302 return 2; 303 303 } 304 304 if (kDate.IsNull()) … … 306 306 gLog << warn << "ERROR - No '--date=' option given... required." << endl; 307 307 gLog << endl; 308 return -1;308 return 2; 309 309 } 310 310 … … 315 315 { 316 316 Usage(); 317 return -1;317 return 2; 318 318 } 319 319 … … 337 337 { 338 338 gLog << err << "Sequence invalid!" << endl << endl; 339 return -1;339 return 2; 340 340 } 341 341 … … 360 360 { 361 361 gLog << err << "Sorry, file '" << file << "' exists... use -f option.." << endl; 362 return -1;362 return 2; 363 363 } 364 364 file = Form("%stxt", kOutpath.Data()); … … 366 366 { 367 367 gLog << err << "Sorry, file '" << file << "' exists... use -f option.." << endl; 368 return -1;368 return 2; 369 369 } 370 370 } -
trunk/MagicSoft/Mars/star.cc
r6553 r6888 103 103 { 104 104 Usage(); 105 return -1;105 return 2; 106 106 } 107 107 … … 131 131 arg.Print("options"); 132 132 gLog << endl; 133 return -1;133 return 2; 134 134 } 135 135 … … 140 140 { 141 141 Usage(); 142 return -1;142 return 2; 143 143 } 144 144 … … 151 151 { 152 152 gLog << err << "Sorry, sequence file '" << kSequence << "' doesn't exist." << endl; 153 return -1;153 return 2; 154 154 } 155 155 … … 157 157 { 158 158 gLog << err << "Sorry, config file '" << kConfig << "' doesn't exist." << endl; 159 return -1;159 return 2; 160 160 } 161 161 … … 174 174 { 175 175 gLog << err << "Sequence read but not valid!" << endl << endl; 176 return -1;176 return 2; 177 177 } 178 178 … … 228 228 { 229 229 gLog << err << "Calculation of image parameters failed." << endl << endl; 230 return -1;230 return 2; 231 231 } 232 232
Note:
See TracChangeset
for help on using the changeset viewer.