#ifndef MARS_MJCalibrateSignal
#define MARS_MJCalibrateSignal

#ifndef MARS_MJob
#include "MJob.h"
#endif

class TEnv;
class TList;

class MTask;
class MParList;
class MGeomCam;
class MSequence;
class MPedestalCam;
class MBadPixelsCam;

class MJCalibrateSignal : public MJob
{
private:
    Bool_t fIsDataCheck;

    Bool_t CheckEnvLocal();

    Bool_t WriteResult();
    Bool_t ReadCalibration(TObjArray &o, MBadPixelsCam &bpix,
                           MTask* &ext1, MTask* &ext2, TString &geom) const;

    Bool_t IsDataCheck() const { return fIsDataCheck; }
    void SetDataCheck(Bool_t b) { fIsDataCheck = b; }

public:
    MJCalibrateSignal(const char *name=NULL, const char *title=NULL);

    Bool_t ProcessFile(MPedestalCam &cam);

    ClassDef(MJCalibrateSignal, 0) // Tool to create a pedestal file (MPedestalCam)
};

#endif
