CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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,
15  float fixedphase_ns,
16  float max_fracerror);
17 
18  double getCorrection(double fc_ampl) const;
19  double fractionContained(double fc_ampl) const { return 1.0/this->getCorrection(fc_ampl); }
20 
21 private:
22  std::map<double,double> mCorFactors_;
23 };
24 
25 #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...