9 #include "CLHEP/Random/RandFlat.h"
14 : theAmplifier(amplifier),
15 theCoderFactory(coderFactory),
18 theStartingCapIdIsRandom(
true)
42 result.setSize(frame.
size());
49 convert<HBHEDataFrame>(lf,
result);
54 convert<HODataFrame>(lf,
result);
59 convert<HFDataFrame>(lf,
result);
63 convert<ZDCDataFrame>(lf,
result);
69 convert<HcalUpgradeDataFrame>(lf,
result);
HcalAmplifier * theAmplifier
void setRandomEngine(CLHEP::HepRandomEngine &engine)
void setStartingCapId(int startingCapId)
void convert(CaloSamples &frame, Digi &result)
HcalElectronicsSim(HcalAmplifier *amplifier, const HcalCoderFactory *coderFactory)
void setStartingCapId(int capId)
void setDbService(const HcalDbService *service)
void analogToDigital(CaloSamples &linearFrame, HBHEDataFrame &result)
void setRandomEngine(CLHEP::HepRandomEngine &engine)
const HcalCoderFactory * theCoderFactory
bool theStartingCapIdIsRandom
void timing(const CaloSamples &lf, HcalUpgradeDataFrame &digi) const
adds timing information to the digi
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
void setDbService(const HcalDbService *service)
the Producer will probably update this every event
std::auto_ptr< HcalCoder > coder(const DetId &detId) const
user gets control of the pointer