Changeset 6475


Ignore:
Timestamp:
02/15/05 09:55:41 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r6469 r6475  
    3131     - lowered default low-gain switch from 150 to 120. (for calibration
    3232       events which saturate more than 5% of the events).
     33
     34   * mjobs/MJCalib.[h,cc]
     35     - include possibility to display pixels distributions for test
     36       reasons
    3337
    3438 2005/02/14 Thomas Bretz
  • trunk/MagicSoft/Mars/mjobs/MJCalib.cc

    r6281 r6475  
    3636using namespace std;
    3737
     38const Int_t MJCalib::fgCheckedPixId = 100;
    3839// --------------------------------------------------------------------------
    3940//
    4041// Default constructor.
    4142//
    42 // Sets fDataFlag to kIsUseRootData
     43// Sets:
     44// - fDataFlag     to kIsUseRootData
     45// - fRuns         to NULL
     46// - fCheckedPixId to fgCheckedPixId
     47// - fPixelCheck   to kFALSE
    4348//
    44 MJCalib::MJCalib() : fDataFlag(kIsUseRootData), fRuns(NULL)
     49MJCalib::MJCalib() : fDataFlag(kIsUseRootData), fPixelCheck(kFALSE), fRuns(NULL)
    4550{
     51  SetCheckedPixId();
    4652}
    4753
    4854Bool_t MJCalib::CheckEnvLocal()
    4955{
     56
     57    if (HasEnv("PixelCheck"))
     58      SetPixelCheck();
     59
     60    if (HasEnv("CheckedPixId"))
     61      SetCheckedPixId(GetEnv("CheckedPixId",fCheckedPixId));
     62
    5063    if (!HasEnv("DataType"))
    5164        return kTRUE;
  • trunk/MagicSoft/Mars/mjobs/MJCalib.h

    r6466 r6475  
    1919
    2020private:
    21     Byte_t fDataFlag;      // Bit-field to store the data type
     21
     22    static const Int_t fgCheckedPixId;  //! Default for fCheckedPixId
     23
     24    Byte_t fDataFlag;                    // Bit-field to store the data type
    2225
    2326protected:
    24     MRunIter *fRuns;          // Data files, only used for test applications, default is sequence files!
     27
     28    Bool_t fPixelCheck;                  // Check a test pixel?
     29    Int_t  fCheckedPixId;                // ID of checked pixel
     30
     31    MRunIter *fRuns;                     // Data files, only used for test applications, default is sequence files!
    2532
    2633    Bool_t CheckEnvLocal();
     
    3037
    3138    void SetInput(MRunIter *iter) { fRuns = iter; }
    32 
    33     Byte_t GetDataFlag() const { return fDataFlag; }
    3439
    3540    Bool_t IsUseRawData()  const { return fDataFlag==kIsUseRawData;  }
     
    4348    void SetDataType(DataType_t type) { fDataFlag=type; }
    4449 
     50    void SetPixelCheck  ( const Bool_t b=kTRUE )         { fPixelCheck   = b; }
     51    void SetCheckedPixId( const Int_t i=fgCheckedPixId ) { fCheckedPixId = i; }
     52
    4553    ClassDef(MJCalib, 0) // Base class for calibration jobs
    4654};
Note: See TracChangeset for help on using the changeset viewer.