#include <TT6PedestalCalculator.h>
Public Member Functions | |
void | newEvent () override |
ApvAnalysis::PedestalType | pedestal () const override |
ApvAnalysis::PedestalType | rawNoise () const override |
void | resetPedestals () override |
void | setPedestals (ApvAnalysis::PedestalType &in) override |
void | setRawNoise (ApvAnalysis::PedestalType &in) |
TT6PedestalCalculator (int evnt_ini, int evnt_iter, float sig_cut) | |
void | updatePedestal (ApvAnalysis::RawSignalType &in) override |
void | updateStatus () override |
~TT6PedestalCalculator () override | |
Public Member Functions inherited from TkPedestalCalculator | |
virtual void | setNoise (ApvAnalysis::PedestalType &) |
TkStateMachine * | status () |
virtual | ~TkPedestalCalculator () |
Protected Attributes | |
bool | alreadyUsedEvent |
float | cutToAvoidSignal |
int | eventsRequiredToCalibrate |
int | eventsRequiredToUpdate |
int | numberOfEvents |
std::vector< unsigned short > | theEventPerStrip |
ApvAnalysis::PedestalType | thePedestal |
std::vector< double > | thePedSqSum |
std::vector< double > | thePedSum |
ApvAnalysis::PedestalType | theRawNoise |
Protected Attributes inherited from TkPedestalCalculator | |
TkStateMachine | theStatus |
Private Member Functions | |
void | init () |
void | initializePedestal (ApvAnalysis::RawSignalType &in) |
void | refinePedestal (ApvAnalysis::RawSignalType &in) |
Concrete implementation of TkPedestalCalculator for TT6.
Definition at line 10 of file TT6PedestalCalculator.h.
TT6PedestalCalculator::TT6PedestalCalculator | ( | int | evnt_ini, |
int | evnt_iter, | ||
float | sig_cut | ||
) |
Definition at line 7 of file TT6PedestalCalculator.cc.
References gather_cfg::cout, cutToAvoidSignal, eventsRequiredToCalibrate, eventsRequiredToUpdate, and init().
|
override |
|
private |
Definition at line 21 of file TT6PedestalCalculator.cc.
References TkStateMachine::setCalibrating(), theEventPerStrip, thePedestal, thePedSqSum, thePedSum, theRawNoise, and TkPedestalCalculator::theStatus.
Referenced by pedestal(), and TT6PedestalCalculator().
|
private |
Definition at line 63 of file TT6PedestalCalculator.cc.
References edm::DetSet< T >::data, eventsRequiredToCalibrate, mps_fire::i, cuy::ii, numberOfEvents, mathSSE::sqrt(), theEventPerStrip, thePedestal, thePedSqSum, thePedSum, and theRawNoise.
Referenced by pedestal(), and updatePedestal().
|
overridevirtual |
Return raw noise, determined without CMN subtraction Tell pedestal calculator that a new event is available
Reimplemented from TkPedestalCalculator.
Definition at line 156 of file TT6PedestalCalculator.cc.
References alreadyUsedEvent.
Referenced by pedestal().
|
inlineoverridevirtual |
Return reconstructed pedestals
Implements TkPedestalCalculator.
Definition at line 30 of file TT6PedestalCalculator.h.
References init(), initializePedestal(), newEvent(), refinePedestal(), and thePedestal.
|
inlineoverridevirtual |
Implements TkPedestalCalculator.
Definition at line 29 of file TT6PedestalCalculator.h.
References theRawNoise.
|
private |
Definition at line 108 of file TT6PedestalCalculator.cc.
References cutToAvoidSignal, edm::DetSet< T >::data, eventsRequiredToCalibrate, eventsRequiredToUpdate, mps_fire::i, cuy::ii, numberOfEvents, mathSSE::sqrt(), theEventPerStrip, thePedestal, thePedSqSum, thePedSum, and theRawNoise.
Referenced by pedestal(), and updatePedestal().
|
inlineoverridevirtual |
Implements TkPedestalCalculator.
Definition at line 18 of file TT6PedestalCalculator.h.
References thePedestal, and theRawNoise.
|
inlineoverridevirtual |
Implements TkPedestalCalculator.
Definition at line 22 of file TT6PedestalCalculator.h.
References recoMuon::in, and thePedestal.
|
inline |
Definition at line 23 of file TT6PedestalCalculator.h.
References recoMuon::in, theRawNoise, updatePedestal(), and updateStatus().
|
overridevirtual |
Update pedestals with current event
Implements TkPedestalCalculator.
Definition at line 48 of file TT6PedestalCalculator.cc.
References alreadyUsedEvent, initializePedestal(), TkStateMachine::isCalibrating(), TkStateMachine::isUpdating(), numberOfEvents, refinePedestal(), TkPedestalCalculator::theStatus, and updateStatus().
Referenced by setRawNoise().
|
overridevirtual |
Request that status flag be updated
Implements TkPedestalCalculator.
Definition at line 38 of file TT6PedestalCalculator.cc.
References eventsRequiredToCalibrate, TkStateMachine::isCalibrating(), numberOfEvents, TkStateMachine::setUpdating(), and TkPedestalCalculator::theStatus.
Referenced by setRawNoise(), and updatePedestal().
|
protected |
Definition at line 49 of file TT6PedestalCalculator.h.
Referenced by newEvent(), and updatePedestal().
|
protected |
Definition at line 48 of file TT6PedestalCalculator.h.
Referenced by refinePedestal(), and TT6PedestalCalculator().
|
protected |
Definition at line 46 of file TT6PedestalCalculator.h.
Referenced by initializePedestal(), refinePedestal(), TT6PedestalCalculator(), and updateStatus().
|
protected |
Definition at line 47 of file TT6PedestalCalculator.h.
Referenced by refinePedestal(), and TT6PedestalCalculator().
|
protected |
Definition at line 45 of file TT6PedestalCalculator.h.
Referenced by initializePedestal(), refinePedestal(), updatePedestal(), and updateStatus().
|
protected |
Definition at line 44 of file TT6PedestalCalculator.h.
Referenced by init(), initializePedestal(), and refinePedestal().
|
protected |
Definition at line 41 of file TT6PedestalCalculator.h.
Referenced by init(), initializePedestal(), pedestal(), refinePedestal(), resetPedestals(), and setPedestals().
|
protected |
Definition at line 43 of file TT6PedestalCalculator.h.
Referenced by init(), initializePedestal(), and refinePedestal().
|
protected |
Definition at line 43 of file TT6PedestalCalculator.h.
Referenced by init(), initializePedestal(), and refinePedestal().
|
protected |
Definition at line 42 of file TT6PedestalCalculator.h.
Referenced by init(), initializePedestal(), rawNoise(), refinePedestal(), resetPedestals(), and setRawNoise().