1 #ifndef HcalSimAlgos_HcalElectronicsSim_h 2 #define HcalSimAlgos_HcalElectronicsSim_h 21 class HepRandomEngine;
32 void analogToDigital(CLHEP::HepRandomEngine*,
CaloSamples & linearFrame,
HBHEDataFrame &
result,
double preMixFactor=10.0,
unsigned preMixBits=126);
33 void analogToDigital(CLHEP::HepRandomEngine*,
CaloSamples & linearFrame,
HODataFrame & result,
double preMixFactor=10.0,
unsigned preMixBits=126);
34 void analogToDigital(CLHEP::HepRandomEngine*,
CaloSamples & linearFrame,
HFDataFrame & result,
double preMixFactor=10.0,
unsigned preMixBits=126);
35 void analogToDigital(CLHEP::HepRandomEngine*,
CaloSamples & linearFrame,
ZDCDataFrame & result,
double preMixFactor=10.0,
unsigned preMixBits=126);
36 void analogToDigital(CLHEP::HepRandomEngine*,
CaloSamples & linearFrame,
QIE10DataFrame& result,
double preMixFactor=10.0,
unsigned preMixBits=126);
37 void analogToDigital(CLHEP::HepRandomEngine*,
CaloSamples & linearFrame,
QIE11DataFrame& result,
double preMixFactor=10.0,
unsigned preMixBits=126);
40 void newEvent(CLHEP::HepRandomEngine*);
41 void setStartingCapId(
int startingCapId);
44 template<
class Digi>
void analogToDigitalImpl(CLHEP::HepRandomEngine*,
CaloSamples & linearFrame,
Digi & result,
double preMixFactor,
unsigned preMixBits);
46 template<
class Digi>
void premix(
CaloSamples & frame,
Digi & result,
double preMixFactor,
unsigned preMixBits);
HcalAmplifier * theAmplifier
std::tuple< unsigned int, int, int, DigiType, int, int, int, float > Digi
const HcalCoderFactory * theCoderFactory
bool theStartingCapIdIsRandom
def convert(infile, ofile)