#include <SimplePedestalCalculator.h>
Public Member Functions | |
void | newEvent () override |
ApvAnalysis::PedestalType | pedestal () const override |
ApvAnalysis::PedestalType | rawNoise () const override |
void | resetPedestals () override |
void | setPedestals (ApvAnalysis::PedestalType &in) override |
void | setRawNoise (ApvAnalysis::PedestalType &in) |
SimplePedestalCalculator (int evnt_ini) | |
void | updatePedestal (ApvAnalysis::RawSignalType &in) override |
void | updateStatus () override |
~SimplePedestalCalculator () override | |
Public Member Functions inherited from TkPedestalCalculator | |
virtual void | setNoise (ApvAnalysis::PedestalType &) |
TkStateMachine * | status () |
virtual | ~TkPedestalCalculator () |
Protected Attributes | |
bool | alreadyUsedEvent |
int | eventsRequiredToCalibrate |
int | numberOfEvents |
std::vector< unsigned short > | theEventPerStrip |
ApvAnalysis::PedestalType | thePedestal |
std::vector< int > | thePedSqSum |
std::vector< int > | thePedSum |
ApvAnalysis::PedestalType | theRawNoise |
Protected Attributes inherited from TkPedestalCalculator | |
TkStateMachine | theStatus |
Private Member Functions | |
void | init () |
void | initializePedestal (ApvAnalysis::RawSignalType &in) |
void | refinePedestal (ApvAnalysis::RawSignalType &in) |
Concrete implementation of TkPedestalCalculator for Simple.
Definition at line 10 of file SimplePedestalCalculator.h.
SimplePedestalCalculator::SimplePedestalCalculator | ( | int | evnt_ini | ) |
Definition at line 8 of file SimplePedestalCalculator.cc.
References gather_cfg::cout, eventsRequiredToCalibrate, and init().
|
override |
Definition at line 30 of file SimplePedestalCalculator.cc.
References gather_cfg::cout.
|
private |
Definition at line 19 of file SimplePedestalCalculator.cc.
References TkStateMachine::setCalibrating(), theEventPerStrip, thePedestal, thePedSqSum, thePedSum, theRawNoise, and TkPedestalCalculator::theStatus.
Referenced by SimplePedestalCalculator().
|
private |
Definition at line 63 of file SimplePedestalCalculator.cc.
References eventsRequiredToCalibrate, mps_fire::i, cuy::ii, recoMuon::in, numberOfEvents, mathSSE::sqrt(), theEventPerStrip, thePedestal, thePedSqSum, thePedSum, and theRawNoise.
Referenced by updatePedestal().
|
overridevirtual |
Return raw noise, determined without CMN subtraction Tell pedestal calculator that a new event is available
Reimplemented from TkPedestalCalculator.
Definition at line 148 of file SimplePedestalCalculator.cc.
References alreadyUsedEvent.
|
inlineoverridevirtual |
Return reconstructed pedestals
Implements TkPedestalCalculator.
Definition at line 27 of file SimplePedestalCalculator.h.
References thePedestal.
|
inlineoverridevirtual |
Implements TkPedestalCalculator.
Definition at line 26 of file SimplePedestalCalculator.h.
References theRawNoise.
|
private |
Definition at line 113 of file SimplePedestalCalculator.cc.
References mps_fire::i, cuy::ii, recoMuon::in, mathSSE::sqrt(), theEventPerStrip, thePedestal, thePedSqSum, thePedSum, and theRawNoise.
Referenced by updatePedestal().
|
inlineoverridevirtual |
Implements TkPedestalCalculator.
Definition at line 15 of file SimplePedestalCalculator.h.
References thePedestal, and theRawNoise.
|
inlineoverridevirtual |
Implements TkPedestalCalculator.
Definition at line 19 of file SimplePedestalCalculator.h.
References recoMuon::in, and thePedestal.
|
inline |
|
overridevirtual |
Update pedestals with current event
Implements TkPedestalCalculator.
Definition at line 47 of file SimplePedestalCalculator.cc.
References alreadyUsedEvent, recoMuon::in, initializePedestal(), TkStateMachine::isCalibrating(), TkStateMachine::isUpdating(), numberOfEvents, refinePedestal(), TkPedestalCalculator::theStatus, and updateStatus().
|
overridevirtual |
Request that status flag be updated
Implements TkPedestalCalculator.
Definition at line 38 of file SimplePedestalCalculator.cc.
References eventsRequiredToCalibrate, TkStateMachine::isCalibrating(), numberOfEvents, TkStateMachine::setUpdating(), and TkPedestalCalculator::theStatus.
Referenced by updatePedestal().
|
protected |
Definition at line 45 of file SimplePedestalCalculator.h.
Referenced by newEvent(), and updatePedestal().
|
protected |
Definition at line 42 of file SimplePedestalCalculator.h.
Referenced by initializePedestal(), SimplePedestalCalculator(), and updateStatus().
|
protected |
Definition at line 41 of file SimplePedestalCalculator.h.
Referenced by initializePedestal(), updatePedestal(), and updateStatus().
|
protected |
Definition at line 40 of file SimplePedestalCalculator.h.
Referenced by init(), initializePedestal(), and refinePedestal().
|
protected |
Definition at line 37 of file SimplePedestalCalculator.h.
Referenced by init(), initializePedestal(), pedestal(), refinePedestal(), resetPedestals(), and setPedestals().
|
protected |
Definition at line 39 of file SimplePedestalCalculator.h.
Referenced by init(), initializePedestal(), and refinePedestal().
|
protected |
Definition at line 39 of file SimplePedestalCalculator.h.
Referenced by init(), initializePedestal(), and refinePedestal().
|
protected |
Definition at line 38 of file SimplePedestalCalculator.h.
Referenced by init(), initializePedestal(), rawNoise(), refinePedestal(), resetPedestals(), and setRawNoise().