#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 18 of file SimpleNoiseCalculator.cc.
References gather_cfg::cout, eventsRequiredToCalibrate_, init(), and useDB_.
|
override |
|
protected |
Definition at line 32 of file SimpleNoiseCalculator.cc.
References theCMPSubtractedSignal, theEventPerStrip, theNoise, theNoiseSqSum, and theNoiseSum.
Referenced by SimpleNoiseCalculator(), and stripCMPSubtractedSignal().
|
inline |
Definition at line 22 of file SimpleNoiseCalculator.h.
References numberOfEvents, and updateStatus().
|
overridevirtual |
Tell noise calculator that a new event is available
Reimplemented from TkNoiseCalculator.
Definition at line 124 of file SimpleNoiseCalculator.cc.
References alreadyUsedEvent.
Referenced by resetNoise().
|
inlineoverridevirtual |
Return reconstructed noise
Implements TkNoiseCalculator.
Definition at line 20 of file SimpleNoiseCalculator.h.
References theNoise.
|
inlineoverridevirtual |
Implements TkNoiseCalculator.
Definition at line 25 of file SimpleNoiseCalculator.h.
References recoMuon::in, newEvent(), theNoise, and updateNoise().
|
inlineoverridevirtual |
Implements TkNoiseCalculator.
Definition at line 19 of file SimpleNoiseCalculator.h.
References recoMuon::in, and theNoise.
|
inline |
Definition at line 29 of file SimpleNoiseCalculator.h.
References init(), and theCMPSubtractedSignal.
|
inlineoverridevirtual |
Implements TkNoiseCalculator.
Definition at line 21 of file SimpleNoiseCalculator.h.
References recoMuon::in, and theNoise.
|
overridevirtual |
Update noise with current event
Implements TkNoiseCalculator.
Definition at line 57 of file SimpleNoiseCalculator.cc.
References alreadyUsedEvent, gather_cfg::cout, eventsRequiredToCalibrate_, mps_fire::i, TkStateMachine::isCalibrating(), TkStateMachine::isUpdating(), numberOfEvents, mathSSE::sqrt(), theCMPSubtractedSignal, theEventPerStrip, theNoise, theNoiseSqSum, theNoiseSum, TkNoiseCalculator::theStatus, and updateStatus().
Referenced by resetNoise().
|
overridevirtual |
Request that status flag be updated
Implements TkNoiseCalculator.
Definition at line 49 of file SimpleNoiseCalculator.cc.
References eventsRequiredToCalibrate_, TkStateMachine::isCalibrating(), numberOfEvents, TkStateMachine::setUpdating(), TkNoiseCalculator::theStatus, and useDB_.
Referenced by nevents(), and 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().