#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 (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<class Digi > | |
void | premix (CaloSamples &frame, Digi &result, double preMixFactor, unsigned preMixBits) |
template<> | |
void | premix (CaloSamples &frame, QIE10DataFrame &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 |
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 11 of file HcalElectronicsSim.cc.
HcalElectronicsSim::~HcalElectronicsSim | ( | ) |
Definition at line 21 of file HcalElectronicsSim.cc.
void HcalElectronicsSim::analogToDigital | ( | CLHEP::HepRandomEngine * | engine, |
CaloSamples & | linearFrame, | ||
HBHEDataFrame & | result, | ||
double | preMixFactor = 10.0 , |
||
unsigned | preMixBits = 126 |
||
) |
Definition at line 104 of file HcalElectronicsSim.cc.
References analogToDigitalImpl().
void HcalElectronicsSim::analogToDigital | ( | CLHEP::HepRandomEngine * | engine, |
CaloSamples & | linearFrame, | ||
HODataFrame & | result, | ||
double | preMixFactor = 10.0 , |
||
unsigned | preMixBits = 126 |
||
) |
Definition at line 108 of file HcalElectronicsSim.cc.
References analogToDigitalImpl().
void HcalElectronicsSim::analogToDigital | ( | CLHEP::HepRandomEngine * | engine, |
CaloSamples & | linearFrame, | ||
HFDataFrame & | result, | ||
double | preMixFactor = 10.0 , |
||
unsigned | preMixBits = 126 |
||
) |
Definition at line 112 of file HcalElectronicsSim.cc.
References analogToDigitalImpl().
void HcalElectronicsSim::analogToDigital | ( | CLHEP::HepRandomEngine * | engine, |
CaloSamples & | linearFrame, | ||
ZDCDataFrame & | result, | ||
double | preMixFactor = 10.0 , |
||
unsigned | preMixBits = 126 |
||
) |
Definition at line 116 of file HcalElectronicsSim.cc.
References analogToDigitalImpl().
void HcalElectronicsSim::analogToDigital | ( | CLHEP::HepRandomEngine * | engine, |
CaloSamples & | linearFrame, | ||
QIE10DataFrame & | result, | ||
double | preMixFactor = 10.0 , |
||
unsigned | preMixBits = 126 |
||
) |
Definition at line 120 of file HcalElectronicsSim.cc.
References analogToDigitalImpl().
void HcalElectronicsSim::analogToDigital | ( | CLHEP::HepRandomEngine * | engine, |
CaloSamples & | linearFrame, | ||
QIE11DataFrame & | result, | ||
double | preMixFactor = 10.0 , |
||
unsigned | preMixBits = 126 |
||
) |
Definition at line 124 of file HcalElectronicsSim.cc.
References analogToDigitalImpl().
|
private |
Definition at line 96 of file HcalElectronicsSim.cc.
References premix(), PreMixDigis, and mps_fire::result.
Referenced by analogToDigital().
|
private |
Definition at line 37 of file HcalElectronicsSim.cc.
References HcalAmplifier::amplify(), HcalCoderFactory::coder(), mps_fire::result, theAmplifier, theCoderFactory, and theStartingCapId.
|
private |
Definition at line 43 of file HcalElectronicsSim.cc.
References HcalAmplifier::amplify(), HcalCoderFactory::coder(), mps_fire::result, theAmplifier, theCoderFactory, and theStartingCapId.
|
private |
Definition at line 30 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 128 of file HcalElectronicsSim.cc.
References HcalAmplifier::setStartingCapId(), theAmplifier, theStartingCapId, and theStartingCapIdIsRandom.
|
private |
Definition at line 49 of file HcalElectronicsSim.cc.
References CaloSamples::size().
Referenced by analogToDigitalImpl().
|
private |
Definition at line 65 of file HcalElectronicsSim.cc.
References convertSQLiteXML::ok, and mps_fire::result.
|
private |
Definition at line 81 of file HcalElectronicsSim.cc.
References mps_fire::result.
void HcalElectronicsSim::setDbService | ( | const HcalDbService * | service | ) |
Definition at line 24 of file HcalElectronicsSim.cc.
References HcalTDC::setDbService(), and theTDC.
Referenced by HcalDigitizer::initializeEvent().
void HcalElectronicsSim::setStartingCapId | ( | int | startingCapId | ) |
Definition at line 137 of file HcalElectronicsSim.cc.
References HcalAmplifier::setStartingCapId(), theAmplifier, theStartingCapId, and theStartingCapIdIsRandom.
|
private |
Definition at line 54 of file HcalElectronicsSim.h.
Referenced by analogToDigitalImpl().
|
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 convert().
|
private |
Definition at line 52 of file HcalElectronicsSim.h.
Referenced by convert(), newEvent(), and setStartingCapId().
|
private |
Definition at line 53 of file HcalElectronicsSim.h.
Referenced by newEvent(), and setStartingCapId().
|
private |
Definition at line 50 of file HcalElectronicsSim.h.
Referenced by setDbService().