CMS 3D CMS Logo

TT6NoiseCalculator.h
Go to the documentation of this file.
1 #ifndef ApvAnalysis_TT6NoiseCalculator_H
2 #define ApvAnalysis_TT6NoiseCalculator_H
3 
10 public:
11  // Use the constructor without arguments, since the other will soon
12  // be obsolete.
14  TT6NoiseCalculator(int evnt_ini, int evnt_iter, float sig_cut);
15  ~TT6NoiseCalculator() override;
16 
18  theNoise.clear();
19  theNoise = in;
20  }
21  ApvAnalysis::PedestalType noise() const override { return theNoise; }
22  float stripNoise(int in) const override { return theNoise[in]; }
23  int nevents() const { return numberOfEvents; }
24 
25  void updateStatus() override;
26  void resetNoise() override { theNoise.clear(); }
28  void newEvent() override;
29 
31 
32 protected:
33  void init();
34 
35 protected:
38  std::vector<double> theNoiseSum, theNoiseSqSum;
39  std::vector<unsigned short> theEventPerStrip;
42 
46 };
47 #endif
void updateNoise(ApvAnalysis::PedestalType &in) override
std::vector< float > PedestalType
Definition: ApvAnalysis.h:44
float stripNoise(int in) const override
~TT6NoiseCalculator() override
std::vector< double > theNoiseSum
std::vector< unsigned short > theEventPerStrip
void setStripNoise(ApvAnalysis::PedestalType &in) override
std::vector< double > theNoiseSqSum
ApvAnalysis::PedestalType stripCMPSubtractedSignal() const
void newEvent() override
void resetNoise() override
ApvAnalysis::PedestalType noise() const override
ApvAnalysis::PedestalType theNoise
ApvAnalysis::PedestalType theCMPSubtractedSignal
void updateStatus() override