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
TT6NoiseCalculator::stripNoise
float stripNoise(int in) const override
Definition: TT6NoiseCalculator.h:22
TT6NoiseCalculator::noise
ApvAnalysis::PedestalType noise() const override
Definition: TT6NoiseCalculator.h:21
TT6NoiseCalculator::theCMPSubtractedSignal
ApvAnalysis::PedestalType theCMPSubtractedSignal
Definition: TT6NoiseCalculator.h:37
TT6NoiseCalculator::updateNoise
void updateNoise(ApvAnalysis::PedestalType &in) override
Definition: TT6NoiseCalculator.cc:54
TkNoiseCalculator
Definition: TkNoiseCalculator.h:10
TT6NoiseCalculator::eventsRequiredToCalibrate_
int eventsRequiredToCalibrate_
Definition: TT6NoiseCalculator.h:43
TT6NoiseCalculator::theNoiseSum
std::vector< double > theNoiseSum
Definition: TT6NoiseCalculator.h:38
TT6NoiseCalculator::eventsRequiredToUpdate_
int eventsRequiredToUpdate_
Definition: TT6NoiseCalculator.h:44
TT6NoiseCalculator::stripCMPSubtractedSignal
ApvAnalysis::PedestalType stripCMPSubtractedSignal() const
Definition: TT6NoiseCalculator.h:30
TT6NoiseCalculator::~TT6NoiseCalculator
~TT6NoiseCalculator() override
Definition: TT6NoiseCalculator.cc:39
TT6NoiseCalculator
Definition: TT6NoiseCalculator.h:9
TT6NoiseCalculator::newEvent
void newEvent() override
Definition: TT6NoiseCalculator.cc:115
TT6NoiseCalculator::numberOfEvents
int numberOfEvents
Definition: TT6NoiseCalculator.h:40
recoMuon::in
Definition: RecoMuonEnumerators.h:6
TkNoiseCalculator.h
TT6NoiseCalculator::theEventPerStrip
std::vector< unsigned short > theEventPerStrip
Definition: TT6NoiseCalculator.h:39
TT6NoiseCalculator::theNoise
ApvAnalysis::PedestalType theNoise
Definition: TT6NoiseCalculator.h:36
TT6NoiseCalculator::setStripNoise
void setStripNoise(ApvAnalysis::PedestalType &in) override
Definition: TT6NoiseCalculator.h:17
TT6NoiseCalculator::TT6NoiseCalculator
TT6NoiseCalculator()
Definition: TT6NoiseCalculator.cc:10
TT6NoiseCalculator::updateStatus
void updateStatus() override
Definition: TT6NoiseCalculator.cc:46
TT6NoiseCalculator::nevents
int nevents() const
Definition: TT6NoiseCalculator.h:23
TT6NoiseCalculator::alreadyUsedEvent
bool alreadyUsedEvent
Definition: TT6NoiseCalculator.h:41
TT6NoiseCalculator::theNoiseSqSum
std::vector< double > theNoiseSqSum
Definition: TT6NoiseCalculator.h:38
TT6NoiseCalculator::cutToAvoidSignal_
float cutToAvoidSignal_
Definition: TT6NoiseCalculator.h:45
TT6NoiseCalculator::init
void init()
Definition: TT6NoiseCalculator.cc:28
TT6NoiseCalculator::resetNoise
void resetNoise() override
Definition: TT6NoiseCalculator.h:26
ApvAnalysis::PedestalType
std::vector< float > PedestalType
Definition: ApvAnalysis.h:44