CMS 3D CMS Logo

TT6PedestalCalculator.h
Go to the documentation of this file.
1 #ifndef ApvAnalysis_TT6PedestalCalculator_h
2 #define ApvAnalysis_TT6PedestalCalculator_h
3 
5 #include <map>
11 public:
12  TT6PedestalCalculator(int evnt_ini, int evnt_iter, float sig_cut);
13  ~TT6PedestalCalculator() override;
14 
15  void resetPedestals() override {
16  thePedestal.clear();
17  theRawNoise.clear();
18  }
21 
22  void updateStatus() override;
23 
25 
26  ApvAnalysis::PedestalType rawNoise() const override { return theRawNoise; }
27  ApvAnalysis::PedestalType pedestal() const override { return thePedestal; }
28 
29  void newEvent() override;
30 
31 private:
32  void init();
35 
36 protected:
39  std::vector<double> thePedSum, thePedSqSum;
40  std::vector<unsigned short> theEventPerStrip;
46 };
47 #endif
TkPedestalCalculator
Definition: TkPedestalCalculator.h:9
edm::DetSet
Definition: DetSet.h:23
TT6PedestalCalculator::theEventPerStrip
std::vector< unsigned short > theEventPerStrip
Definition: TT6PedestalCalculator.h:40
TT6PedestalCalculator::setRawNoise
void setRawNoise(ApvAnalysis::PedestalType &in)
Definition: TT6PedestalCalculator.h:20
TT6PedestalCalculator::TT6PedestalCalculator
TT6PedestalCalculator(int evnt_ini, int evnt_iter, float sig_cut)
Definition: TT6PedestalCalculator.cc:7
TT6PedestalCalculator::eventsRequiredToCalibrate
int eventsRequiredToCalibrate
Definition: TT6PedestalCalculator.h:42
TT6PedestalCalculator::setPedestals
void setPedestals(ApvAnalysis::PedestalType &in) override
Definition: TT6PedestalCalculator.h:19
TT6PedestalCalculator::updateStatus
void updateStatus() override
Definition: TT6PedestalCalculator.cc:37
TT6PedestalCalculator::cutToAvoidSignal
float cutToAvoidSignal
Definition: TT6PedestalCalculator.h:44
TT6PedestalCalculator::theRawNoise
ApvAnalysis::PedestalType theRawNoise
Definition: TT6PedestalCalculator.h:38
TT6PedestalCalculator::initializePedestal
void initializePedestal(ApvAnalysis::RawSignalType &in)
Definition: TT6PedestalCalculator.cc:60
TT6PedestalCalculator::eventsRequiredToUpdate
int eventsRequiredToUpdate
Definition: TT6PedestalCalculator.h:43
TT6PedestalCalculator::~TT6PedestalCalculator
~TT6PedestalCalculator() override
Definition: TT6PedestalCalculator.cc:30
recoMuon::in
Definition: RecoMuonEnumerators.h:6
TT6PedestalCalculator
Definition: TT6PedestalCalculator.h:10
TT6PedestalCalculator::thePedSum
std::vector< double > thePedSum
Definition: TT6PedestalCalculator.h:39
TT6PedestalCalculator::refinePedestal
void refinePedestal(ApvAnalysis::RawSignalType &in)
Definition: TT6PedestalCalculator.cc:104
TT6PedestalCalculator::resetPedestals
void resetPedestals() override
Definition: TT6PedestalCalculator.h:15
TT6PedestalCalculator::init
void init()
Definition: TT6PedestalCalculator.cc:19
TT6PedestalCalculator::numberOfEvents
int numberOfEvents
Definition: TT6PedestalCalculator.h:41
TT6PedestalCalculator::newEvent
void newEvent() override
Definition: TT6PedestalCalculator.cc:149
TT6PedestalCalculator::thePedSqSum
std::vector< double > thePedSqSum
Definition: TT6PedestalCalculator.h:39
TkPedestalCalculator.h
TT6PedestalCalculator::thePedestal
ApvAnalysis::PedestalType thePedestal
Definition: TT6PedestalCalculator.h:37
TT6PedestalCalculator::rawNoise
ApvAnalysis::PedestalType rawNoise() const override
Definition: TT6PedestalCalculator.h:26
TT6PedestalCalculator::updatePedestal
void updatePedestal(ApvAnalysis::RawSignalType &in) override
Definition: TT6PedestalCalculator.cc:45
TT6PedestalCalculator::pedestal
ApvAnalysis::PedestalType pedestal() const override
Definition: TT6PedestalCalculator.h:27
ApvAnalysis::PedestalType
std::vector< float > PedestalType
Definition: ApvAnalysis.h:44
TT6PedestalCalculator::alreadyUsedEvent
bool alreadyUsedEvent
Definition: TT6PedestalCalculator.h:45