CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
TT6PedestalCalculator.h
Go to the documentation of this file.
1 #ifndef ApvAnalysis_TT6PedestalCalculator_h
2 #define ApvAnalysis_TT6PedestalCalculator_h
3 
5 #include <map>
11 public:
12  TT6PedestalCalculator(int evnt_ini, int evnt_iter, float sig_cut);
13  ~TT6PedestalCalculator() override;
14 
15  void resetPedestals() override {
16  thePedestal.clear();
17  theRawNoise.clear();
18  }
21 
22  void updateStatus() override;
23 
25 
26  ApvAnalysis::PedestalType rawNoise() const override { return theRawNoise; }
27  ApvAnalysis::PedestalType pedestal() const override { return thePedestal; }
28 
29  void newEvent() override;
30 
31 private:
32  void init();
35 
36 protected:
39  std::vector<double> thePedSum, thePedSqSum;
40  std::vector<unsigned short> theEventPerStrip;
46 };
47 #endif
std::vector< float > PedestalType
Definition: ApvAnalysis.h:44
ApvAnalysis::PedestalType rawNoise() const override
std::vector< unsigned short > theEventPerStrip
ApvAnalysis::PedestalType theRawNoise
TT6PedestalCalculator(int evnt_ini, int evnt_iter, float sig_cut)
void initializePedestal(ApvAnalysis::RawSignalType &in)
void refinePedestal(ApvAnalysis::RawSignalType &in)
void setRawNoise(ApvAnalysis::PedestalType &in)
std::vector< double > thePedSum
ApvAnalysis::PedestalType pedestal() const override
void updatePedestal(ApvAnalysis::RawSignalType &in) override
ApvAnalysis::PedestalType thePedestal
void resetPedestals() override
void setPedestals(ApvAnalysis::PedestalType &in) override
std::vector< double > thePedSqSum