Changeset 4621 for trunk


Ignore:
Timestamp:
08/16/04 12:16:25 (20 years ago)
Author:
gaug
Message:
*** empty log message ***
File:
1 edited

Legend:

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

    r4616 r4621  
    2121{
    2222private:
    23     static const Double_t fgPedestalMin;
    24     static const Double_t fgPedestalMax;
    25     static const Double_t fgPedRmsMin;
    26     static const Double_t fgPedRmsMax;
    2723
    28     static const Float_t  fgRefPedClosedLids;
    29     static const Float_t  fgRefPedExtraGalactic;
    30     static const Float_t  fgRefPedGalactic;
     24  static const Double_t fgPedestalMin;
     25  static const Double_t fgPedestalMax;
     26  static const Double_t fgPedRmsMin;
     27  static const Double_t fgPedRmsMax;
     28 
     29  static const Float_t  fgRefPedClosedLids;
     30  static const Float_t  fgRefPedExtraGalactic;
     31  static const Float_t  fgRefPedGalactic;
    3132
    32     static const Float_t  fgRefPedRmsClosedLidsInner;
    33     static const Float_t  fgRefPedRmsExtraGalacticInner;
    34     static const Float_t  fgRefPedRmsGalacticInner;
     33  static const Float_t  fgRefPedRmsClosedLidsInner;
     34  static const Float_t  fgRefPedRmsExtraGalacticInner;
     35  static const Float_t  fgRefPedRmsGalacticInner;
     36 
     37  static const Float_t  fgRefPedRmsClosedLidsOuter;
     38  static const Float_t  fgRefPedRmsExtraGalacticOuter;
     39  static const Float_t  fgRefPedRmsGalacticOuter;
     40 
     41  TString fOutputPath;        // Directory where the F0-files get stored
     42 
     43  TEnv       *fEnv;           // Input setup-file
     44  MRunIter   *fRuns;          // Used pedestal runs
     45  MSequence  *fSequence;      //
    3546
    36     static const Float_t  fgRefPedRmsClosedLidsOuter;
    37     static const Float_t  fgRefPedRmsExtraGalacticOuter;
    38     static const Float_t  fgRefPedRmsGalacticOuter;
    39    
    40     TString fOutputPath;
     47  MExtractor *fExtractor;     // Signal extractor, used to find the nr. of used FADC slices
     48 
     49  MPedestalCam  fPedestalCam; // Created pedestal results
     50  MBadPixelsCam fBadPixels;   // Bad Pixels
     51 
     52  enum  Display_t { kDataCheckDisplay, kNormalDisplay }; // Possible Display types
    4153
    42     TEnv       *fEnv;           // Input setup-file
    43     MRunIter   *fRuns;
    44     MSequence  *fSequence;      //
     54  Display_t fDisplayType;     // Chosen Display type   
     55 
     56  Bool_t fDataCheck;          // Flag if the data check is run on raw data
     57 
     58  Bool_t ReadPedestalCam();
     59  Bool_t WriteResult();
     60 
     61  void   DisplayResult(MParList &plist);
     62  void   DisplayReferenceLines(MHCamera *cam, const Int_t what) const;
     63  void   DisplayOutliers(TH1D *hist) const;
     64  void   FixDataCheckHist(TH1D *hist) const;
     65 
     66  void   CheckEnv();
     67 
     68public:
    4569
    46     MExtractor *fExtractor;     // Signal extractor, used to find the nr. of used FADC slices
    47 
    48     MPedestalCam  fPedestalCam;
    49     MBadPixelsCam fBadPixels;
    50 
    51     enum  Display_t { kDataCheckDisplay, kNormalDisplay }; // Possible Display types
    52 
    53     Display_t fDisplayType;     // Chosen Display type   
    54    
    55     Bool_t fDataCheck;          // Flag if the data check is run on raw data
    56 
    57     Bool_t ReadPedestalCam();
    58     Bool_t WriteResult();
    59 
    60     void   DisplayResult(MParList &plist);
    61     void   DisplayReferenceLines(MHCamera *cam, const Int_t what) const;
    62     void   DisplayOutliers(TH1D *hist) const;
    63     void   FixDataCheckHist(TH1D *hist) const;
    64    
    65     void   CheckEnv();
    66 
    67 public:
    68     MJPedestal(const char *name=NULL, const char *title=NULL);
    69     ~MJPedestal();
    70 
    71     MPedestalCam &GetPedestalCam()            { return fPedestalCam; }
    72     const MBadPixelsCam &GetBadPixels() const { return fBadPixels;   }
    73 
    74     const char* GetOutputFile() const;
    75     const Bool_t IsDataCheck() const    { return fDataCheck;  }
    76 
    77     Bool_t Process();
    78     Bool_t ProcessFile();
    79 
    80     void SetBadPixels(const MBadPixelsCam &bad) { bad.Copy(fBadPixels); }
    81     void SetExtractor(MExtractor* ext) { fExtractor = ext; }
    82     void SetInput(MRunIter *iter) { fRuns = iter; }
    83     void SetSequence(MSequence *seq) { fSequence = seq; }
    84     void SetOutputPath(const char *path=".");
    85     void SetEnv(const char *env);
    86 
    87     void SetDataCheck(const Bool_t b=kTRUE) { fDataCheck = b; SetDataCheckDisplay(); }
    88 
    89     void SetDataCheckDisplay() { fDisplayType = kDataCheckDisplay; }
    90     void SetNormalDisplay()    { fDisplayType = kNormalDisplay;    }
    91 
    92     ClassDef(MJPedestal, 0) // Tool to create a pedestal file (MPedestalCam)
     70  MJPedestal(const char *name=NULL, const char *title=NULL);
     71  ~MJPedestal();
     72 
     73  MPedestalCam &GetPedestalCam()            { return fPedestalCam; }
     74  const MBadPixelsCam &GetBadPixels() const { return fBadPixels;   }
     75 
     76  const char* GetOutputFile() const;
     77  const Bool_t IsDataCheck() const    { return fDataCheck;  }
     78 
     79  Bool_t Process();
     80  Bool_t ProcessFile();
     81 
     82  void SetBadPixels(const MBadPixelsCam &bad) { bad.Copy(fBadPixels); }
     83  void SetExtractor(MExtractor* ext) { fExtractor = ext; }
     84  void SetInput(MRunIter *iter) { fRuns = iter; }
     85  void SetSequence(MSequence *seq) { fSequence = seq; }
     86  void SetOutputPath(const char *path=".");
     87  void SetEnv(const char *env);
     88 
     89  void SetDataCheck(const Bool_t b=kTRUE) { fDataCheck = b; SetDataCheckDisplay(); }
     90 
     91  void SetDataCheckDisplay() { fDisplayType = kDataCheckDisplay; }
     92  void SetNormalDisplay()    { fDisplayType = kNormalDisplay;    }
     93 
     94  ClassDef(MJPedestal, 0) // Tool to create a pedestal file (MPedestalCam)
    9395};
    9496
Note: See TracChangeset for help on using the changeset viewer.