#include <SimpleNoiseCalculator.h>
Public Member Functions | |
int | nevents () const |
void | newEvent () |
ApvAnalysis::PedestalType | noise () const |
void | resetNoise () |
void | setStripNoise (ApvAnalysis::PedestalType &in) |
SimpleNoiseCalculator () | |
SimpleNoiseCalculator (int evnt_ini, bool useDB) | |
ApvAnalysis::PedestalType | stripCMPSubtractedSignal () const |
float | stripNoise (int in) const |
void | updateNoise (ApvAnalysis::PedestalType &in) |
void | updateStatus () |
virtual | ~SimpleNoiseCalculator () |
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_.
|
virtual |
|
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().
|
virtual |
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().
|
inlinevirtual |
Return reconstructed noise
Implements TkNoiseCalculator.
Definition at line 20 of file SimpleNoiseCalculator.h.
References theNoise.
|
inlinevirtual |
Implements TkNoiseCalculator.
Definition at line 25 of file SimpleNoiseCalculator.h.
References recoMuon::in, newEvent(), theNoise, and updateNoise().
|
inlinevirtual |
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.
|
inlinevirtual |
Implements TkNoiseCalculator.
Definition at line 21 of file SimpleNoiseCalculator.h.
References recoMuon::in, and theNoise.
|
virtual |
Update noise with current event
Implements TkNoiseCalculator.
Definition at line 57 of file SimpleNoiseCalculator.cc.
References alreadyUsedEvent, gather_cfg::cout, eventsRequiredToCalibrate_, i, TkStateMachine::isCalibrating(), TkStateMachine::isUpdating(), numberOfEvents, mathSSE::sqrt(), theCMPSubtractedSignal, theEventPerStrip, theNoise, theNoiseSqSum, theNoiseSum, TkNoiseCalculator::theStatus, and updateStatus().
Referenced by resetNoise().
|
virtual |
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().