#include <TT6NoiseCalculator.h>
Public Member Functions | |
int | nevents () const |
void | newEvent () override |
ApvAnalysis::PedestalType | noise () const override |
void | resetNoise () override |
void | setStripNoise (ApvAnalysis::PedestalType &in) override |
ApvAnalysis::PedestalType | stripCMPSubtractedSignal () const |
float | stripNoise (int in) const override |
TT6NoiseCalculator () | |
TT6NoiseCalculator (int evnt_ini, int evnt_iter, float sig_cut) | |
void | updateNoise (ApvAnalysis::PedestalType &in) override |
void | updateStatus () override |
~TT6NoiseCalculator () override | |
Public Member Functions inherited from TkNoiseCalculator | |
TkStateMachine * | status () |
virtual | ~TkNoiseCalculator () |
Protected Member Functions | |
void | init () |
Protected Attributes | |
bool | alreadyUsedEvent |
float | cutToAvoidSignal_ |
int | eventsRequiredToCalibrate_ |
int | eventsRequiredToUpdate_ |
int | numberOfEvents |
ApvAnalysis::PedestalType | theCMPSubtractedSignal |
std::vector< unsigned short > | theEventPerStrip |
ApvAnalysis::PedestalType | theNoise |
std::vector< double > | theNoiseSqSum |
std::vector< double > | theNoiseSum |
Protected Attributes inherited from TkNoiseCalculator | |
TkStateMachine | theStatus |
Concrete implementation of TkNoiseCalculator for TT6.
Definition at line 9 of file TT6NoiseCalculator.h.
TT6NoiseCalculator::TT6NoiseCalculator | ( | ) |
TT6NoiseCalculator::TT6NoiseCalculator | ( | int | evnt_ini, |
int | evnt_iter, | ||
float | sig_cut | ||
) |
Definition at line 16 of file TT6NoiseCalculator.cc.
References gather_cfg::cout, cutToAvoidSignal_, eventsRequiredToCalibrate_, eventsRequiredToUpdate_, and init().
|
override |
Definition at line 39 of file TT6NoiseCalculator.cc.
References gather_cfg::cout.
|
protected |
Definition at line 28 of file TT6NoiseCalculator.cc.
References TkStateMachine::setCalibrating(), theCMPSubtractedSignal, theEventPerStrip, theNoise, theNoiseSqSum, theNoiseSum, and TkNoiseCalculator::theStatus.
Referenced by TT6NoiseCalculator().
|
inline |
|
overridevirtual |
Tell noise calculator that a new event is available
Reimplemented from TkNoiseCalculator.
Definition at line 115 of file TT6NoiseCalculator.cc.
References alreadyUsedEvent.
|
inlineoverridevirtual |
Return reconstructed noise
Implements TkNoiseCalculator.
Definition at line 21 of file TT6NoiseCalculator.h.
References theNoise.
|
inlineoverridevirtual |
Implements TkNoiseCalculator.
Definition at line 26 of file TT6NoiseCalculator.h.
References theNoise.
|
inlineoverridevirtual |
Implements TkNoiseCalculator.
Definition at line 17 of file TT6NoiseCalculator.h.
References recoMuon::in, and theNoise.
|
inline |
|
inlineoverridevirtual |
Implements TkNoiseCalculator.
Definition at line 22 of file TT6NoiseCalculator.h.
References recoMuon::in, and theNoise.
|
overridevirtual |
Update noise with current event
Implements TkNoiseCalculator.
Definition at line 54 of file TT6NoiseCalculator.cc.
References alreadyUsedEvent, gather_cfg::cout, cutToAvoidSignal_, eventsRequiredToCalibrate_, eventsRequiredToUpdate_, 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 TT6NoiseCalculator.cc.
References eventsRequiredToCalibrate_, TkStateMachine::isCalibrating(), numberOfEvents, TkStateMachine::setUpdating(), and TkNoiseCalculator::theStatus.
Referenced by updateNoise().
|
protected |
Definition at line 41 of file TT6NoiseCalculator.h.
Referenced by newEvent(), and updateNoise().
|
protected |
Definition at line 45 of file TT6NoiseCalculator.h.
Referenced by TT6NoiseCalculator(), and updateNoise().
|
protected |
Definition at line 43 of file TT6NoiseCalculator.h.
Referenced by TT6NoiseCalculator(), updateNoise(), and updateStatus().
|
protected |
Definition at line 44 of file TT6NoiseCalculator.h.
Referenced by TT6NoiseCalculator(), and updateNoise().
|
protected |
Definition at line 40 of file TT6NoiseCalculator.h.
Referenced by nevents(), updateNoise(), and updateStatus().
|
protected |
Definition at line 37 of file TT6NoiseCalculator.h.
Referenced by init(), stripCMPSubtractedSignal(), and updateNoise().
|
protected |
Definition at line 39 of file TT6NoiseCalculator.h.
Referenced by init(), and updateNoise().
|
protected |
Definition at line 36 of file TT6NoiseCalculator.h.
Referenced by init(), noise(), resetNoise(), setStripNoise(), stripNoise(), and updateNoise().
|
protected |
Definition at line 38 of file TT6NoiseCalculator.h.
Referenced by init(), and updateNoise().
|
protected |
Definition at line 38 of file TT6NoiseCalculator.h.
Referenced by init(), and updateNoise().