CMS 3D CMS Logo

CastorElectronicsSim.h
Go to the documentation of this file.
1 #ifndef CastorSim_CastorElectronicsSim_h
2 #define CastorSim_CastorElectronicsSim_h
3 
9 
10 class CastorDataFrame;
11 
12 class CastorAmplifier;
13 class CastorCoderFactory;
14 
15 namespace CLHEP {
16  class HepRandomEngine;
17 }
18 
20 public:
21  CastorElectronicsSim(CastorAmplifier *amplifier, const CastorCoderFactory *coderFactory);
23 
24  void analogToDigital(CLHEP::HepRandomEngine *, CaloSamples &linearFrame, CastorDataFrame &result);
25 
27  void newEvent(CLHEP::HepRandomEngine *);
28 
29 private:
30  template <class Digi>
31  void convert(CaloSamples &frame, Digi &result, CLHEP::HepRandomEngine *);
32 
35 
37 };
38 
39 #endif
void convert(CaloSamples &frame, Digi &result, CLHEP::HepRandomEngine *)
CastorElectronicsSim(CastorAmplifier *amplifier, const CastorCoderFactory *coderFactory)
const CastorCoderFactory * theCoderFactory
CastorAmplifier * theAmplifier
void analogToDigital(CLHEP::HepRandomEngine *, CaloSamples &linearFrame, CastorDataFrame &result)
void newEvent(CLHEP::HepRandomEngine *)
Things that need to be initialized every event.