#include <SimpleNoiseCalculator.h>
Public Member Functions | |
int | nevents () const |
void | newEvent () override |
ApvAnalysis::PedestalType | noise () const override |
void | resetNoise () override |
void | setStripNoise (ApvAnalysis::PedestalType &in) override |
SimpleNoiseCalculator () | |
SimpleNoiseCalculator (int evnt_ini, bool useDB) | |
ApvAnalysis::PedestalType | stripCMPSubtractedSignal () const |
float | stripNoise (int in) const override |
void | updateNoise (ApvAnalysis::PedestalType &in) override |
void | updateStatus () override |
~SimpleNoiseCalculator () override | |
Public Member Functions inherited from TkNoiseCalculator | |
TkStateMachine * | status () |
virtual | ~TkNoiseCalculator () |
Protected Member Functions | |
void | init () |
Protected Attributes | |
bool | alreadyUsedEvent |
int | eventsRequiredToCalibrate_ |
int | numberOfEvents |
ApvAnalysis::PedestalType | theCMPSubtractedSignal |
std::vector< unsigned short > | theEventPerStrip |
ApvAnalysis::PedestalType | theNoise |
std::vector< double > | theNoiseSqSum |
std::vector< double > | theNoiseSum |
bool | useDB_ |
Protected Attributes inherited from TkNoiseCalculator | |
TkStateMachine | theStatus |
Concrete implementation of TkNoiseCalculator for Simple.
Definition at line 9 of file SimpleNoiseCalculator.h.
SimpleNoiseCalculator::SimpleNoiseCalculator | ( | ) |
SimpleNoiseCalculator::SimpleNoiseCalculator | ( | int | evnt_ini, |
bool | useDB | ||
) |
Definition at line 16 of file SimpleNoiseCalculator.cc.
References gather_cfg::cout, eventsRequiredToCalibrate_, init(), and useDB_.
|
override |
|
protected |
Definition at line 28 of file SimpleNoiseCalculator.cc.
References theCMPSubtractedSignal, theEventPerStrip, theNoise, theNoiseSqSum, and theNoiseSum.
Referenced by SimpleNoiseCalculator().
|
inline |
|
overridevirtual |
Tell noise calculator that a new event is available
Reimplemented from TkNoiseCalculator.
Definition at line 112 of file SimpleNoiseCalculator.cc.
References alreadyUsedEvent.
|
inlineoverridevirtual |
Return reconstructed noise
Implements TkNoiseCalculator.
Definition at line 21 of file SimpleNoiseCalculator.h.
References theNoise.
|
inlineoverridevirtual |
Implements TkNoiseCalculator.
Definition at line 26 of file SimpleNoiseCalculator.h.
References theNoise.
|
inlineoverridevirtual |
Implements TkNoiseCalculator.
Definition at line 17 of file SimpleNoiseCalculator.h.
References recoMuon::in, and theNoise.
|
inline |
Definition at line 30 of file SimpleNoiseCalculator.h.
References theCMPSubtractedSignal.
|
inlineoverridevirtual |
Implements TkNoiseCalculator.
Definition at line 22 of file SimpleNoiseCalculator.h.
References recoMuon::in, and theNoise.
|
overridevirtual |
Update noise with current event
Implements TkNoiseCalculator.
Definition at line 55 of file SimpleNoiseCalculator.cc.
References alreadyUsedEvent, gather_cfg::cout, eventsRequiredToCalibrate_, mps_fire::i, recoMuon::in, TkStateMachine::isCalibrating(), TkStateMachine::isUpdating(), numberOfEvents, mathSSE::sqrt(), theCMPSubtractedSignal, theEventPerStrip, theNoise, theNoiseSqSum, theNoiseSum, TkNoiseCalculator::theStatus, and updateStatus().
|
overridevirtual |
Request that status flag be updated
Implements TkNoiseCalculator.
Definition at line 46 of file SimpleNoiseCalculator.cc.
References eventsRequiredToCalibrate_, TkStateMachine::isCalibrating(), numberOfEvents, TkStateMachine::setUpdating(), TkNoiseCalculator::theStatus, and useDB_.
Referenced by updateNoise().
|
protected |
Definition at line 41 of file SimpleNoiseCalculator.h.
Referenced by newEvent(), and updateNoise().
|
protected |
Definition at line 44 of file SimpleNoiseCalculator.h.
Referenced by SimpleNoiseCalculator(), updateNoise(), and updateStatus().
|
protected |
Definition at line 40 of file SimpleNoiseCalculator.h.
Referenced by nevents(), updateNoise(), and updateStatus().
|
protected |
Definition at line 37 of file SimpleNoiseCalculator.h.
Referenced by init(), stripCMPSubtractedSignal(), and updateNoise().
|
protected |
Definition at line 39 of file SimpleNoiseCalculator.h.
Referenced by init(), and updateNoise().
|
protected |
Definition at line 36 of file SimpleNoiseCalculator.h.
Referenced by init(), noise(), resetNoise(), setStripNoise(), stripNoise(), and updateNoise().
|
protected |
Definition at line 38 of file SimpleNoiseCalculator.h.
Referenced by init(), and updateNoise().
|
protected |
Definition at line 38 of file SimpleNoiseCalculator.h.
Referenced by init(), and updateNoise().
|
protected |
Definition at line 42 of file SimpleNoiseCalculator.h.
Referenced by SimpleNoiseCalculator(), and updateStatus().