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