Changeset 5506 for trunk/MagicSoft/Mars/mjobs/MJPedestal.h
- Timestamp:
- 11/29/04 19:03:54 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MJPedestal.h
r5387 r5506 41 41 static const Float_t fgRefPedRmsGalacticOuter; //! Ref. line ped. RMS for galactic source - outer pixels 42 42 43 static const TString fgNameExtractorCam; //! "ExtractorResolution" 44 43 45 MRunIter *fRuns; // Used pedestal runs 44 46 MExtractor *fExtractor; // Signal extractor, used to find the nr. of used FADC slices 45 47 46 MPedestalCam fPedestalCam; // Created pedestal results 48 MPedestalCam fPedestalCamIn; // Handed over pedestal results 49 MPedestalCam fPedestalCamOut; // Created pedestal results 47 50 MBadPixelsCam fBadPixels; // Bad Pixels 51 52 TString fNameExtractorCam; // Name of the outgoing MPedestalCam if fExtractorResolution 48 53 49 54 enum Display_t {kDataCheckDisplay, kNormalDisplay}; // Possible Display types … … 55 60 Bool_t fDataCheck; // Flag if the data check is run on raw data 56 61 57 enum Extract_t {kUseData, kUsePedRun, kUse Extractor};// Possible flags for the extraction of the pedestal62 enum Extract_t {kUseData, kUsePedRun, kUseHists }; // Possible flags for the extraction of the pedestal 58 63 Extract_t fExtractType; // Chosen extractor type 64 65 Bool_t fExtractorResolution; // Flag if the extractor is used to calculate the pedestals 59 66 60 67 MExtractor *ReadCalibration() const; … … 76 83 MJPedestal(const char *name=NULL, const char *title=NULL); 77 84 78 MPedestalCam &GetPedestalCam() { return fPedestalCam ; }85 MPedestalCam &GetPedestalCam() { return fPedestalCamOut; } 79 86 const MBadPixelsCam &GetBadPixels() const { return fBadPixels; } 80 87 … … 82 89 const Bool_t IsDataCheck() const { return fDataCheck; } 83 90 const Bool_t IsUseData() const { return fExtractType == kUseData; } 84 const Bool_t IsUseExtractor() const { return fExtractType == kUseExtractor; }85 const Bool_t IsUsePedRun() const { return fExtractType == kUsePedRun; }86 91 87 92 Bool_t Process (); … … 89 94 90 95 void SetBadPixels(const MBadPixelsCam &bad) { bad.Copy(fBadPixels); } 96 void SetPedestals(const MPedestalCam &ped) { ped.Copy(fPedestalCamIn); } 91 97 void SetExtractor(MExtractor* ext) { fExtractor = ext; } 92 98 void SetInput(MRunIter *iter) { fRuns = iter; } 93 void SetUseData() { fExtractType = kUseData; 94 void SetUse Extractor() { fExtractType = kUseExtractor;}95 void SetUsePedRun() { fExtractType = kUsePedRun; 99 void SetUseData() { fExtractType = kUseData; } 100 void SetUseHists() { fExtractType = kUseHists; } 101 void SetUsePedRun() { fExtractType = kUsePedRun; } 96 102 void SetDataCheck(const Bool_t b=kTRUE) { fDataCheck = b; b ? SetDataCheckDisplay() : SetNormalDisplay(); } 97 103 void SetDataCheckDisplay() { fDisplayType = kDataCheckDisplay; } 98 104 void SetNormalDisplay() { fDisplayType = kNormalDisplay; } 105 void SetExtractorResolution(const Bool_t b=kTRUE) { fExtractorResolution = b; } 106 void SetNameExtractorCam( const char* name= fgNameExtractorCam.Data()) { fNameExtractorCam = name; } 99 107 100 void SetPedContainerName(const char *name) { fPedestalCam.SetName(name); }101 108 102 109 // Storage
Note:
See TracChangeset
for help on using the changeset viewer.