test
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 
10 class CastorDataFrame;
11 
12 class CastorAmplifier;
13 class CastorCoderFactory;
14 
15 namespace CLHEP {
16  class HepRandomEngine;
17 }
18 
20 public:
22  const CastorCoderFactory * coderFactory);
24 
25  void analogToDigital(CLHEP::HepRandomEngine*, CaloSamples & linearFrame, CastorDataFrame & result);
26 
28  void newEvent(CLHEP::HepRandomEngine*);
29 
30 private:
31  template<class Digi> void convert(CaloSamples & frame, Digi & result, CLHEP::HepRandomEngine*);
32 
35 
37 };
38 
39 
40 #endif
41 
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
Definition: GenericDigi.h:30
tuple result
Definition: mps_fire.py:83
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.