Changeset 3612 for trunk/MagicSoft/Mars/mcalib/MHCalibrationChargePix.h
- Timestamp:
- 03/30/04 20:10:03 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MHCalibrationChargePix.h
r3609 r3612 12 12 private: 13 13 14 static const Int_t fgChargeNbins; 15 static const Axis_t fgChargeFirst; 16 static const Axis_t fgChargeLast; 17 18 static const Int_t fgAbsTimeNbins; 19 static const Axis_t fgAbsTimeFirst; 20 static const Axis_t fgAbsTimeLast; 21 22 static const Float_t fgPickupLimit; 14 static const Int_t fgChargeNbins; // Default for fChargeNBins (now set to: 2000 ) 15 static const Axis_t fgChargeFirst; // Default for fChargeFirst (now set to: -0.5 ) 16 static const Axis_t fgChargeLast; // Default for fChargeLast (now set to: 1999.5) 17 static const Int_t fgAbsTimeNbins; // Default for fAbsTimeNbins (now set to: 15 ) 18 static const Axis_t fgAbsTimeFirst; // Default for fAbsTimeFirst (now set to: -0.5 ) 19 static const Axis_t fgAbsTimeLast; // Default for fAbsTimeLast (now set to: 14.5 ) 20 static const Float_t fgPickupLimit; // Default for fPickupLimit (now set to: 5. ) 23 21 24 22 protected: 25 23 26 Int_t fPixId; 24 Int_t fPixId; // The pixel ID 27 25 28 TH1F fHAbsTime; 26 TH1F fHAbsTime; // Histogram to hold the absolute arrival times in number of FADC slices 29 27 30 Int_t fChargeNbins; 31 Axis_t fChargeFirst; 32 Axis_t fChargeLast; 28 Int_t fChargeNbins; // Number of bins used for the fHGausHist 29 Axis_t fChargeFirst; // Lower bound bin used for the fHGausHist 30 Axis_t fChargeLast; // Upper bound bin used for the fHGausHist 33 31 34 Int_t fAbsTimeNbins; 35 Axis_t fAbsTimeFirst; 36 Axis_t fAbsTimeLast; 32 Int_t fAbsTimeNbins; // Number of bins used for the fHAbsTime 33 Axis_t fAbsTimeFirst; // Lower bound bin used for the fHAbsTime 34 Axis_t fAbsTimeLast; // Upper bound bin used for the fHAbsTime 37 35 38 Float_t fPickupLimit; // The limit innumber of sigmas from the fitted mean above which events are considered as pickup36 Float_t fPickupLimit; // Upper number of sigmas from the fitted mean above which events are considered as pickup 39 37 40 Float_t fSaturated; 41 Float_t fPickup; 38 Float_t fSaturated; // Number of events classified as saturated 39 Float_t fPickup; // Number of events classified as pick-up 42 40 43 Byte_t fFlags; 44 enum { kExcluded }; 41 Byte_t fFlags; // Bit-field for the flags 42 enum { kExcluded }; // Possible bits to be set 45 43 46 44 public: … … 54 52 virtual void ChangeHistId(Int_t i); 55 53 56 // Setters 57 virtual void SetChargeNbins(const Int_t bins =fgChargeNbins) { fChargeNbins = bins; }58 virtual void SetChargeFirst(const Axis_t first=fgChargeFirst) { fChargeFirst = first; }59 virtual void SetChargeLast( const Axis_t last =fgChargeLast) { fChargeLast = last; }54 // Setters 55 virtual void SetChargeNbins(const Int_t bins =fgChargeNbins) { fChargeNbins = bins; } 56 virtual void SetChargeFirst(const Axis_t first=fgChargeFirst) { fChargeFirst = first; } 57 virtual void SetChargeLast( const Axis_t last =fgChargeLast) { fChargeLast = last; } 60 58 61 virtual void SetAbsTimeNbins(const Int_t bins =fgAbsTimeNbins) { fAbsTimeNbins = bins; }59 virtual void SetAbsTimeNbins(const Int_t bins =fgAbsTimeNbins) { fAbsTimeNbins = bins; } 62 60 virtual void SetAbsTimeFirst(const Axis_t first=fgAbsTimeFirst) { fAbsTimeFirst = first; } 63 virtual void SetAbsTimeLast( const Axis_t last =fgAbsTimeLast) { fAbsTimeLast = last; }61 virtual void SetAbsTimeLast( const Axis_t last =fgAbsTimeLast) { fAbsTimeLast = last; } 64 62 65 virtual void SetPickupLimit( const Float_t lim =fgPickupLimit) { fPickupLimit = lim;}63 virtual void SetPickupLimit( const Float_t lim =fgPickupLimit) { fPickupLimit = lim; } 66 64 67 void SetSaturated ( const Float_t f ) { fSaturated += f;}68 void SetExcluded ( const Bool_t b=kTRUE );65 void SetSaturated ( const Float_t f ) { fSaturated += f; } 66 void SetExcluded ( const Bool_t b=kTRUE ); 69 67 70 68 // Getters 71 TH1F *GetHAbsTime() { return &fHAbsTime; }72 const TH1F *GetHAbsTime() const { return &fHAbsTime; }69 TH1F *GetHAbsTime() { return &fHAbsTime; } 70 const TH1F *GetHAbsTime() const { return &fHAbsTime; } 73 71 74 const Float_t GetIntegral() const;72 const Float_t GetIntegral() const; 75 73 76 const Float_t GetAbsTimeMean( ) const;77 const Float_t GetAbsTimeRms() const;74 const Float_t GetAbsTimeMean( ) const; 75 const Float_t GetAbsTimeRms() const; 78 76 79 const Float_t GetSaturated()const { return fSaturated; }80 const Float_t GetPickup()const { return fPickup; }77 const Float_t GetSaturated() const { return fSaturated; } 78 const Float_t GetPickup() const { return fPickup; } 81 79 82 Bool_t IsExcluded()const;80 const Bool_t IsExcluded() const; 83 81 84 82 // Fill histos … … 95 93 void CountPickup(); 96 94 97 ClassDef(MHCalibrationChargePix, 1) // Base class for charge calibrated pixel95 ClassDef(MHCalibrationChargePix, 1) // Base Histogram class for a Calibration Pixel 98 96 }; 99 97
Note:
See TracChangeset
for help on using the changeset viewer.