#include <CastorElectronicsSim.h>
Public Member Functions | |
void | analogToDigital (CLHEP::HepRandomEngine *, CaloSamples &linearFrame, CastorDataFrame &result) |
CastorElectronicsSim (CastorAmplifier *amplifier, const CastorCoderFactory *coderFactory) | |
void | newEvent (CLHEP::HepRandomEngine *) |
Things that need to be initialized every event. More... | |
~CastorElectronicsSim () | |
Private Member Functions | |
template<class Digi > | |
void | convert (CaloSamples &frame, Digi &result, CLHEP::HepRandomEngine *) |
Private Attributes | |
CastorAmplifier * | theAmplifier |
const CastorCoderFactory * | theCoderFactory |
int | theStartingCapId |
Definition at line 19 of file CastorElectronicsSim.h.
CastorElectronicsSim::CastorElectronicsSim | ( | CastorAmplifier * | amplifier, |
const CastorCoderFactory * | coderFactory | ||
) |
Definition at line 8 of file CastorElectronicsSim.cc.
CastorElectronicsSim::~CastorElectronicsSim | ( | ) |
Definition at line 11 of file CastorElectronicsSim.cc.
void CastorElectronicsSim::analogToDigital | ( | CLHEP::HepRandomEngine * | engine, |
CaloSamples & | linearFrame, | ||
CastorDataFrame & | result | ||
) |
|
private |
Definition at line 14 of file CastorElectronicsSim.cc.
References CastorAmplifier::amplify(), CastorCoderFactory::coder(), mps_fire::result, theAmplifier, theCoderFactory, and theStartingCapId.
void CastorElectronicsSim::newEvent | ( | CLHEP::HepRandomEngine * | engine | ) |
Things that need to be initialized every event.
Definition at line 24 of file CastorElectronicsSim.cc.
References CastorAmplifier::setStartingCapId(), theAmplifier, and theStartingCapId.
|
private |
Definition at line 33 of file CastorElectronicsSim.h.
Referenced by convert(), and newEvent().
|
private |
Definition at line 34 of file CastorElectronicsSim.h.
Referenced by convert().
|
private |
Definition at line 36 of file CastorElectronicsSim.h.
Referenced by convert(), and newEvent().