CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SimpleNoiseCalculator.h
Go to the documentation of this file.
1 #ifndef ApvAnalysis_SimpleNoiseCalculator_H
2 #define ApvAnalysis_SimpleNoiseCalculator_H
3 
10 
11 public:
12 
13  // Use the constructor without arguments, since the other will soon
14  // be obsolete.
16  SimpleNoiseCalculator(int evnt_ini, bool useDB);
17  virtual ~SimpleNoiseCalculator();
18 
21  float stripNoise(int in) const {return theNoise[in];}
22  int nevents() const {return numberOfEvents;}
23 
24  void updateStatus();
25  void resetNoise() {theNoise.clear();}
27  void newEvent();
28 
30  {return theCMPSubtractedSignal;}
31 
32 protected:
33  void init();
34 
35 protected:
38  std::vector<double> theNoiseSum,theNoiseSqSum;
39  std::vector<unsigned short> theEventPerStrip;
42  bool useDB_;
43 
45  // int eventsRequiredToUpdate_;
46  // float cutToAvoidSignal_;
47 };
48 #endif
ApvAnalysis::PedestalType stripCMPSubtractedSignal() const
std::vector< float > PedestalType
Definition: ApvAnalysis.h:48
ApvAnalysis::PedestalType theNoise
void setStripNoise(ApvAnalysis::PedestalType &in)
std::vector< double > theNoiseSum
std::vector< double > theNoiseSqSum
ApvAnalysis::PedestalType theCMPSubtractedSignal
void updateNoise(ApvAnalysis::PedestalType &in)
float stripNoise(int in) const
std::vector< unsigned short > theEventPerStrip
ApvAnalysis::PedestalType noise() const