5 #include "CLHEP/Random/RandFlat.h"
10 : theAmplifier(amplifier),
11 theCoderFactory(coderFactory),
32 result.setSize(frame.
size());
38 convert<CastorDataFrame>(lf,
result);
void newEvent()
Things that need to be initialized every event.
std::auto_ptr< CastorCoder > coder(const DetId &detId) const
user gets control of the pointer
CastorElectronicsSim(CastorAmplifier *amplifier, const CastorCoderFactory *coderFactory)
virtual void amplify(CaloSamples &linearFrame) const
void setRandomEngine(CLHEP::HepRandomEngine &engine)
const CastorCoderFactory * theCoderFactory
CastorAmplifier * theAmplifier
int size() const
get the size
void analogToDigital(CaloSamples &linearFrame, CastorDataFrame &result)
void convert(CaloSamples &frame, Digi &result)
DetId id() const
get the (generic) id
CLHEP::RandFlat * theRandFlat
void setStartingCapId(int capId)