#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) |
void | analogToDigital (CaloSamples &linearFrame, HcalUpgradeDataFrame &result) |
HcalElectronicsSim (HcalAmplifier *amplifier, const HcalCoderFactory *coderFactory, bool PreMix) | |
void | newEvent () |
void | setDbService (const HcalDbService *service) |
void | setRandomEngine (CLHEP::HepRandomEngine &engine) |
void | setStartingCapId (int startingCapId) |
~HcalElectronicsSim () | |
Private Member Functions | |
template<class Digi > | |
void | convert (CaloSamples &frame, Digi &result) |
Private Attributes | |
bool | PreMixDigis |
HcalAmplifier * | theAmplifier |
const HcalCoderFactory * | theCoderFactory |
CLHEP::RandFlat * | theRandFlat |
int | theStartingCapId |
bool | theStartingCapIdIsRandom |
HcalTDC | theTDC |
Definition at line 21 of file HcalElectronicsSim.h.
HcalElectronicsSim::HcalElectronicsSim | ( | HcalAmplifier * | amplifier, |
const HcalCoderFactory * | coderFactory, | ||
bool | PreMix | ||
) |
Definition at line 12 of file HcalElectronicsSim.cc.
HcalElectronicsSim::~HcalElectronicsSim | ( | ) |
void HcalElectronicsSim::analogToDigital | ( | CaloSamples & | linearFrame, |
HBHEDataFrame & | result | ||
) |
Definition at line 49 of file HcalElectronicsSim.cc.
References PreMixDigis, query::result, and HBHEDataFrame::setSample().
void HcalElectronicsSim::analogToDigital | ( | CaloSamples & | linearFrame, |
HODataFrame & | result | ||
) |
Definition at line 70 of file HcalElectronicsSim.cc.
References PreMixDigis, query::result, and HODataFrame::setSample().
void HcalElectronicsSim::analogToDigital | ( | CaloSamples & | linearFrame, |
HFDataFrame & | result | ||
) |
Definition at line 91 of file HcalElectronicsSim.cc.
References PreMixDigis, query::result, and HFDataFrame::setSample().
void HcalElectronicsSim::analogToDigital | ( | CaloSamples & | linearFrame, |
ZDCDataFrame & | result | ||
) |
Definition at line 111 of file HcalElectronicsSim.cc.
References PreMixDigis, query::result, and ZDCDataFrame::setSample().
void HcalElectronicsSim::analogToDigital | ( | CaloSamples & | linearFrame, |
HcalUpgradeDataFrame & | result | ||
) |
Definition at line 132 of file HcalElectronicsSim.cc.
References query::result, theTDC, and HcalTDC::timing().
|
private |
Definition at line 41 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 139 of file HcalElectronicsSim.cc.
References HcalAmplifier::setStartingCapId(), theAmplifier, theRandFlat, theStartingCapId, and theStartingCapIdIsRandom.
void HcalElectronicsSim::setDbService | ( | const HcalDbService * | service | ) |
Definition at line 35 of file HcalElectronicsSim.cc.
References HcalTDC::setDbService(), and theTDC.
Referenced by HcalDigitizer::initializeEvent().
void HcalElectronicsSim::setRandomEngine | ( | CLHEP::HepRandomEngine & | engine | ) |
Definition at line 28 of file HcalElectronicsSim.cc.
References HcalTDC::setRandomEngine(), HcalAmplifier::setRandomEngine(), theAmplifier, theRandFlat, and theTDC.
void HcalElectronicsSim::setStartingCapId | ( | int | startingCapId | ) |
Definition at line 149 of file HcalElectronicsSim.cc.
References HcalAmplifier::setStartingCapId(), theAmplifier, theStartingCapId, and theStartingCapIdIsRandom.
Referenced by HcalSignalGenerator< HBHEDigitizerTraits >::fill().
|
private |
Definition at line 50 of file HcalElectronicsSim.h.
Referenced by analogToDigital().
|
private |
Definition at line 43 of file HcalElectronicsSim.h.
Referenced by convert(), newEvent(), setRandomEngine(), and setStartingCapId().
|
private |
Definition at line 44 of file HcalElectronicsSim.h.
Referenced by convert().
|
private |
Definition at line 46 of file HcalElectronicsSim.h.
Referenced by newEvent(), setRandomEngine(), and ~HcalElectronicsSim().
|
private |
Definition at line 48 of file HcalElectronicsSim.h.
Referenced by convert(), newEvent(), and setStartingCapId().
|
private |
Definition at line 49 of file HcalElectronicsSim.h.
Referenced by newEvent(), and setStartingCapId().
|
private |
Definition at line 45 of file HcalElectronicsSim.h.
Referenced by analogToDigital(), setDbService(), and setRandomEngine().