Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:24:25

0001 #ifndef RecoLocalCalo_HcalRecAlgos_PedestalSub_h
0002 #define RecoLocalCalo_HcalRecAlgos_PedestalSub_h 1
0003 
0004 #include <typeinfo>
0005 #include <vector>
0006 
0007 class PedestalSub {
0008 public:
0009   PedestalSub();
0010   ~PedestalSub();
0011 
0012   void calculate(const std::vector<double>& inputCharge,
0013                  const std::vector<double>& inputPedestal,
0014                  const std::vector<double>& inputNoise,
0015                  std::vector<double>& corrCharge,
0016                  int soi,
0017                  int nSample) const;
0018 
0019   double getCorrection(const std::vector<double>& inputCharge,
0020                        const std::vector<double>& inputPedestal,
0021                        const std::vector<double>& inputNoise,
0022                        int soi,
0023                        int nSample) const;
0024 };
0025 
0026 #endif