CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalPulseContainmentCorrection.h
Go to the documentation of this file.
1 #ifndef CALIBCALORIMETRY_HCALALGOS_HCALPULSECONTAINMENTCORRECTION_H
2 #define CALIBCALORIMETRY_HCALALGOS_HCALPULSECONTAINMENTCORRECTION_H 1
3 
4 #include <map>
5 class HcalPulseShape;
6 
15 public:
16  HcalPulseContainmentCorrection(int num_samples,
17  float fixedphase_ns,
18  float max_fracerror);
20  int num_samples,
21  float fixedphase_ns,
22  float max_fracerror);
23  double getCorrection(double fc_ampl) const;
24  double fractionContained(double fc_ampl) const { return 1.0/this->getCorrection(fc_ampl); }
25 
26 private:
27  std::map<double,double> mCorFactors_;
28 };
29 
30 #endif
double getCorrection(double fc_ampl) const
HcalPulseContainmentCorrection(int num_samples, float fixedphase_ns, float max_fracerror)
Generate energy correction factors based on a predetermined phase of the hit + time slew...
double fractionContained(double fc_ampl) const