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 // -*- mode: c++ -*-
2 #ifndef HcalSimAlgos_HcalTDC_h
3 #define HcalSimAlgos_HcalTDC_h
4 
9 
10 class HcalDbService;
11 
12 namespace CLHEP {
13  class HepRandomEngine;
14 }
15 
16 class HcalTDC {
17 
18 public:
19  HcalTDC(unsigned int thresholdDAC = 12);
20  ~HcalTDC();
21 
23  void timing(const CaloSamples & lf, HcalUpgradeDataFrame & digi, CLHEP::HepRandomEngine*) const;
24 
26  void setDbService(const HcalDbService * service);
27 
28  void setThresholdDAC(unsigned int DAC) { theDAC = DAC; }
29  unsigned int getThresholdDAC() { return theDAC; }
30 
31 private:
32  double getThreshold(const HcalGenericDetId & detId, CLHEP::HepRandomEngine*) const;
33  double getHysteresisThreshold(double nominal) const;
34 
37 
38  unsigned int theDAC;
39 
40  double const lsb;
41 };
42 
43 #endif
unsigned int theDAC
Definition: HcalTDC.h:38
const HcalDbService * theDbService
Definition: HcalTDC.h:36
unsigned int getThresholdDAC()
Definition: HcalTDC.h:29
double getHysteresisThreshold(double nominal) const
Definition: HcalTDC.cc:123
void setThresholdDAC(unsigned int DAC)
Definition: HcalTDC.h:28
void timing(const CaloSamples &lf, HcalUpgradeDataFrame &digi, CLHEP::HepRandomEngine *) const
adds timing information to the digi
Definition: HcalTDC.cc:16
double const lsb
Definition: HcalTDC.h:40
~HcalTDC()
Definition: HcalTDC.cc:13
HcalTDC(unsigned int thresholdDAC=12)
Definition: HcalTDC.cc:8
void setDbService(const HcalDbService *service)
the Producer will probably update this every event
Definition: HcalTDC.cc:132
double getThreshold(const HcalGenericDetId &detId, CLHEP::HepRandomEngine *) const
Definition: HcalTDC.cc:108
HcalTDCParameters theTDCParameters
Definition: HcalTDC.h:35