#include <HcalElectronicsSim.h>
Public Member Functions | |
void | analogToDigital (CLHEP::HepRandomEngine *, CaloSamples &linearFrame, HBHEDataFrame &result) |
void | analogToDigital (CLHEP::HepRandomEngine *, CaloSamples &linearFrame, HODataFrame &result) |
void | analogToDigital (CLHEP::HepRandomEngine *, CaloSamples &linearFrame, HFDataFrame &result) |
void | analogToDigital (CLHEP::HepRandomEngine *, CaloSamples &linearFrame, ZDCDataFrame &result) |
void | analogToDigital (CLHEP::HepRandomEngine *, CaloSamples &linearFrame, HcalUpgradeDataFrame &result) |
HcalElectronicsSim (HcalAmplifier *amplifier, const HcalCoderFactory *coderFactory, bool PreMix) | |
void | newEvent (CLHEP::HepRandomEngine *) |
void | setDbService (const HcalDbService *service) |
void | setStartingCapId (int startingCapId) |
~HcalElectronicsSim () | |
Private Member Functions | |
template<class Digi > | |
void | convert (CaloSamples &frame, Digi &result, CLHEP::HepRandomEngine *) |
Private Attributes | |
bool | PreMixDigis |
HcalAmplifier * | theAmplifier |
const HcalCoderFactory * | theCoderFactory |
int | theStartingCapId |
bool | theStartingCapIdIsRandom |
HcalTDC | theTDC |
Definition at line 24 of file HcalElectronicsSim.h.
HcalElectronicsSim::HcalElectronicsSim | ( | HcalAmplifier * | amplifier, |
const HcalCoderFactory * | coderFactory, | ||
bool | PreMix | ||
) |
Definition at line 13 of file HcalElectronicsSim.cc.
HcalElectronicsSim::~HcalElectronicsSim | ( | ) |
Definition at line 23 of file HcalElectronicsSim.cc.
void HcalElectronicsSim::analogToDigital | ( | CLHEP::HepRandomEngine * | engine, |
CaloSamples & | linearFrame, | ||
HBHEDataFrame & | result | ||
) |
Definition at line 40 of file HcalElectronicsSim.cc.
References PreMixDigis, and query::result.
void HcalElectronicsSim::analogToDigital | ( | CLHEP::HepRandomEngine * | engine, |
CaloSamples & | linearFrame, | ||
HODataFrame & | result | ||
) |
Definition at line 61 of file HcalElectronicsSim.cc.
References PreMixDigis, and query::result.
void HcalElectronicsSim::analogToDigital | ( | CLHEP::HepRandomEngine * | engine, |
CaloSamples & | linearFrame, | ||
HFDataFrame & | result | ||
) |
Definition at line 82 of file HcalElectronicsSim.cc.
References PreMixDigis, and query::result.
void HcalElectronicsSim::analogToDigital | ( | CLHEP::HepRandomEngine * | engine, |
CaloSamples & | linearFrame, | ||
ZDCDataFrame & | result | ||
) |
Definition at line 102 of file HcalElectronicsSim.cc.
References PreMixDigis, and query::result.
void HcalElectronicsSim::analogToDigital | ( | CLHEP::HepRandomEngine * | engine, |
CaloSamples & | linearFrame, | ||
HcalUpgradeDataFrame & | result | ||
) |
Definition at line 123 of file HcalElectronicsSim.cc.
References query::result, theTDC, and HcalTDC::timing().
|
private |
Definition at line 33 of file HcalElectronicsSim.cc.
References HcalAmplifier::amplify(), HcalCoderFactory::coder(), CaloSamples::id(), CaloSamples::size(), theAmplifier, theCoderFactory, and theStartingCapId.
void HcalElectronicsSim::newEvent | ( | CLHEP::HepRandomEngine * | engine | ) |
Things that need to be initialized every event sets starting CapID randomly
Definition at line 130 of file HcalElectronicsSim.cc.
References HcalAmplifier::setStartingCapId(), theAmplifier, theStartingCapId, and theStartingCapIdIsRandom.
void HcalElectronicsSim::setDbService | ( | const HcalDbService * | service | ) |
Definition at line 27 of file HcalElectronicsSim.cc.
References HcalTDC::setDbService(), and theTDC.
Referenced by HcalDigitizer::initializeEvent().
void HcalElectronicsSim::setStartingCapId | ( | int | startingCapId | ) |
Definition at line 140 of file HcalElectronicsSim.cc.
References HcalAmplifier::setStartingCapId(), theAmplifier, theStartingCapId, and theStartingCapIdIsRandom.
Referenced by HcalSignalGenerator< HBHEDigitizerTraits >::fill().
|
private |
Definition at line 51 of file HcalElectronicsSim.h.
Referenced by analogToDigital().
|
private |
Definition at line 45 of file HcalElectronicsSim.h.
Referenced by convert(), newEvent(), and setStartingCapId().
|
private |
Definition at line 46 of file HcalElectronicsSim.h.
Referenced by convert().
|
private |
Definition at line 49 of file HcalElectronicsSim.h.
Referenced by convert(), newEvent(), and setStartingCapId().
|
private |
Definition at line 50 of file HcalElectronicsSim.h.
Referenced by newEvent(), and setStartingCapId().
|
private |
Definition at line 47 of file HcalElectronicsSim.h.
Referenced by analogToDigital(), and setDbService().