Changeset 7125 for trunk/MagicSoft/Mars/mjobs
- Timestamp:
- 06/02/05 15:24:33 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mjobs
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJCalib.cc
r7115 r7125 48 48 // - fPulsePosCheck to kFALSE 49 49 // 50 MJCalib::MJCalib() : fDataFlag(kIsUseR ootData), fStorage(0),50 MJCalib::MJCalib() : fDataFlag(kIsUseRawData), fStorage(0), 51 51 fIsPixelCheck(kFALSE), fIsPulsePosCheck(kFALSE), 52 52 fIsHiLoCalibration(kFALSE) -
trunk/MagicSoft/Mars/mjobs/MJOptimizeCuts.cc
r7122 r7125 318 318 MHAlpha *histof = CreateNewHist("HistOff"); 319 319 320 if (!histon || !histof) 321 return kFALSE; 322 320 323 const Bool_t rc = RunOnOffCore(*histon, *histof, fname, filter, fit, tree); 321 324 … … 332 335 MHAlpha *histon = CreateNewHist(); 333 336 337 if (!histon) 338 return kFALSE; 339 334 340 const Bool_t rc = RunOnCore(*histon, fname, filter, fit); 335 341 -
trunk/MagicSoft/Mars/mjobs/MJPedestal.cc
r7099 r7125 89 89 #include "MPedCalcFromLoGain.h" 90 90 #include "MFTriggerPattern.h" 91 #include "MBadPixelsCalc.h" 92 93 #include "MPedPhotCam.h" 94 #include "MPedPhotPix.h" 95 #include "MPedestalCam.h" 96 #include "MPedestalPix.h" 91 97 92 98 ClassImp(MJPedestal); … … 111 117 MJPedestal::MJPedestal(const char *name, const char *title) 112 118 : fExtractor(NULL), fDisplayType(kDisplayDataCheck), 113 fExtractType(kUsePedRun), fExtractionType(kFundamental), fIsUseHists(kFALSE) 119 fExtractType(kUsePedRun), fExtractionType(kFundamental), 120 fIsUseHists(kFALSE), fDeadPixelCheck(kFALSE) 114 121 { 115 122 fName = name ? name : "MJPedestal"; … … 777 784 SetNoStorage(GetEnv("DisableOutput", IsNoStorage())); 778 785 786 fDeadPixelCheck = GetEnv("DeadPixelsCheck", fDeadPixelCheck); 787 779 788 // Setup an environment task 780 789 MTaskEnv tenv("ExtractSignal"); … … 1235 1244 } 1236 1245 1246 if (fDeadPixelCheck) 1247 { 1248 MBadPixelsCalc calc; 1249 calc.SetPedestalLevelVarianceLo(4.5); 1250 calc.SetPedestalLevelVarianceHi(); 1251 calc.SetPedestalLevel(); 1252 if (!CheckEnv(calc)) 1253 return kFALSE; 1254 calc.SetGeomCam(dynamic_cast<MGeomCam*>(plist.FindObject("MGeomCam"))); 1255 if (!calc.CheckPedestalRms(fBadPixels, fPedestalCamOut)) 1256 { 1257 *fLog << err << "ERROR - Checking PedestalRMS via MBadPixelsCalc failed...." << endl; 1258 return kFALSE; 1259 } 1260 } 1261 1237 1262 if (fDisplayType!=kDisplayNone) 1238 1263 DisplayResult(plist); -
trunk/MagicSoft/Mars/mjobs/MJPedestal.h
r7069 r7125 72 72 73 73 Bool_t fIsUseHists; // Switch on histogramming or not 74 Bool_t fDeadPixelCheck; // Should the dead pixel check be done? 74 75 75 76 MExtractor *ReadCalibration(); … … 110 111 void SetUseData() { fExtractType = kUseData; } 111 112 void SetUseHists( const Bool_t b=kTRUE) { fIsUseHists = b; } 113 void SetDeadPixelCheck(const Bool_t b=kTRUE) { fDeadPixelCheck = b; } 112 114 void SetUsePedRun() { fExtractType = kUsePedRun; } 113 115 void SetDataCheckDisplay() { fDisplayType = kDisplayDataCheck; }
Note:
See TracChangeset
for help on using the changeset viewer.