#include <HcalElectronicsSim.h>
Public Member Functions | |
void | analogToDigital (CaloSamples &linearFrame, HBHEDataFrame &result) |
void | analogToDigital (CaloSamples &linearFrame, HODataFrame &result) |
void | analogToDigital (CaloSamples &linearFrame, HFDataFrame &result) |
void | analogToDigital (CaloSamples &linearFrame, ZDCDataFrame &result) |
HcalElectronicsSim (HcalAmplifier *amplifier, const HcalCoderFactory *coderFactory) | |
void | newEvent () |
void | setRandomEngine (CLHEP::HepRandomEngine &engine) |
void | setStartingCapId (int startingCapId) |
~HcalElectronicsSim () | |
Private Member Functions | |
template<class Digi > | |
void | convert (CaloSamples &frame, Digi &result) |
Private Attributes | |
HcalAmplifier * | theAmplifier |
const HcalCoderFactory * | theCoderFactory |
CLHEP::RandFlat * | theRandFlat |
int | theStartingCapId |
bool | theStartingCapIdIsRandom |
Definition at line 19 of file HcalElectronicsSim.h.
HcalElectronicsSim::HcalElectronicsSim | ( | HcalAmplifier * | amplifier, |
const HcalCoderFactory * | coderFactory | ||
) |
Definition at line 12 of file HcalElectronicsSim.cc.
HcalElectronicsSim::~HcalElectronicsSim | ( | ) |
void HcalElectronicsSim::analogToDigital | ( | CaloSamples & | linearFrame, |
HBHEDataFrame & | result | ||
) |
Definition at line 43 of file HcalElectronicsSim.cc.
References query::result.
void HcalElectronicsSim::analogToDigital | ( | CaloSamples & | linearFrame, |
HODataFrame & | result | ||
) |
Definition at line 48 of file HcalElectronicsSim.cc.
References query::result.
void HcalElectronicsSim::analogToDigital | ( | CaloSamples & | linearFrame, |
HFDataFrame & | result | ||
) |
Definition at line 53 of file HcalElectronicsSim.cc.
References query::result.
void HcalElectronicsSim::analogToDigital | ( | CaloSamples & | linearFrame, |
ZDCDataFrame & | result | ||
) |
Definition at line 57 of file HcalElectronicsSim.cc.
References query::result.
|
private |
Definition at line 36 of file HcalElectronicsSim.cc.
References HcalAmplifier::amplify(), HcalCoderFactory::coder(), CaloSamples::id(), CaloSamples::size(), theAmplifier, theCoderFactory, and theStartingCapId.
void HcalElectronicsSim::newEvent | ( | ) |
Things that need to be initialized every event sets starting CapID randomly
Definition at line 62 of file HcalElectronicsSim.cc.
References HcalAmplifier::setStartingCapId(), theAmplifier, theRandFlat, theStartingCapId, and theStartingCapIdIsRandom.
void HcalElectronicsSim::setRandomEngine | ( | CLHEP::HepRandomEngine & | engine | ) |
Definition at line 28 of file HcalElectronicsSim.cc.
References HcalAmplifier::setRandomEngine(), theAmplifier, and theRandFlat.
void HcalElectronicsSim::setStartingCapId | ( | int | startingCapId | ) |
Definition at line 72 of file HcalElectronicsSim.cc.
References HcalAmplifier::setStartingCapId(), theAmplifier, theStartingCapId, and theStartingCapIdIsRandom.
Referenced by HcalSignalGenerator< HBHEDigitizerTraits >::fill().
|
private |
Definition at line 40 of file HcalElectronicsSim.h.
Referenced by convert(), newEvent(), setRandomEngine(), and setStartingCapId().
|
private |
Definition at line 41 of file HcalElectronicsSim.h.
Referenced by convert().
|
private |
Definition at line 42 of file HcalElectronicsSim.h.
Referenced by newEvent(), setRandomEngine(), and ~HcalElectronicsSim().
|
private |
Definition at line 44 of file HcalElectronicsSim.h.
Referenced by convert(), newEvent(), and setStartingCapId().
|
private |
Definition at line 45 of file HcalElectronicsSim.h.
Referenced by newEvent(), and setStartingCapId().