CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalElectronicsSim.h
Go to the documentation of this file.
1 #ifndef HcalSimAlgos_HcalElectronicsSim_h
2 #define HcalSimAlgos_HcalElectronicsSim_h
3 
10 #include "CLHEP/Random/RandFlat.h"
11 
12 class HBHEDataFrame;
13 class HODataFrame;
14 class HFDataFrame;
15 class ZDCDataFrame;
17 
18 class HcalAmplifier;
19 class HcalCoderFactory;
20 
22 public:
23  HcalElectronicsSim(HcalAmplifier * amplifier,
24  const HcalCoderFactory * coderFactory);
26 
27  void setRandomEngine(CLHEP::HepRandomEngine & engine);
28  void setDbService(const HcalDbService * service);
29 
30  void analogToDigital(CaloSamples & linearFrame, HBHEDataFrame & result);
31  void analogToDigital(CaloSamples & linearFrame, HODataFrame & result);
32  void analogToDigital(CaloSamples & linearFrame, HFDataFrame & result);
33  void analogToDigital(CaloSamples & linearFrame, ZDCDataFrame & result);
34  void analogToDigital(CaloSamples & linearFrame, HcalUpgradeDataFrame& result);
37  void newEvent();
38  void setStartingCapId(int startingCapId);
39 
40 private:
41  template<class Digi> void convert(CaloSamples & frame, Digi & result);
42 
46  CLHEP::RandFlat * theRandFlat;
47 
50 };
51 
52 
53 #endif
54 
HcalAmplifier * theAmplifier
void setStartingCapId(int startingCapId)
void convert(CaloSamples &frame, Digi &result)
HcalElectronicsSim(HcalAmplifier *amplifier, const HcalCoderFactory *coderFactory)
void setDbService(const HcalDbService *service)
void analogToDigital(CaloSamples &linearFrame, HBHEDataFrame &result)
tuple result
Definition: query.py:137
const HcalCoderFactory * theCoderFactory
CLHEP::RandFlat * theRandFlat
void setRandomEngine(CLHEP::HepRandomEngine &engine)