CMS 3D CMS Logo

SimpleNoiseCalculator.h
Go to the documentation of this file.
1 #ifndef ApvAnalysis_SimpleNoiseCalculator_H
2 #define ApvAnalysis_SimpleNoiseCalculator_H
3 
10 public:
11  // Use the constructor without arguments, since the other will soon
12  // be obsolete.
14  SimpleNoiseCalculator(int evnt_ini, bool useDB);
15  ~SimpleNoiseCalculator() 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  bool useDB_;
43 
45  // int eventsRequiredToUpdate_;
46  // float cutToAvoidSignal_;
47 };
48 #endif
SimpleNoiseCalculator::theEventPerStrip
std::vector< unsigned short > theEventPerStrip
Definition: SimpleNoiseCalculator.h:39
SimpleNoiseCalculator::noise
ApvAnalysis::PedestalType noise() const override
Definition: SimpleNoiseCalculator.h:21
SimpleNoiseCalculator::~SimpleNoiseCalculator
~SimpleNoiseCalculator() override
Definition: SimpleNoiseCalculator.cc:39
SimpleNoiseCalculator::alreadyUsedEvent
bool alreadyUsedEvent
Definition: SimpleNoiseCalculator.h:41
SimpleNoiseCalculator::stripNoise
float stripNoise(int in) const override
Definition: SimpleNoiseCalculator.h:22
SimpleNoiseCalculator::updateNoise
void updateNoise(ApvAnalysis::PedestalType &in) override
Definition: SimpleNoiseCalculator.cc:55
TkNoiseCalculator
Definition: TkNoiseCalculator.h:10
SimpleNoiseCalculator::theNoiseSqSum
std::vector< double > theNoiseSqSum
Definition: SimpleNoiseCalculator.h:38
SimpleNoiseCalculator::useDB_
bool useDB_
Definition: SimpleNoiseCalculator.h:42
SimpleNoiseCalculator::theCMPSubtractedSignal
ApvAnalysis::PedestalType theCMPSubtractedSignal
Definition: SimpleNoiseCalculator.h:37
SimpleNoiseCalculator::resetNoise
void resetNoise() override
Definition: SimpleNoiseCalculator.h:26
SimpleNoiseCalculator::theNoise
ApvAnalysis::PedestalType theNoise
Definition: SimpleNoiseCalculator.h:36
SiStripMonitorPedestals_cfi.useDB
useDB
Definition: SiStripMonitorPedestals_cfi.py:15
SimpleNoiseCalculator::updateStatus
void updateStatus() override
Definition: SimpleNoiseCalculator.cc:46
SimpleNoiseCalculator::init
void init()
Definition: SimpleNoiseCalculator.cc:28
SimpleNoiseCalculator
Definition: SimpleNoiseCalculator.h:9
SimpleNoiseCalculator::nevents
int nevents() const
Definition: SimpleNoiseCalculator.h:23
SimpleNoiseCalculator::eventsRequiredToCalibrate_
int eventsRequiredToCalibrate_
Definition: SimpleNoiseCalculator.h:44
recoMuon::in
Definition: RecoMuonEnumerators.h:6
SimpleNoiseCalculator::theNoiseSum
std::vector< double > theNoiseSum
Definition: SimpleNoiseCalculator.h:38
TkNoiseCalculator.h
SimpleNoiseCalculator::newEvent
void newEvent() override
Definition: SimpleNoiseCalculator.cc:112
SimpleNoiseCalculator::numberOfEvents
int numberOfEvents
Definition: SimpleNoiseCalculator.h:40
ApvAnalysis::PedestalType
std::vector< float > PedestalType
Definition: ApvAnalysis.h:44
SimpleNoiseCalculator::stripCMPSubtractedSignal
ApvAnalysis::PedestalType stripCMPSubtractedSignal() const
Definition: SimpleNoiseCalculator.h:30
SimpleNoiseCalculator::SimpleNoiseCalculator
SimpleNoiseCalculator()
Definition: SimpleNoiseCalculator.cc:10
SimpleNoiseCalculator::setStripNoise
void setStripNoise(ApvAnalysis::PedestalType &in) override
Definition: SimpleNoiseCalculator.h:17