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:
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 
std::tuple< unsigned int, int, int, DigiType, int, int, int, float > Digi
Definition: GenericDigi.h:30
def convert(infile, ofile)
const CastorCoderFactory * theCoderFactory
CastorAmplifier * theAmplifier