- Timestamp:
- 02/25/04 05:04:22 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r3287 r3290 28 28 - CalcFFactor asks for IsChargeValid before calculating anything 29 29 30 * mcalib/MHCalibrationChargePix.cc 31 - make fPickup an Int_t 30 32 31 33 * mcalib/MCalibrate.cc -
trunk/MagicSoft/Mars/mcalib/MHCalibrationChargePix.cc
r3264 r3290 57 57 const Axis_t MHCalibrationChargePix::fgAbsTimeLast = 14.5; 58 58 59 const Float_t MHCalibrationChargePix::fgPickupLimit = 5.;59 const Int_t MHCalibrationChargePix::fgPickupLimit = 5; 60 60 const Int_t MHCalibrationChargePix::fgPulserFrequency = 200; 61 61 // -------------------------------------------------------------------------- … … 112 112 fPixId = -1; 113 113 fSaturated = 0; 114 fPickup = 0 .;114 fPickup = 0; 115 115 116 116 MHGausEvents::Clear(); … … 253 253 void MHCalibrationChargePix::CountPickup() 254 254 { 255 fPickup = GetHGausHist()->Integral(GetHGausHist()->GetXaxis()->FindBin(GetMean()+fPickupLimit*GetSigma()),256 GetHGausHist()->GetXaxis()->GetLast(),257 "width");258 } 259 260 261 262 263 264 255 fPickup = (Int_t)GetHGausHist()->Integral(GetHGausHist()->GetXaxis()->FindBin(GetMean()+fPickupLimit*GetSigma()), 256 GetHGausHist()->GetXaxis()->GetLast(), 257 "width"); 258 } 259 260 261 262 263 264 -
trunk/MagicSoft/Mars/mcalib/MHCalibrationChargePix.h
r3264 r3290 20 20 static const Axis_t fgAbsTimeLast; 21 21 22 static const Float_t fgPickupLimit;22 static const Int_t fgPickupLimit; 23 23 24 24 protected: … … 38 38 Axis_t fAbsTimeLast; 39 39 40 Float_tfPickupLimit; // The limit in number of sigmas from the fitted mean above which events are considered as pickup40 Int_t fPickupLimit; // The limit in number of sigmas from the fitted mean above which events are considered as pickup 41 41 42 42 Int_t fSaturated; 43 Float_tfPickup;43 Int_t fPickup; 44 44 45 45 public: … … 62 62 virtual void SetAbsTimeLast( const Axis_t last =fgAbsTimeLast) { fAbsTimeLast = last; } 63 63 64 virtual void SetPickupLimit( const Float_t lim =fgPickupLimit){ fPickupLimit = lim; }64 virtual void SetPickupLimit( const Int_t lim =fgPickupLimit) { fPickupLimit = lim; } 65 65 66 66 void SetPulserFrequency(Float_t f=fgPulserFrequency); … … 78 78 79 79 const Int_t GetSaturated() const { return fSaturated; } 80 const Float_tGetPickup() const { return fPickup; }80 const Int_t GetPickup() const { return fPickup; } 81 81 82 82 // Fill histos
Note:
See TracChangeset
for help on using the changeset viewer.