Changeset 8406 for trunk/MagicSoft/Mars/mjobs
- Timestamp:
- 04/15/07 10:38:08 (18 years ago)
- Location:
- trunk/MagicSoft/Mars/mjobs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc
r8396 r8406 112 112 #include "MWriteRootFile.h" 113 113 114 /* 115 #include "MFEvtNumber.h" 116 #include "MMoviePrepare.h" 117 #include "MMovieWrite.h" 118 #include "MImgCleanStd.h" 119 */ 114 #include "MFEvtNumber.h" 115 #include "MMoviePrepare.h" 116 #include "MMovieWrite.h" 117 #include "MImgCleanStd.h" 120 118 121 119 ClassImp(MJCalibrateSignal); … … 134 132 // 135 133 MJCalibrateSignal::MJCalibrateSignal(const char *name, const char *title) 136 : fExtractor(0), fIsInterlaced(kTRUE), fIsRelTimesUpdate(kFALSE) 134 : fExtractor(0), fIsInterlaced(kTRUE), fIsRelTimesUpdate(kFALSE), fIsMovieMode(kFALSE) 137 135 { 138 136 fName = name ? name : "MJCalibrateSignal"; … … 224 222 SetInterlaced(GetEnv("Interlaced", fIsInterlaced)); 225 223 SetRelTimesUpdate(GetEnv("RelTimesUpdate", fIsRelTimesUpdate)); 224 SetMovieMode(GetEnv("MovieMode", fIsMovieMode)); 226 225 227 226 return MJCalib::CheckEnvLocal(); … … 802 801 803 802 tlist2.AddToList(&fillP); 804 805 // --- Start: Code for encoding movies ---806 807 MMoviePrepare movprep;808 MMovieWrite movwrite;809 movprep.SetRangeFromExtractor(*extractor1);810 811 MFDataPhrase movfilt("MMovieData.fMax>150");812 813 MImgCleanStd movclean(8.5, 4.0);814 movclean.SetMethod(MImgCleanStd::kAbsolute);815 816 //movprep.SetFilter(&evtnum);817 movclean.SetFilter(&movfilt);818 movwrite.SetFilter(&movfilt);819 820 MTaskList tlistmov;821 tlistmov.AddToList(&movprep);822 tlistmov.AddToList(&movfilt);823 tlistmov.AddToList(&movclean);824 tlistmov.AddToList(&movwrite);825 826 MFEvtNumber evtnum;827 //evtnum.SetFileName("ganymed00000001.root");828 tlistmov.SetFilter(&evtnum);829 830 //tlist2.AddToList(&evtnum);831 //tlist2.AddToList(&tlistmov);832 833 // --- End: Code for encoding movies ---834 803 */ 804 805 // ----- Start: Code for encoding movies ----- 806 807 MMoviePrepare movprep; 808 MMovieWrite movwrite; 809 movprep.SetRangeFromExtractor(*extractor1); 810 811 //MFDataPhrase movfilt("MMovieData.fMax>150"); 812 MFDataPhrase movfilt("MMovieData.fMax>5*MMovieData.fMedianPedestalRms", "MovieFilter"); 813 814 MImgCleanStd movclean(8.5, 4.0); 815 movclean.SetMethod(MImgCleanStd::kAbsolute); 816 817 //movprep.SetFilter(&evtnum); 818 movclean.SetFilter(&movfilt); 819 movwrite.SetFilter(&movfilt); 820 821 MTaskList tlistmov; 822 tlistmov.AddToList(&movprep); 823 tlistmov.AddToList(&movfilt); 824 tlistmov.AddToList(&movclean); 825 tlistmov.AddToList(&movwrite); 826 827 MFEvtNumber evtnum; 828 //evtnum.SetSelector("ThetaSquared.fVal<0.04"); 829 //evtnum.SetFileName("ganymed00000001.root"); 830 tlistmov.SetFilter(&evtnum); 831 832 if (fIsMovieMode) 833 { 834 tlist2.AddToList(&evtnum); 835 tlist2.AddToList(&tlistmov); 836 } 837 838 // ----- End: Code for encoding movies ----- 835 839 836 840 tlist2.AddToList(&fillflorian); -
trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.h
r6979 r8406 24 24 Bool_t fIsInterlaced; // Distinguish interlaced from other calibration 25 25 Bool_t fIsRelTimesUpdate; // Choose to update relative times from interlaced 26 26 Bool_t fIsMovieMode; // Choose to encode a movie 27 27 28 Bool_t CheckEnvLocal(); 28 29 … … 37 38 38 39 public: 39 40 40 MJCalibrateSignal(const char *name=NULL, const char *title=NULL); 41 41 ~MJCalibrateSignal(); … … 43 43 Bool_t Process(MPedestalCam &camab, MPedestalCam &cam1, MPedestalCam &cam2); 44 44 45 void SetInterlaced ( const Bool_t b=kTRUE ) { fIsInterlaced = b; } 46 void SetRelTimesUpdate ( const Bool_t b=kTRUE ) { fIsRelTimesUpdate = b; } 45 void SetInterlaced (const Bool_t b=kTRUE) { fIsInterlaced = b; } 46 void SetRelTimesUpdate(const Bool_t b=kTRUE) { fIsRelTimesUpdate = b; } 47 void SetMovieMode (const Bool_t b=kTRUE) { fIsMovieMode = b; } 47 48 48 49 void SetExtractor(const MExtractor *ext=NULL);
Note:
See TracChangeset
for help on using the changeset viewer.