CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CastorElectronicsSim.h
Go to the documentation of this file.
1 #ifndef CastorSim_CastorElectronicsSim_h
2 #define CastorSim_CastorElectronicsSim_h
3 
9 #include "CLHEP/Random/RandFlat.h"
10 
11 class CastorDataFrame;
12 
13 class CastorAmplifier;
14 class CastorCoderFactory;
15 
17 public:
19  const CastorCoderFactory * coderFactory);
21 
22  void setRandomEngine(CLHEP::HepRandomEngine & engine);
23 
24  void analogToDigital(CaloSamples & linearFrame, CastorDataFrame & result);
25 
27 void newEvent();
28 
29 private:
30  template<class Digi> void convert(CaloSamples & frame, Digi & result);
31 
34  CLHEP::RandFlat * theRandFlat;
35 
37 };
38 
39 
40 #endif
41 
void newEvent()
Things that need to be initialized every event.
CastorElectronicsSim(CastorAmplifier *amplifier, const CastorCoderFactory *coderFactory)
tuple result
Definition: query.py:137
void setRandomEngine(CLHEP::HepRandomEngine &engine)
const CastorCoderFactory * theCoderFactory
CastorAmplifier * theAmplifier
void analogToDigital(CaloSamples &linearFrame, CastorDataFrame &result)
void convert(CaloSamples &frame, Digi &result)
CLHEP::RandFlat * theRandFlat