- Timestamp:
- 06/26/06 11:20:00 (18 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r7749 r7753 18 18 19 19 -*-*- END OF LINE -*-*- 20 21 2006/06/26 Thomas Bretz 22 23 * mjobs/MJCut.[h,cc]: 24 - added error codes for some fatal errors 25 26 * ganymed.cc: 27 - pipe error codes to shell 28 29 20 30 21 31 2006/05/29 Thomas Bretz -
trunk/MagicSoft/Mars/ganymed.cc
r7444 r7753 264 264 // job.EnableStorageOfResult(); 265 265 266 if (!job.Process(seq)) 266 const Int_t rc = job.Process(seq); 267 if (rc<=0) 267 268 { 268 269 gLog << err << "Calculation of cuts failed." << endl << endl; 269 return 2; 270 } 270 271 //error coding for the automatic analysis (to be filled into the database) 272 switch (rc) 273 { 274 case 0: // MJCut failed 275 return 3; 276 case -1: // Source not found 277 return 4; 278 case -2: // FillRndSrcCam failed 279 return 5; 280 case -3: // Processing off-data failed 281 return 6; 282 case -4: // Processing on-data failed 283 return 7; 284 } 285 return 2; 286 } 287 271 288 if (kDebugEnv>0) 272 289 env.PrintUntouched(); -
trunk/MagicSoft/Mars/mjobs/MJCut.cc
r7601 r7753 515 515 } 516 516 517 Bool_t MJCut::Process(const MDataSet &set)517 Int_t MJCut::Process(const MDataSet &set) 518 518 { 519 519 if (!set.IsValid()) … … 532 532 { 533 533 if (!set.GetSourcePos(source)) 534 return kFALSE;534 return -1; 535 535 *fLog << all; 536 536 source.Print("RaDec"); … … 545 545 { 546 546 if (!FillSrcPosCam(set, source, hsrcpos)) 547 return kFALSE;547 return -2; 548 548 plist.AddToList(&hsrcpos); 549 549 } … … 698 698 tlist2.AddToList(&hcalc2); 699 699 //tlist2.AddToList(&taskenv1); 700 tlist2.AddToList(&cont0); 700 701 tlist2.AddToList(&taskenv2); 701 702 tlist2.AddToList(&taskenv3); 702 tlist2.AddToList(&cont0);703 703 if (write0) 704 704 tlist2.AddToList(write0); … … 769 769 { 770 770 *fLog << err << GetDescriptor() << ": Processing of off-sequences failed." << endl; 771 return kFALSE;771 return -3; 772 772 } 773 773 … … 914 914 { 915 915 *fLog << err << GetDescriptor() << ": Processing of on-sequences failed." << endl; 916 return kFALSE;916 return -4; 917 917 } 918 918 -
trunk/MagicSoft/Mars/mjobs/MJCut.h
r7560 r7753 55 55 ~MJCut(); 56 56 57 Bool_t Process(const MDataSet &set);57 Int_t Process(const MDataSet &set); 58 58 59 59 void EnableStorageOfSummary(Bool_t b=kTRUE) { fStoreSummary = b; } // See SetNameSummary
Note:
See TracChangeset
for help on using the changeset viewer.