Ignore:
Timestamp:
06/30/04 17:55:26 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mjobs/MJPedestal.h

    r4303 r4368  
    99#endif
    1010
     11class TEnv;
    1112class TCanvas;
    1213class MParList;
     
    1516class TH1D;
    1617class MExtractor;
    17 class MJPedestal : public MParContainer 
     18
     19class MJPedestal : public MParContainer
    1820{
    1921private:
     22    static const Double_t fgPedestalMin;
     23    static const Double_t fgPedestalMax;
     24    static const Double_t fgPedRmsMin;
     25    static const Double_t fgPedRmsMax;
    2026
    21   static const Double_t fgPedestalMin;
    22   static const Double_t fgPedestalMax; 
    23   static const Double_t fgPedRmsMin;
    24   static const Double_t fgPedRmsMax; 
     27    static const Float_t  fgRefPedClosedLids;
     28    static const Float_t  fgRefPedExtraGalactic;
     29    static const Float_t  fgRefPedGalactic;
    2530
    26   static const Float_t  fgRefPedClosedLids;
    27   static const Float_t  fgRefPedExtraGalactic;
    28   static const Float_t  fgRefPedGalactic;
     31    static const Float_t  fgRefPedRmsClosedLids;
     32    static const Float_t  fgRefPedRmsExtraGalactic;
     33    static const Float_t  fgRefPedRmsGalactic;
    2934
    30   static const Float_t  fgRefPedRmsClosedLids;
    31   static const Float_t  fgRefPedRmsExtraGalactic;
    32   static const Float_t  fgRefPedRmsGalactic;
     35    TString fOutputPath;
    3336
    34   TString fOutputPath;
    35  
    36   MRunIter   *fRuns;
    37   MExtractor *fExtractor;                         // Signal extractor, used to find the nr. of used FADC slices
     37    TEnv       *fEnv;           // Input setup-file
    3838
    39   MPedestalCam  fPedestalCam;
    40   MBadPixelsCam fBadPixels;
    41  
    42   Bool_t fDataCheck;                              // Flag if the data check is run on raw data
    43  
    44   Bool_t ReadPedestalCam();
    45   Bool_t WriteResult();
    46  
    47   void   DisplayResult(MParList &plist);
    48   void   DisplayReferenceLines(MHCamera *cam, const Int_t what) const;
    49   void   DisplayOutliers(      TH1D *hist) const;
    50  
     39    MRunIter   *fRuns;
     40    MExtractor *fExtractor;     // Signal extractor, used to find the nr. of used FADC slices
     41
     42    MPedestalCam  fPedestalCam;
     43    MBadPixelsCam fBadPixels;
     44
     45    Bool_t fDataCheck;          // Flag if the data check is run on raw data
     46
     47    Bool_t ReadPedestalCam();
     48    Bool_t WriteResult();
     49
     50    void   DisplayResult(MParList &plist);
     51    void   DisplayReferenceLines(MHCamera *cam, const Int_t what) const;
     52    void   DisplayOutliers(TH1D *hist) const;
     53
    5154public:
     55    MJPedestal(const char *name=NULL, const char *title=NULL);
     56    ~MJPedestal();
    5257
    53   MJPedestal(const char *name=NULL, const char *title=NULL);
     58    MPedestalCam &GetPedestalCam()            { return fPedestalCam; }
     59    const MBadPixelsCam &GetBadPixels() const { return fBadPixels;   }
    5460
    55   MPedestalCam &GetPedestalCam()            { return fPedestalCam; }
    56   const MBadPixelsCam &GetBadPixels() const { return fBadPixels;   }
    57  
    58   const char* GetOutputFile() const;
    59   const Bool_t IsDataCheck() const    { return fDataCheck;  }
    60  
    61   Bool_t Process();
    62   Bool_t ProcessFile();
    63  
    64   void SetBadPixels ( const MBadPixelsCam &bad) { bad.Copy(fBadPixels); }
    65   void SetDataCheck ( const Bool_t b=kTRUE    ) { fDataCheck = b;       }
    66   void SetExtractor (       MExtractor* ext   ) { fExtractor = ext;     }
    67   void SetInput     (       MRunIter *iter    ) { fRuns      = iter;    }
    68   void SetOutputPath( const char *path="."    );
    69  
    70   ClassDef(MJPedestal, 0) // Tool to create a pedestal file (MPedestalCam)
     61    const char* GetOutputFile() const;
     62    const Bool_t IsDataCheck() const    { return fDataCheck;  }
     63
     64    Bool_t Process();
     65    Bool_t ProcessFile();
     66
     67    void SetBadPixels(const MBadPixelsCam &bad) { bad.Copy(fBadPixels); }
     68    void SetExtractor(MExtractor* ext   ) { fExtractor = ext;     }
     69    void SetInput(MRunIter *iter) { fRuns = iter; }
     70    void SetOutputPath(const char *path=".");
     71    void SetEnv(const char *env);
     72
     73    void SetDataCheck(const Bool_t b=kTRUE) { fDataCheck = b; }
     74
     75    ClassDef(MJPedestal, 0) // Tool to create a pedestal file (MPedestalCam)
    7176};
    7277
Note: See TracChangeset for help on using the changeset viewer.