CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HcalTDC.h
Go to the documentation of this file.
1 #ifndef HcalSimAlgos_HcalTDC_h
2 #define HcalSimAlgos_HcalTDC_h
3 
8 #include "CLHEP/Random/RandGaussQ.h"
9 class HcalDbService;
10 
11 class HcalTDC {
12 
13 public:
14  HcalTDC(unsigned int thresholdDAC = 12);
15  ~HcalTDC();
16 
18  void timing(const CaloSamples & lf, HcalUpgradeDataFrame & digi) const;
19 
21  void setDbService(const HcalDbService * service);
22  void setRandomEngine(CLHEP::HepRandomEngine & engine);
23 
24  void setThresholdDAC(unsigned int DAC) { theDAC = DAC; }
25  unsigned int getThresholdDAC() { return theDAC; }
26 
27 private:
28  double getThreshold(const HcalGenericDetId & detId) const;
31 
32  unsigned int theDAC;
33 
34  mutable CLHEP::RandGaussQ * theRandGaussQ;
35 };
36 
37 #endif
38 
double getThreshold(const HcalGenericDetId &detId) const
Definition: HcalTDC.cc:88
void setRandomEngine(CLHEP::HepRandomEngine &engine)
Definition: HcalTDC.cc:104
unsigned int theDAC
Definition: HcalTDC.h:32
const HcalDbService * theDbService
Definition: HcalTDC.h:30
unsigned int getThresholdDAC()
Definition: HcalTDC.h:25
CLHEP::RandGaussQ * theRandGaussQ
Definition: HcalTDC.h:34
void setThresholdDAC(unsigned int DAC)
Definition: HcalTDC.h:24
void timing(const CaloSamples &lf, HcalUpgradeDataFrame &digi) const
adds timing information to the digi
Definition: HcalTDC.cc:15
~HcalTDC()
Definition: HcalTDC.cc:11
HcalTDC(unsigned int thresholdDAC=12)
Definition: HcalTDC.cc:6
void setDbService(const HcalDbService *service)
the Producer will probably update this every event
Definition: HcalTDC.cc:108
HcalTDCParameters theTDCParameters
Definition: HcalTDC.h:29