CMS 3D CMS Logo

SimplePedestalCalculator.h
Go to the documentation of this file.
1 #ifndef ApvAnalysis_SimplePedestalCalculator_h
2 #define ApvAnalysis_SimplePedestalCalculator_h
3 
5 #include <map>
11 public:
12  SimplePedestalCalculator(int evnt_ini);
13  ~SimplePedestalCalculator() 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<int> thePedSum, thePedSqSum;
40  std::vector<unsigned short> theEventPerStrip;
43  // int eventsRequiredToUpdate;
44  // float cutToAvoidSignal;
46 };
47 #endif
std::vector< unsigned short > theEventPerStrip
std::vector< float > PedestalType
Definition: ApvAnalysis.h:44
ApvAnalysis::PedestalType rawNoise() const override
void updatePedestal(ApvAnalysis::RawSignalType &in) override
ApvAnalysis::PedestalType theRawNoise
ApvAnalysis::PedestalType pedestal() const override
void setRawNoise(ApvAnalysis::PedestalType &in)
void setPedestals(ApvAnalysis::PedestalType &in) override
void refinePedestal(ApvAnalysis::RawSignalType &in)
void initializePedestal(ApvAnalysis::RawSignalType &in)
ApvAnalysis::PedestalType thePedestal