Changeset 8787 for trunk/MagicSoft/Mars/mjobs
- Timestamp:
- 12/13/07 14:19:38 (17 years ago)
- Location:
- trunk/MagicSoft/Mars/mjobs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJPedestal.cc
r8582 r8787 19 19 ! Author(s): Markus Gaug, 4/2004 <mailto:markus@ifae.es> 20 20 ! 21 ! Copyright: MAGIC Software Development, 2000-200 521 ! Copyright: MAGIC Software Development, 2000-2007 22 22 ! 23 23 ! … … 29 29 // 30 30 // Resource file entries are case sensitive! 31 // 32 // We require at least fMinEvents (def=50) to be processed by the 33 // ExtractPedestal-task. If not an error is returned. 31 34 // 32 35 ///////////////////////////////////////////////////////////////////////////// … … 118 121 : fExtractor(NULL), fDisplayType(kDisplayDataCheck), 119 122 fExtractType(kUsePedRun), fExtractionType(kFundamental), 120 fIsUseHists(kFALSE), fDeadPixelCheck(kFALSE) 123 fIsUseHists(kFALSE), fDeadPixelCheck(kFALSE), fMinEvents(50) 121 124 { 122 125 fName = name ? name : "MJPedestal"; … … 761 764 SetExtractWinRight(GetEnv("ExtractWinRight", fExtractWinRight)); 762 765 766 SetMinEvents(GetEnv("MinEvents", (Int_t)fMinEvents)); 767 763 768 if (!MJCalib::CheckEnvLocal()) 764 769 return kFALSE; … … 1252 1257 } 1253 1258 1259 if (taskenv.GetNumExecutions()<fMinEvents) 1260 { 1261 *fLog << err << GetDescriptor() << ": Failed. Less than the required " << fMinEvents << " evts processed." << endl; 1262 return kFALSE; 1263 } 1264 1254 1265 if (fDeadPixelCheck) 1255 1266 { -
trunk/MagicSoft/Mars/mjobs/MJPedestal.h
r8518 r8787 51 51 Float_t fExtractWinLeft; // Number of FADC slices to extract leftward from mean pulse pos. 52 52 Float_t fExtractWinRight; // Number of FADC slices to extract rightward from mean pulse pos. 53 53 54 54 TString fReferenceFile; // File name containing the reference values 55 55 TString fBadPixelsFile; // File name containing the bad pixels excluded beforehand 56 56 57 57 MExtractor *fExtractor; // Signal extractor, used to find the nr. of used FADC slices 58 58 … … 73 73 Bool_t fIsUseHists; // Switch on histogramming or not 74 74 Bool_t fDeadPixelCheck; // Should the dead pixel check be done? 75 76 UInt_t fMinEvents; // Minimum number of events 75 77 76 78 MExtractor *ReadCalibration(); … … 93 95 94 96 Bool_t WriteExtractor() const; 95 97 96 98 public: 97 99 MJPedestal(const char *name=NULL, const char *title=NULL); … … 128 130 void SetExtractWinRight( const Float_t f=fgExtractWinRight ) { fExtractWinRight = f; } 129 131 132 void SetMinEvents(UInt_t min) { fMinEvents = min; } 133 130 134 MExtractor *GetExtractor() const { return fExtractor; } 131 135
Note:
See TracChangeset
for help on using the changeset viewer.