CMS 3D CMS Logo

HcalTDC.h
Go to the documentation of this file.
1 // -*- mode: c++ -*-
2 #ifndef HcalSimAlgos_HcalTDC_h
3 #define HcalSimAlgos_HcalTDC_h
4 
11 
12 class HcalDbService;
13 
14 namespace CLHEP {
15  class HepRandomEngine;
16 }
17 
18 class HcalTDC {
19 public:
20  HcalTDC(double threshold_currentTDC = 0.);
21  ~HcalTDC();
22 
25  void timing(const CaloSamples& lf, QIE11DataFrame& digi) const;
26  void timing(const CaloSamples& lf, QIE10DataFrame& digi) const;
27 
28  std::vector<int> leadingEdgeTDC(const CaloSamples& lf) const;
29 
31  void setDbService(const HcalDbService* service);
32 
33  void setThresholdDAC(unsigned int DAC) { theDAC = DAC; }
34  unsigned int getThresholdDAC() { return theDAC; }
35  double getThreshold() const { return threshold_currentTDC_; };
36 
37 private:
40 
41  unsigned int theDAC;
43  double const lsb;
44 };
45 
46 #endif
unsigned int theDAC
Definition: HcalTDC.h:41
double getThreshold() const
Definition: HcalTDC.h:35
const HcalDbService * theDbService
Definition: HcalTDC.h:39
std::vector< int > leadingEdgeTDC(const CaloSamples &lf) const
Definition: HcalTDC.cc:33
unsigned int getThresholdDAC()
Definition: HcalTDC.h:34
void timing(const CaloSamples &lf, QIE11DataFrame &digi) const
Definition: HcalTDC.cc:13
void setThresholdDAC(unsigned int DAC)
Definition: HcalTDC.h:33
double threshold_currentTDC_
Definition: HcalTDC.h:42
HcalTDC(double threshold_currentTDC=0.)
Definition: HcalTDC.cc:7
double const lsb
Definition: HcalTDC.h:43
~HcalTDC()
Definition: HcalTDC.cc:10
void setDbService(const HcalDbService *service)
the Producer will probably update this every event
Definition: HcalTDC.cc:99
HcalTDCParameters theTDCParameters
Definition: HcalTDC.h:35