Ignore:
Timestamp:
06/02/05 15:24:33 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mjobs
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mjobs/MJCalib.cc

    r7115 r7125  
    4848// - fPulsePosCheck to kFALSE
    4949//
    50 MJCalib::MJCalib() : fDataFlag(kIsUseRootData), fStorage(0),
     50MJCalib::MJCalib() : fDataFlag(kIsUseRawData), fStorage(0),
    5151                     fIsPixelCheck(kFALSE), fIsPulsePosCheck(kFALSE),
    5252                     fIsHiLoCalibration(kFALSE)
  • trunk/MagicSoft/Mars/mjobs/MJOptimizeCuts.cc

    r7122 r7125  
    318318    MHAlpha *histof = CreateNewHist("HistOff");
    319319
     320    if (!histon || !histof)
     321        return kFALSE;
     322
    320323    const Bool_t rc = RunOnOffCore(*histon, *histof, fname, filter, fit, tree);
    321324
     
    332335    MHAlpha *histon = CreateNewHist();
    333336
     337    if (!histon)
     338        return kFALSE;
     339
    334340    const Bool_t rc = RunOnCore(*histon, fname, filter, fit);
    335341
  • trunk/MagicSoft/Mars/mjobs/MJPedestal.cc

    r7099 r7125  
    8989#include "MPedCalcFromLoGain.h"
    9090#include "MFTriggerPattern.h"
     91#include "MBadPixelsCalc.h"
     92
     93#include "MPedPhotCam.h"
     94#include "MPedPhotPix.h"
     95#include "MPedestalCam.h"
     96#include "MPedestalPix.h"
    9197
    9298ClassImp(MJPedestal);
     
    111117MJPedestal::MJPedestal(const char *name, const char *title)
    112118    : fExtractor(NULL), fDisplayType(kDisplayDataCheck),
    113       fExtractType(kUsePedRun), fExtractionType(kFundamental), fIsUseHists(kFALSE)
     119    fExtractType(kUsePedRun), fExtractionType(kFundamental),
     120    fIsUseHists(kFALSE), fDeadPixelCheck(kFALSE)
    114121{
    115122    fName  = name  ? name  : "MJPedestal";
     
    777784    SetNoStorage(GetEnv("DisableOutput", IsNoStorage()));
    778785
     786    fDeadPixelCheck = GetEnv("DeadPixelsCheck", fDeadPixelCheck);
     787
    779788    // Setup an environment task
    780789    MTaskEnv tenv("ExtractSignal");
     
    12351244    }
    12361245
     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
    12371262    if (fDisplayType!=kDisplayNone)
    12381263        DisplayResult(plist);
  • trunk/MagicSoft/Mars/mjobs/MJPedestal.h

    r7069 r7125  
    7272
    7373    Bool_t fIsUseHists;                      // Switch on histogramming or not
     74    Bool_t fDeadPixelCheck;                  // Should the dead pixel check be done?
    7475
    7576    MExtractor *ReadCalibration();
     
    110111    void SetUseData()                           { fExtractType = kUseData;   }
    111112    void SetUseHists( const Bool_t b=kTRUE)     { fIsUseHists = b;  }
     113    void SetDeadPixelCheck(const Bool_t b=kTRUE) { fDeadPixelCheck = b; }
    112114    void SetUsePedRun()                         { fExtractType = kUsePedRun; }
    113115    void SetDataCheckDisplay()                  { fDisplayType = kDisplayDataCheck; }
Note: See TracChangeset for help on using the changeset viewer.