Changeset 7560
- Timestamp:
- 03/02/06 13:24:28 (19 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 2 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r7559 r7560 18 18 19 19 -*-*- END OF LINE -*-*- 20 2006/03/02 Thomas Bretz 21 22 * callisto.cc: 23 - get result value from pulse pos check 24 25 * mjobs/MJCut.[h,cc]: 26 - added the usage of the new class MSrcPosRndm 27 - added new resource to switch random source position on 28 29 * mjobs/MJPedestal.[h,cc]: 30 - changed return code of Process to int to be able to return 31 the pulse pos check result. 32 33 * mpointing/PointingLinkDef.h, mpointing/Makefile: 34 - added MSrcPosRndm 35 36 * mpointing/MSrcPosRndm.[h,cc]: 37 - added 38 39 40 20 41 2006/03/02 Daniela Dorner 21 42 -
trunk/MagicSoft/Mars/callisto.cc
r7432 r7560 541 541 // Please check the Changelog of 2005/04/20 about further deatils of the next comment 542 542 //if (job1.GetExtractor().InheritsFrom("MExtractTimeAndCharge")) 543 if (!job2.Process()) 544 { 543 const Int_t rc = job2.Process(); 544 if (rc<=0) 545 { 546 // rc==0: Error 547 // rc==-1: too much to the left 548 // rc==-2: too much to the right 549 // rc==-3: too much to the right (beyond limits) 550 545 551 gLog << err << "Calculation of pedestal from extrtactor (random) failed." << endl << endl; 546 552 return 2; -
trunk/MagicSoft/Mars/mjobs/MJCut.cc
r7555 r7560 55 55 #include "MTaskEnv.h" 56 56 #include "MPointingDevCalc.h" 57 #include "MSrcPosRndm.h" 57 58 #include "MSrcPosCalc.h" 58 59 #include "MSrcPosCorrect.h" … … 72 73 #include "MPointingPos.h" 73 74 #include "MObservatory.h" 75 #include "MHSrcPosCam.h" 74 76 75 77 ClassImp(MJCut); … … 427 429 } 428 430 429 Bool_t MJCut::FillSrcPosCam(const MDataSet &set, MPointingPos &source )431 Bool_t MJCut::FillSrcPosCam(const MDataSet &set, MPointingPos &source, MHSrcPosCam &hsrcpos) 430 432 { 431 433 *fLog << inf; … … 467 469 set.AddFilesOn(read); 468 470 469 MFillH fill( "MHSrcPosCam", "MSrcPosCam", "FillSrcPosCam");471 MFillH fill(&hsrcpos, "MSrcPosCam", "FillSrcPosCam"); 470 472 fill.SetNameTab("SrcPos"); 471 473 472 474 // How to get source position from off- and on-data? 473 475 MSrcPosCorrect scor; 474 MSrcPosCalc scalc;476 MSrcPosCalc scalc; 475 477 scalc.SetMode(MSrcPosCalc::kDefault); 476 478 … … 538 540 *fLog << all << "No source position applied..." << endl; 539 541 542 MParList plist; 543 544 MHSrcPosCam hsrcpos; 540 545 if (!fIsWobble && source.IsInitialized() && fRndmSrcPos) 541 if (!FillSrcPosCam(set, source)) 546 { 547 if (!FillSrcPosCam(set, source, hsrcpos)) 542 548 return kFALSE; 549 plist.AddToList(&hsrcpos); 550 } 543 551 544 552 // -------------------------------------------------------------------------------- … … 552 560 553 561 // Setup Parlist 554 MParList plist;555 562 plist.AddToList(this); // take care of fDisplay! 556 563 … … 679 686 hcalc2.SetNameSrcPosCam("MSrcPosAnti"); 680 687 688 MSrcPosRndm srcrndm; 689 681 690 MTaskList tlist2; 682 691 tlist2.AddToList(&scalc); 683 692 tlist2.AddToList(&scor); 693 tlist2.AddToList(&srcrndm); 684 694 tlist2.AddToList(&hcalc); 685 695 if (fIsWobble) -
trunk/MagicSoft/Mars/mjobs/MJCut.h
r7555 r7560 13 13 class MWriteRootFile; 14 14 class MPointingPos; 15 class MHSrcPosCam; 15 16 16 17 class MJCut : public MJob … … 48 49 Bool_t CanStoreResult() const { return !fPathOut.IsNull() && fStoreResult; } 49 50 50 Bool_t FillSrcPosCam(const MDataSet &set, MPointingPos &source );51 Bool_t FillSrcPosCam(const MDataSet &set, MPointingPos &source, MHSrcPosCam &srcpos); 51 52 52 53 public: -
trunk/MagicSoft/Mars/mjobs/MJPedestal.cc
r7425 r7560 843 843 } 844 844 845 Bool_t MJPedestal::PulsePosCheck(const MParList &plist) const845 Int_t MJPedestal::PulsePosCheck(const MParList &plist) const 846 846 { 847 847 if (fIsPixelCheck) … … 951 951 { 952 952 *fLog << err << "Pulse is too much to the left, cannot go below 0!" << endl; 953 return kFALSE;953 return -1; 954 954 955 955 } … … 959 959 *fLog << numhigainsamples << "+" << numlogainsamples << "-1" << endl; 960 960 *fLog << " Cannot extract at all!" << endl; 961 return kFALSE;961 return -3; 962 962 } 963 963 if (newlast+wslogain > numlogainsamples) … … 970 970 *fLog << "(ATTENTION, you will lose late cosmics pulses!)" << endl; 971 971 *fLog << endl; 972 return kFALSE;972 return -2; 973 973 } 974 974 … … 986 986 } 987 987 988 Bool_t MJPedestal::Process()988 Int_t MJPedestal::Process() 989 989 { 990 990 if (!fSequence.IsValid()) … … 1271 1271 return kFALSE; 1272 1272 1273 if (!PulsePosCheck(plist)) 1274 return kFALSE; 1273 const Int_t rc = PulsePosCheck(plist); 1274 if (rc<1) 1275 return rc; 1275 1276 1276 1277 *fLog << all << GetDescriptor() << ": Done." << endl; -
trunk/MagicSoft/Mars/mjobs/MJPedestal.h
r7125 r7560 104 104 const Bool_t IsUseData() const { return fExtractType == kUseData; } 105 105 106 Bool_t Process();106 Int_t Process(); 107 107 108 108 void SetBadPixels(const MBadPixelsCam &bad) { bad.Copy(fBadPixels); } -
trunk/MagicSoft/Mars/mpointing/Makefile
r7553 r7560 32 32 MSrcPosCam.cc \ 33 33 MSrcPosCalc.cc \ 34 MSrcPosRndm.cc \ 34 35 MSrcPosCorrect.cc \ 35 36 MSrcPosFromModel.cc -
trunk/MagicSoft/Mars/mpointing/PointingLinkDef.h
r7553 r7560 19 19 #pragma link C++ class MSrcPosCam+; 20 20 #pragma link C++ class MSrcPosCalc+; 21 #pragma link C++ class MSrcPosRndm+; 21 22 #pragma link C++ class MSrcPosCorrect+; 22 23 #pragma link C++ class MSrcPosFromModel+;
Note:
See TracChangeset
for help on using the changeset viewer.