8 #include "CLHEP/Random/RandFlat.h"
13 : theAmplifier(amplifier),
14 theCoderFactory(coderFactory),
17 theStartingCapIdIsRandom(
true)
37 result.setSize(frame.
size());
44 convert<HBHEDataFrame>(lf,
result);
49 convert<HODataFrame>(lf,
result);
54 convert<HFDataFrame>(lf,
result);
58 convert<ZDCDataFrame>(lf,
result);
HcalAmplifier * theAmplifier
void setStartingCapId(int startingCapId)
void convert(CaloSamples &frame, Digi &result)
HcalElectronicsSim(HcalAmplifier *amplifier, const HcalCoderFactory *coderFactory)
void setStartingCapId(int capId)
void analogToDigital(CaloSamples &linearFrame, HBHEDataFrame &result)
void setRandomEngine(CLHEP::HepRandomEngine &engine)
const HcalCoderFactory * theCoderFactory
bool theStartingCapIdIsRandom
int size() const
get the size
virtual void amplify(CaloSamples &linearFrame) const
CLHEP::RandFlat * theRandFlat
void setRandomEngine(CLHEP::HepRandomEngine &engine)
DetId id() const
get the (generic) id
std::auto_ptr< HcalCoder > coder(const DetId &detId) const
user gets control of the pointer