CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PedestalSub.h
Go to the documentation of this file.
1 #ifndef RecoLocalCalo_HcalRecAlgos_PedestalSub_h
2 #define RecoLocalCalo_HcalRecAlgos_PedestalSub_h 1
3 
4 #include <typeinfo>
5 #include <vector>
6 
8 {
9  public:
10 
11  PedestalSub();
12  ~PedestalSub();
13 
14  void init(int runCond, float threshold, float quantile);
15 
16  void calculate(const std::vector<double> & inputCharge, const std::vector<double> & inputPedestal, std::vector<double> & corrCharge) const;
17 
18  double getCorrection(const std::vector<double> & inputCharge, const std::vector<double> & inputPedestal) const;
19 
20 
21  private:
22  float fThreshold;
23  float fQuantile;
24  float fCondition;
25 
26 };
27 
28 #endif
double getCorrection(const std::vector< double > &inputCharge, const std::vector< double > &inputPedestal) const
Definition: PedestalSub.cc:28
void init(int runCond, float threshold, float quantile)
Definition: PedestalSub.cc:14
float fCondition
Definition: PedestalSub.h:24
void calculate(const std::vector< double > &inputCharge, const std::vector< double > &inputPedestal, std::vector< double > &corrCharge) const
Definition: PedestalSub.cc:20
float fQuantile
Definition: PedestalSub.h:23
float fThreshold
Definition: PedestalSub.h:22