#include <TT6NoiseCalculator.h>
Public Member Functions | |
int | nevents () const |
void | newEvent () |
ApvAnalysis::PedestalType | noise () const |
void | resetNoise () |
void | setStripNoise (ApvAnalysis::PedestalType &in) |
ApvAnalysis::PedestalType | stripCMPSubtractedSignal () const |
float | stripNoise (int in) const |
TT6NoiseCalculator () | |
TT6NoiseCalculator (int evnt_ini, int evnt_iter, float sig_cut) | |
void | updateNoise (ApvAnalysis::PedestalType &in) |
void | updateStatus () |
virtual | ~TT6NoiseCalculator () |
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 18 of file TT6NoiseCalculator.cc.
References gather_cfg::cout, cutToAvoidSignal_, eventsRequiredToCalibrate_, eventsRequiredToUpdate_, and init().
|
virtual |
|
protected |
Definition at line 32 of file TT6NoiseCalculator.cc.
References TkStateMachine::setCalibrating(), theCMPSubtractedSignal, theEventPerStrip, theNoise, theNoiseSqSum, theNoiseSum, and TkNoiseCalculator::theStatus.
Referenced by TT6NoiseCalculator().
|
inline |
|
virtual |
Tell noise calculator that a new event is available
Reimplemented from TkNoiseCalculator.
Definition at line 124 of file TT6NoiseCalculator.cc.
References alreadyUsedEvent.
|
inlinevirtual |
Return reconstructed noise
Implements TkNoiseCalculator.
Definition at line 20 of file TT6NoiseCalculator.h.
References theNoise.
|
inlinevirtual |
Implements TkNoiseCalculator.
Definition at line 25 of file TT6NoiseCalculator.h.
References theNoise.
|
inlinevirtual |
Implements TkNoiseCalculator.
Definition at line 19 of file TT6NoiseCalculator.h.
References recoMuon::in, and theNoise.
|
inline |
Definition at line 29 of file TT6NoiseCalculator.h.
References theCMPSubtractedSignal.
|
inlinevirtual |
Implements TkNoiseCalculator.
Definition at line 21 of file TT6NoiseCalculator.h.
References recoMuon::in, and theNoise.
|
virtual |
Update noise with current event
Implements TkNoiseCalculator.
Definition at line 58 of file TT6NoiseCalculator.cc.
References alreadyUsedEvent, gather_cfg::cout, cutToAvoidSignal_, eventsRequiredToCalibrate_, eventsRequiredToUpdate_, i, TkStateMachine::isCalibrating(), TkStateMachine::isUpdating(), numberOfEvents, mathSSE::sqrt(), theCMPSubtractedSignal, theEventPerStrip, theNoise, theNoiseSqSum, theNoiseSum, TkNoiseCalculator::theStatus, and updateStatus().
|
virtual |
Request that status flag be updated
Implements TkNoiseCalculator.
Definition at line 49 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().