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 
11 class HBHEDataFrame;
12 class HODataFrame;
13 class HFDataFrame;
14 class ZDCDataFrame;
16 
17 class HcalAmplifier;
18 class HcalCoderFactory;
19 
20 namespace CLHEP {
21  class HepRandomEngine;
22 }
23 
25 public:
26  HcalElectronicsSim(HcalAmplifier * amplifier,
27  const HcalCoderFactory * coderFactory, bool PreMix);
29 
30  void setDbService(const HcalDbService * service);
31 
32  void analogToDigital(CLHEP::HepRandomEngine*, CaloSamples & linearFrame, HBHEDataFrame & result);
33  void analogToDigital(CLHEP::HepRandomEngine*, CaloSamples & linearFrame, HODataFrame & result);
34  void analogToDigital(CLHEP::HepRandomEngine*, CaloSamples & linearFrame, HFDataFrame & result);
35  void analogToDigital(CLHEP::HepRandomEngine*, CaloSamples & linearFrame, ZDCDataFrame & result);
36  void analogToDigital(CLHEP::HepRandomEngine*, CaloSamples & linearFrame, HcalUpgradeDataFrame& result);
39  void newEvent(CLHEP::HepRandomEngine*);
40  void setStartingCapId(int startingCapId);
41 
42 private:
43  template<class Digi> void convert(CaloSamples & frame, Digi & result, CLHEP::HepRandomEngine*);
44 
48 
52 };
53 #endif
HcalAmplifier * theAmplifier
void setStartingCapId(int startingCapId)
void analogToDigital(CLHEP::HepRandomEngine *, CaloSamples &linearFrame, HBHEDataFrame &result)
void setDbService(const HcalDbService *service)
void newEvent(CLHEP::HepRandomEngine *)
HcalElectronicsSim(HcalAmplifier *amplifier, const HcalCoderFactory *coderFactory, bool PreMix)
void convert(CaloSamples &frame, Digi &result, CLHEP::HepRandomEngine *)
tuple result
Definition: query.py:137
const HcalCoderFactory * theCoderFactory