Changeset 4368 for trunk/MagicSoft/Mars/mjobs/MJPedestal.h
- Timestamp:
- 06/30/04 17:55:26 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJPedestal.h
r4303 r4368 9 9 #endif 10 10 11 class TEnv; 11 12 class TCanvas; 12 13 class MParList; … … 15 16 class TH1D; 16 17 class MExtractor; 17 class MJPedestal : public MParContainer 18 19 class MJPedestal : public MParContainer 18 20 { 19 21 private: 22 static const Double_t fgPedestalMin; 23 static const Double_t fgPedestalMax; 24 static const Double_t fgPedRmsMin; 25 static const Double_t fgPedRmsMax; 20 26 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; 25 30 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; 29 34 30 static const Float_t fgRefPedRmsClosedLids; 31 static const Float_t fgRefPedRmsExtraGalactic; 32 static const Float_t fgRefPedRmsGalactic; 35 TString fOutputPath; 33 36 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 38 38 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 51 54 public: 55 MJPedestal(const char *name=NULL, const char *title=NULL); 56 ~MJPedestal(); 52 57 53 MJPedestal(const char *name=NULL, const char *title=NULL); 58 MPedestalCam &GetPedestalCam() { return fPedestalCam; } 59 const MBadPixelsCam &GetBadPixels() const { return fBadPixels; } 54 60 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) 71 76 }; 72 77
Note:
See TracChangeset
for help on using the changeset viewer.