#include <HcalElectronicsSim.h>
Public Member Functions | |
void | analogToDigital (CLHEP::HepRandomEngine *, CaloSamples &linearFrame, HBHEDataFrame &result, double preMixFactor=10.0, unsigned preMixBits=126) |
void | analogToDigital (CLHEP::HepRandomEngine *, CaloSamples &linearFrame, HODataFrame &result, double preMixFactor=10.0, unsigned preMixBits=126) |
void | analogToDigital (CLHEP::HepRandomEngine *, CaloSamples &linearFrame, HFDataFrame &result, double preMixFactor=10.0, unsigned preMixBits=126) |
void | analogToDigital (CLHEP::HepRandomEngine *, CaloSamples &linearFrame, ZDCDataFrame &result, double preMixFactor=10.0, unsigned preMixBits=126) |
void | analogToDigital (CLHEP::HepRandomEngine *, CaloSamples &linearFrame, QIE10DataFrame &result, double preMixFactor=10.0, unsigned preMixBits=126) |
void | analogToDigital (CLHEP::HepRandomEngine *, CaloSamples &linearFrame, QIE11DataFrame &result, double preMixFactor=10.0, unsigned preMixBits=126) |
HcalElectronicsSim (const HcalSimParameterMap *parameterMap, 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 | analogToDigitalImpl (CLHEP::HepRandomEngine *, CaloSamples &linearFrame, Digi &result, double preMixFactor, unsigned preMixBits) |
template<> | |
void | convert (CaloSamples &frame, QIE10DataFrame &result, CLHEP::HepRandomEngine *engine) |
template<> | |
void | convert (CaloSamples &frame, QIE11DataFrame &result, CLHEP::HepRandomEngine *engine) |
template<class Digi > | |
void | convert (CaloSamples &frame, Digi &result, CLHEP::HepRandomEngine *) |
template<> | |
void | premix (CaloSamples &frame, QIE10DataFrame &result, double preMixFactor, unsigned preMixBits) |
template<class Digi > | |
void | premix (CaloSamples &frame, Digi &result, double preMixFactor, unsigned preMixBits) |
template<> | |
void | premix (CaloSamples &frame, QIE11DataFrame &result, double preMixFactor, unsigned preMixBits) |
Private Attributes | |
bool | PreMixDigis |
HcalAmplifier * | theAmplifier |
const HcalCoderFactory * | theCoderFactory |
const HcalSimParameterMap * | theParameterMap |
int | theStartingCapId |
bool | theStartingCapIdIsRandom |
HcalTDC | theTDC |
Definition at line 25 of file HcalElectronicsSim.h.
HcalElectronicsSim::HcalElectronicsSim | ( | const HcalSimParameterMap * | parameterMap, |
HcalAmplifier * | amplifier, | ||
const HcalCoderFactory * | coderFactory, | ||
bool | PreMix | ||
) |
Definition at line 13 of file HcalElectronicsSim.cc.
HcalElectronicsSim::~HcalElectronicsSim | ( | ) |
Definition at line 24 of file HcalElectronicsSim.cc.
void HcalElectronicsSim::analogToDigital | ( | CLHEP::HepRandomEngine * | engine, |
CaloSamples & | linearFrame, | ||
HBHEDataFrame & | result, | ||
double | preMixFactor = 10.0 , |
||
unsigned | preMixBits = 126 |
||
) |
Definition at line 118 of file HcalElectronicsSim.cc.
References analogToDigitalImpl(), and mps_fire::result.
void HcalElectronicsSim::analogToDigital | ( | CLHEP::HepRandomEngine * | engine, |
CaloSamples & | linearFrame, | ||
HODataFrame & | result, | ||
double | preMixFactor = 10.0 , |
||
unsigned | preMixBits = 126 |
||
) |
Definition at line 123 of file HcalElectronicsSim.cc.
References analogToDigitalImpl(), and mps_fire::result.
void HcalElectronicsSim::analogToDigital | ( | CLHEP::HepRandomEngine * | engine, |
CaloSamples & | linearFrame, | ||
HFDataFrame & | result, | ||
double | preMixFactor = 10.0 , |
||
unsigned | preMixBits = 126 |
||
) |
Definition at line 128 of file HcalElectronicsSim.cc.
References analogToDigitalImpl(), and mps_fire::result.
void HcalElectronicsSim::analogToDigital | ( | CLHEP::HepRandomEngine * | engine, |
CaloSamples & | linearFrame, | ||
ZDCDataFrame & | result, | ||
double | preMixFactor = 10.0 , |
||
unsigned | preMixBits = 126 |
||
) |
Definition at line 133 of file HcalElectronicsSim.cc.
References analogToDigitalImpl(), and mps_fire::result.
void HcalElectronicsSim::analogToDigital | ( | CLHEP::HepRandomEngine * | engine, |
CaloSamples & | linearFrame, | ||
QIE10DataFrame & | result, | ||
double | preMixFactor = 10.0 , |
||
unsigned | preMixBits = 126 |
||
) |
Definition at line 138 of file HcalElectronicsSim.cc.
References analogToDigitalImpl(), CaloSamples::id(), PreMixDigis, mps_fire::result, HcalSimParameterMap::simParameters(), theParameterMap, theTDC, HFSimParameters::threshold_currentTDC(), and HcalTDC::timing().
void HcalElectronicsSim::analogToDigital | ( | CLHEP::HepRandomEngine * | engine, |
CaloSamples & | linearFrame, | ||
QIE11DataFrame & | result, | ||
double | preMixFactor = 10.0 , |
||
unsigned | preMixBits = 126 |
||
) |
Definition at line 150 of file HcalElectronicsSim.cc.
References analogToDigitalImpl(), CaloSamples::id(), PreMixDigis, mps_fire::result, HcalSimParameterMap::simParameters(), theParameterMap, theTDC, HcalSimParameters::threshold_currentTDC(), and HcalTDC::timing().
|
private |
Definition at line 108 of file HcalElectronicsSim.cc.
References premix(), PreMixDigis, and mps_fire::result.
Referenced by analogToDigital().
|
private |
Definition at line 39 of file HcalElectronicsSim.cc.
References amptDefault_cfi::frame, and mps_fire::result.
|
private |
Definition at line 47 of file HcalElectronicsSim.cc.
References amptDefault_cfi::frame, and mps_fire::result.
|
private |
Definition at line 32 of file HcalElectronicsSim.cc.
References HcalAmplifier::amplify(), HcalCoderFactory::coder(), amptDefault_cfi::frame, mps_fire::result, 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 162 of file HcalElectronicsSim.cc.
References HcalAmplifier::setStartingCapId(), theAmplifier, theStartingCapId, and theStartingCapIdIsRandom.
|
private |
Definition at line 70 of file HcalElectronicsSim.cc.
References amptDefault_cfi::frame, convertSQLiteXML::ok, and mps_fire::result.
|
private |
Definition at line 55 of file HcalElectronicsSim.cc.
References amptDefault_cfi::frame, and mps_fire::result.
Referenced by analogToDigitalImpl().
|
private |
Definition at line 90 of file HcalElectronicsSim.cc.
References amptDefault_cfi::frame, and mps_fire::result.
void HcalElectronicsSim::setDbService | ( | const HcalDbService * | service | ) |
Definition at line 26 of file HcalElectronicsSim.cc.
References HcalTDC::setDbService(), and theTDC.
void HcalElectronicsSim::setStartingCapId | ( | int | startingCapId | ) |
Definition at line 170 of file HcalElectronicsSim.cc.
References HcalAmplifier::setStartingCapId(), theAmplifier, theStartingCapId, and theStartingCapIdIsRandom.
Referenced by HcalSignalGenerator< HBHEDigitizerTraits >::fillDigis().
|
private |
Definition at line 87 of file HcalElectronicsSim.h.
Referenced by analogToDigital(), and analogToDigitalImpl().
|
private |
Definition at line 81 of file HcalElectronicsSim.h.
Referenced by convert(), newEvent(), and setStartingCapId().
|
private |
Definition at line 82 of file HcalElectronicsSim.h.
Referenced by convert().
|
private |
Definition at line 80 of file HcalElectronicsSim.h.
Referenced by analogToDigital().
|
private |
Definition at line 85 of file HcalElectronicsSim.h.
Referenced by convert(), newEvent(), and setStartingCapId().
|
private |
Definition at line 86 of file HcalElectronicsSim.h.
Referenced by newEvent(), and setStartingCapId().
|
private |
Definition at line 83 of file HcalElectronicsSim.h.
Referenced by analogToDigital(), and setDbService().