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 
13  SimplePedestalCalculator(int evnt_ini);
14  ~SimplePedestalCalculator() override;
15 
16 
17 
18  void resetPedestals() override {
19  thePedestal.clear();
20  theRawNoise.clear();
21  }
24 
25  void updateStatus() override;
26 
28 
29  ApvAnalysis::PedestalType rawNoise() const override { return theRawNoise;}
30  ApvAnalysis::PedestalType pedestal() const override { return thePedestal;}
31 
32 
33  void newEvent() override;
34 
35 private:
36  void init();
39 
40 protected:
43  std::vector<int> thePedSum,thePedSqSum;
44  std::vector<unsigned short> theEventPerStrip;
47  // int eventsRequiredToUpdate;
48  // float cutToAvoidSignal;
50 
51  };
52 #endif
std::vector< unsigned short > theEventPerStrip
std::vector< float > PedestalType
Definition: ApvAnalysis.h:48
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