Changeset 2969 for trunk/MagicSoft
- Timestamp:
- 01/30/04 10:10:38 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r2967 r2969 4 4 5 5 -*-*- END OF LINE -*-*- 6 2004/01/30: Markus Gaug 7 8 * manalysis/MPedestalCam.h 9 - added function IsUsedHists() 10 11 * manalysis/MPedestalCam.cc 12 - modified GetPixelContent 13 14 6 15 2004/01/29: Abelardo Moralejo 7 16 -
trunk/MagicSoft/Mars/manalysis/MPedestalCam.h
r2958 r2969 19 19 TClonesArray *fArray; // FIXME: Change TClonesArray away from a pointer? 20 20 21 ULong_t fNumTotSlices; 22 Byte_t fNumExtractSlices; 23 24 Bool_t fUseHists; 25 21 26 public: 22 27 MPedestalCam(const char *name=NULL, const char *title=NULL); … … 26 31 27 32 void InitSize(const UInt_t i); 28 Int_t GetSize() const;29 33 30 34 void InitUseHists(); … … 33 37 MPedestalPix &operator[](Int_t i) const; 34 38 39 // Setters 40 void SetNumTotSlices(ULong_t n) { fNumTotSlices = n; } 41 void SetNumExtractSlices(Byte_t n) { fNumExtractSlices = n; } 42 43 // Getters 44 Int_t GetSize() const; 35 45 Float_t GetPedestalMin(const MGeomCam *cam) const; 36 46 Float_t GetPedestalMax(const MGeomCam *cam) const; 37 47 Bool_t IsUseHists() const { return fUseHists; } 48 49 38 50 void Print(Option_t *o="") const; 39 51 -
trunk/MagicSoft/Mars/manalysis/MPedestalPix.h
r2951 r2969 14 14 { 15 15 private: 16 Float_t fPedestal; // mean value of pedestal (PMT offset)17 Float_t fPedestalRms; // root mean square / sigma / standard deviation of pedestal18 16 19 MHPedestalPixel *fHist; // Pointer to the histograms performing the fits, etc. 17 Float_t fPedestal; // mean value of pedestal (PMT offset) 18 Float_t fPedestalRms; // root mean square / sigma / standard deviation of pedestal 20 19 21 Float_t fMean; 22 Float_t fMeanErr; 23 Float_t fSigma; 24 Float_t fSigmaErr; 25 Float_t fProb; 26 27 Byte_t fFlags; 28 29 enum { kFitted, kFitValid }; 30 20 MHPedestalPixel *fHist; // Pointer to the histograms performing the fits, etc. 21 22 Float_t fMean; 23 Float_t fMeanErr; 24 Float_t fSigma; 25 Float_t fSigmaErr; 26 Float_t fProb; 27 28 Byte_t fFlags; 29 30 enum { kFitted, kFitValid }; 31 31 32 public: 32 33 34 35 36 37 38 39 40 33 MPedestalPix(); 34 ~MPedestalPix(); 35 36 void Clear(Option_t *o=""); 37 38 // Using histograms 39 void InitUseHists(); 40 void FillHists(const Float_t f); 41 41 42 // Setters 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 Bool_t IsFitValid() const;60 61 62 63 64 65 66 67 68 69 43 void SetPedestal(const Float_t f) { fPedestal = f; } 44 void SetPedestalRms(const Float_t f) { fPedestalRms = f; } 45 46 void Set(const Float_t m, const Float_t r); 47 48 // Getters 49 Float_t GetPedestal() const { return fPedestal; } 50 Float_t GetPedestalRms() const { return fPedestalRms; } 51 52 Float_t GetMean() const { return fMean; } 53 Float_t GetMeanErr() const { return fMeanErr; } 54 Float_t GetSigma() const { return fSigma; } 55 Float_t GetSigmaErr() const { return fSigmaErr; } 56 Float_t GetProb() const { return fProb; } 57 58 Bool_t IsValid() const; 59 Bool_t IsFitted() const; 60 Bool_t IsFitValid() const; 61 62 // Fits 63 void FitCharge(); 64 Bool_t CheckFitValidity(); 65 66 // Draws 67 void Draw(Option_t *opt="") { fHist->Draw(opt); } 68 TObject *DrawClone(Option_t *opt="") const { return fHist->DrawClone(opt); } 69 70 ClassDef(MPedestalPix, 1) // Storage Container for Pedestal information of one pixel 70 71 }; 71 72
Note:
See TracChangeset
for help on using the changeset viewer.