CMS 3D CMS Logo

CastorPulseContainmentCorrection.h
Go to the documentation of this file.
1 #ifndef CALIBCALORIMETRY_CASTORALGOS_CASTORPULSECONTAINMENTCORRECTION_H
2 #define CALIBCALORIMETRY_CASTORALGOS_CASTORPULSECONTAINMENTCORRECTION_H 1
3 
4 #include <map>
5 
13 public:
14  CastorPulseContainmentCorrection(int num_samples, float fixedphase_ns, float max_fracerror);
15 
16  double getCorrection(double fc_ampl) const;
17  double fractionContained(double fc_ampl) const { return 1.0 / this->getCorrection(fc_ampl); }
18 
19 private:
20  std::map<double, double> mCorFactors_;
21 };
22 
23 #endif
double fractionContained(double fc_ampl) const
CastorPulseContainmentCorrection(int num_samples, float fixedphase_ns, float max_fracerror)
Generate energy correction factors based on a predetermined phase of the hit + time slew...