#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 10 of file CastorElectronicsSim.cc.
CastorElectronicsSim::~CastorElectronicsSim | ( | ) |
Definition at line 18 of file CastorElectronicsSim.cc.
void CastorElectronicsSim::analogToDigital | ( | CLHEP::HepRandomEngine * | engine, |
CaloSamples & | linearFrame, | ||
CastorDataFrame & | result | ||
) |
|
private |
Definition at line 23 of file CastorElectronicsSim.cc.
References CastorAmplifier::amplify(), CastorCoderFactory::coder(), CaloSamples::id(), CaloSamples::size(), theAmplifier, theCoderFactory, and theStartingCapId.
void CastorElectronicsSim::newEvent | ( | CLHEP::HepRandomEngine * | engine | ) |
Things that need to be initialized every event.
Definition at line 33 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().