CMS 3D CMS Logo

SimplePedestalCalculator.h
Go to the documentation of this file.
1 #ifndef ApvAnalysis_SimplePedestalCalculator_h
2 #define ApvAnalysis_SimplePedestalCalculator_h
3 
5 #include <map>
11 public:
12  SimplePedestalCalculator(int evnt_ini);
13  ~SimplePedestalCalculator() 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<int> thePedSum, thePedSqSum;
40  std::vector<unsigned short> theEventPerStrip;
43  // int eventsRequiredToUpdate;
44  // float cutToAvoidSignal;
46 };
47 #endif
TkPedestalCalculator
Definition: TkPedestalCalculator.h:9
SimplePedestalCalculator::init
void init()
Definition: SimplePedestalCalculator.cc:19
SimplePedestalCalculator::thePedestal
ApvAnalysis::PedestalType thePedestal
Definition: SimplePedestalCalculator.h:37
SimplePedestalCalculator::refinePedestal
void refinePedestal(ApvAnalysis::RawSignalType &in)
Definition: SimplePedestalCalculator.cc:113
edm::DetSet
Definition: DetSet.h:23
SimplePedestalCalculator::updatePedestal
void updatePedestal(ApvAnalysis::RawSignalType &in) override
Definition: SimplePedestalCalculator.cc:47
SimplePedestalCalculator::pedestal
ApvAnalysis::PedestalType pedestal() const override
Definition: SimplePedestalCalculator.h:27
SimplePedestalCalculator::~SimplePedestalCalculator
~SimplePedestalCalculator() override
Definition: SimplePedestalCalculator.cc:30
SimplePedestalCalculator::updateStatus
void updateStatus() override
Definition: SimplePedestalCalculator.cc:38
SimplePedestalCalculator::SimplePedestalCalculator
SimplePedestalCalculator(int evnt_ini)
Definition: SimplePedestalCalculator.cc:8
SimplePedestalCalculator::setRawNoise
void setRawNoise(ApvAnalysis::PedestalType &in)
Definition: SimplePedestalCalculator.h:20
SimplePedestalCalculator::thePedSqSum
std::vector< int > thePedSqSum
Definition: SimplePedestalCalculator.h:39
recoMuon::in
Definition: RecoMuonEnumerators.h:6
SimplePedestalCalculator::numberOfEvents
int numberOfEvents
Definition: SimplePedestalCalculator.h:41
SimplePedestalCalculator::theEventPerStrip
std::vector< unsigned short > theEventPerStrip
Definition: SimplePedestalCalculator.h:40
SimplePedestalCalculator::resetPedestals
void resetPedestals() override
Definition: SimplePedestalCalculator.h:15
SimplePedestalCalculator::thePedSum
std::vector< int > thePedSum
Definition: SimplePedestalCalculator.h:39
SimplePedestalCalculator::setPedestals
void setPedestals(ApvAnalysis::PedestalType &in) override
Definition: SimplePedestalCalculator.h:19
SimplePedestalCalculator
Definition: SimplePedestalCalculator.h:10
SimplePedestalCalculator::theRawNoise
ApvAnalysis::PedestalType theRawNoise
Definition: SimplePedestalCalculator.h:38
TkPedestalCalculator.h
SimplePedestalCalculator::alreadyUsedEvent
bool alreadyUsedEvent
Definition: SimplePedestalCalculator.h:45
SimplePedestalCalculator::eventsRequiredToCalibrate
int eventsRequiredToCalibrate
Definition: SimplePedestalCalculator.h:42
ApvAnalysis::PedestalType
std::vector< float > PedestalType
Definition: ApvAnalysis.h:44
SimplePedestalCalculator::newEvent
void newEvent() override
Definition: SimplePedestalCalculator.cc:148
SimplePedestalCalculator::rawNoise
ApvAnalysis::PedestalType rawNoise() const override
Definition: SimplePedestalCalculator.h:26
SimplePedestalCalculator::initializePedestal
void initializePedestal(ApvAnalysis::RawSignalType &in)
Definition: SimplePedestalCalculator.cc:63