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:
11 
12  PedestalSub();
13  ~PedestalSub();
14 
15  void init(Method method, int runCond, float threshold, float quantile);
16 
17  void calculate(const std::vector<double> & inputCharge, const std::vector<double> & inputPedestal, std::vector<double> & corrCharge) const;
18 
19  double getCorrection(const std::vector<double> & inputCharge, const std::vector<double> & inputPedestal) const;
20 
21 
22  private:
24  float fThreshold;
25  float fQuantile;
26  float fCondition;
27 
28 };
29 
30 #endif
double getCorrection(const std::vector< double > &inputCharge, const std::vector< double > &inputPedestal) const
Definition: PedestalSub.cc:34
float fCondition
Definition: PedestalSub.h:26
Method fMethod
Definition: PedestalSub.h:23
void calculate(const std::vector< double > &inputCharge, const std::vector< double > &inputPedestal, std::vector< double > &corrCharge) const
Definition: PedestalSub.cc:21
float fQuantile
Definition: PedestalSub.h:25
float fThreshold
Definition: PedestalSub.h:24
void init(Method method, int runCond, float threshold, float quantile)
Definition: PedestalSub.cc:14