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, bool PreMix);
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 
51 };
52 
53 
54 #endif
55 
HcalAmplifier * theAmplifier
void setStartingCapId(int startingCapId)
void convert(CaloSamples &frame, Digi &result)
void setDbService(const HcalDbService *service)
HcalElectronicsSim(HcalAmplifier *amplifier, const HcalCoderFactory *coderFactory, bool PreMix)
void analogToDigital(CaloSamples &linearFrame, HBHEDataFrame &result)
tuple result
Definition: query.py:137
const HcalCoderFactory * theCoderFactory
CLHEP::RandFlat * theRandFlat
void setRandomEngine(CLHEP::HepRandomEngine &engine)