Changeset 3428 for trunk/MagicSoft/Mars/mcalib
- Timestamp:
- 03/07/04 17:21:50 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mcalib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mcalib/MHCalibrationChargePix.cc
r3358 r3428 57 57 const Axis_t MHCalibrationChargePix::fgAbsTimeLast = 14.5; 58 58 59 const Int_t MHCalibrationChargePix::fgPickupLimit = 5;59 const Float_t MHCalibrationChargePix::fgPickupLimit = 5.; 60 60 const Int_t MHCalibrationChargePix::fgPulserFrequency = 500; 61 61 // -------------------------------------------------------------------------- … … 64 64 // 65 65 MHCalibrationChargePix::MHCalibrationChargePix(const char *name, const char *title) 66 : fHAbsTime() 66 : fHAbsTime(), fFlags(0) 67 67 { 68 68 … … 110 110 111 111 fPixId = -1; 112 fSaturated = 0; 113 fPickup = 0; 112 fSaturated = 0.; 113 fPickup = 0.; 114 115 SetExcluded ( kFALSE ); 114 116 115 117 MHGausEvents::Clear(); … … 138 140 } 139 141 142 void MHCalibrationChargePix::SetPulserFrequency(Float_t f) 143 { 144 SetEventFrequency(f); 145 } 146 147 148 void MHCalibrationChargePix::SetExcluded(const Bool_t b) 149 { 150 b ? SETBIT(fFlags,kExcluded) : CLRBIT(fFlags,kExcluded); 151 } 140 152 141 153 const Float_t MHCalibrationChargePix::GetIntegral() const … … 154 166 } 155 167 156 void MHCalibrationChargePix::SetPulserFrequency(Float_t f) 157 { 158 SetEventFrequency(f);168 Bool_t MHCalibrationChargePix::IsExcluded() const 169 { 170 return TESTBIT(fFlags,kExcluded); 159 171 } 160 172 -
trunk/MagicSoft/Mars/mcalib/MHCalibrationChargePix.h
r3290 r3428 20 20 static const Axis_t fgAbsTimeLast; 21 21 22 static const Int_t fgPickupLimit;22 static const Float_t fgPickupLimit; 23 23 24 24 protected: … … 38 38 Axis_t fAbsTimeLast; 39 39 40 Int_t fPickupLimit; // The limit in number of sigmas from the fitted mean above which events are considered as pickup40 Float_t fPickupLimit; // The limit in number of sigmas from the fitted mean above which events are considered as pickup 41 41 42 Int_t fSaturated; 43 Int_t fPickup; 42 Float_t fSaturated; 43 Float_t fPickup; 44 45 Byte_t fFlags; 46 enum { kExcluded }; 44 47 45 48 public: … … 58 61 virtual void SetChargeLast( const Axis_t last =fgChargeLast) { fChargeLast = last; } 59 62 60 virtual void SetAbsTimeNbins(const Int_t bins =fgAbsTimeNbins) 61 virtual void SetAbsTimeFirst(const Axis_t first=fgAbsTimeFirst) 62 virtual void SetAbsTimeLast( const Axis_t last =fgAbsTimeLast) 63 virtual void SetAbsTimeNbins(const Int_t bins =fgAbsTimeNbins) { fAbsTimeNbins = bins; } 64 virtual void SetAbsTimeFirst(const Axis_t first=fgAbsTimeFirst) { fAbsTimeFirst = first; } 65 virtual void SetAbsTimeLast( const Axis_t last =fgAbsTimeLast) { fAbsTimeLast = last; } 63 66 64 virtual void SetPickupLimit( const Int_t lim =fgPickupLimit){ fPickupLimit = lim; }67 virtual void SetPickupLimit( const Float_t lim =fgPickupLimit) { fPickupLimit = lim; } 65 68 66 69 void SetPulserFrequency(Float_t f=fgPulserFrequency); 67 70 68 void SetSaturated (const Int_t i) { fSaturated += i; } 71 void SetSaturated ( const Float_t f ) { fSaturated += f; } 72 void SetExcluded ( const Bool_t b=kTRUE ); 69 73 70 74 // Getters … … 77 81 const Float_t GetAbsTimeRms() const; 78 82 79 const Int_t GetSaturated() const { return fSaturated; } 80 const Int_t GetPickup() const { return fPickup; } 83 const Float_t GetSaturated() const { return fSaturated; } 84 const Float_t GetPickup() const { return fPickup; } 85 86 Bool_t IsExcluded() const; 81 87 82 88 // Fill histos
Note:
See TracChangeset
for help on using the changeset viewer.