Changeset 7560 for trunk/MagicSoft/Mars/mjobs
- Timestamp:
- 03/02/06 13:24:28 (19 years ago)
- Location:
- trunk/MagicSoft/Mars/mjobs
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
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); }
Note:
See TracChangeset
for help on using the changeset viewer.