Changeset 3636 for trunk/MagicSoft/Mars/mcalib/MHCalibrationChargePix.h
- Timestamp:
- 04/03/04 17:27:50 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MHCalibrationChargePix.h
r3631 r3636 12 12 private: 13 13 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. ) 14 static const Int_t fgChargeNbins; // Default for MHGausEvents::fNBins (now set to: 2000 ) 15 static const Axis_t fgChargeFirst; // Default for MHGausEvents::fFirst (now set to: -0.5 ) 16 static const Axis_t fgChargeLast; // Default for MHGausEvents::fLast (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 ) 21 20 22 21 protected: 23 22 24 Int_t fPixId; // The pixel ID25 26 23 TH1F fHAbsTime; // Histogram containing the absolute arrival times 27 24 28 Int_t fChargeNbins; // Number of bins used for the fHGausHist29 Axis_t fChargeFirst; // Lower bound bin used for the fHGausHist30 Axis_t fChargeLast; // Upper bound bin used for the fHGausHist31 32 25 Int_t fAbsTimeNbins; // Number of bins used for the fHAbsTime 33 26 Axis_t fAbsTimeFirst; // Lower bound bin used for the fHAbsTime 34 27 Axis_t fAbsTimeLast; // Upper bound bin used for the fHAbsTime 35 28 36 Float_t fPickupLimit; // Upper number of sigmas from the fitted mean above which events are considered as pickup37 38 29 Float_t fSaturated; // Number of events classified as saturated 39 Float_t fPickup; // Number of events classified as pick-up40 41 Byte_t fFlags; // Bit-field for the flags42 enum { kExcluded }; // Possible bits to be set43 30 44 31 public: … … 49 36 virtual void Clear(Option_t *o=""); 50 37 virtual void Reset(); 51 virtual void Init(); 52 virtual void ChangeHistId(Int_t i); 38 virtual void InitBins(); 53 39 54 40 // 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; }58 59 41 virtual void SetAbsTimeNbins(const Int_t bins =fgAbsTimeNbins) { fAbsTimeNbins = bins; } 60 42 virtual void SetAbsTimeFirst(const Axis_t first=fgAbsTimeFirst) { fAbsTimeFirst = first; } 61 43 virtual void SetAbsTimeLast( const Axis_t last =fgAbsTimeLast) { fAbsTimeLast = last; } 62 44 63 virtual void SetPickupLimit( const Float_t lim =fgPickupLimit) { fPickupLimit = lim; }64 65 45 void SetSaturated ( const Float_t f ) { fSaturated += f; } 66 void SetExcluded ( const Bool_t b=kTRUE );67 46 68 47 // Getters … … 70 49 const TH1F *GetHAbsTime() const { return &fHAbsTime; } 71 50 72 const Float_t GetIntegral() const;73 74 51 const Float_t GetAbsTimeMean( ) const; 75 52 const Float_t GetAbsTimeRms() const; 76 53 const Float_t GetIntegral() const; 77 54 const Float_t GetSaturated() const { return fSaturated; } 78 const Float_t GetPickup() const { return fPickup; }79 80 const Bool_t IsExcluded() const;81 55 82 56 // Fill histos 83 57 Bool_t FillAbsTime(const Float_t t); 84 58 85 // Fits86 Bool_t RepeatFit(const Option_t *option="RQ0");87 88 59 // Draws 89 60 virtual void Draw(Option_t *opt=""); 90 61 91 62 // Miscelleaneous 92 void C ountPickup();93 63 void ChangeHistId(Int_t id); 64 94 65 ClassDef(MHCalibrationChargePix, 1) // Base Histogram class for a Charge Calibration Pixel 95 66 };
Note:
See TracChangeset
for help on using the changeset viewer.