SimCalorimetry
HcalSimAlgos
interface
HcalTDC.h
Go to the documentation of this file.
1
// -*- mode: c++ -*-
2
#ifndef HcalSimAlgos_HcalTDC_h
3
#define HcalSimAlgos_HcalTDC_h
4
5
#include "
CalibFormats/CaloObjects/interface/CaloSamples.h
"
6
#include "
DataFormats/HcalDetId/interface/HcalGenericDetId.h
"
7
#include "
SimCalorimetry/HcalSimAlgos/interface/HcalTDCParameters.h
"
8
#include "
DataFormats/HcalDigi/interface/QIE11DataFrame.h
"
9
#include "
DataFormats/HcalDetId/interface/HcalDetId.h
"
10
11
class
HcalDbService
;
12
13
namespace
CLHEP
{
14
class
HepRandomEngine;
15
}
16
17
class
HcalTDC
{
18
public
:
19
HcalTDC
(
double
threshold_currentTDC
= 0.);
20
~HcalTDC
();
21
24
void
timing
(
const
CaloSamples
& lf,
QIE11DataFrame
& digi)
const
;
25
27
void
setDbService
(
const
HcalDbService
*
service
);
28
29
void
setThresholdDAC
(
unsigned
int
DAC) {
theDAC
= DAC; }
30
unsigned
int
getThresholdDAC
() {
return
theDAC
; }
31
double
getThreshold
()
const
{
return
threshold_currentTDC_
; };
32
33
private
:
34
HcalTDCParameters
theTDCParameters
;
35
const
HcalDbService
*
theDbService
;
36
37
unsigned
int
theDAC
;
38
double
threshold_currentTDC_
;
39
double
const
lsb
;
40
};
41
42
#endif
service
Definition:
service.py:1
CaloSamples.h
hcalSimParameters_cfi.threshold_currentTDC
threshold_currentTDC
Definition:
hcalSimParameters_cfi.py:24
HcalTDC::lsb
const double lsb
Definition:
HcalTDC.h:39
HcalGenericDetId.h
HcalTDCParameters
Definition:
HcalTDCParameters.h:4
HcalTDC::getThresholdDAC
unsigned int getThresholdDAC()
Definition:
HcalTDC.h:30
HcalTDC::setThresholdDAC
void setThresholdDAC(unsigned int DAC)
Definition:
HcalTDC.h:29
CLHEP
Definition:
CocoaGlobals.h:27
HcalTDC::~HcalTDC
~HcalTDC()
Definition:
HcalTDC.cc:10
HcalDetId.h
HcalTDC
Definition:
HcalTDC.h:17
HcalTDCParameters.h
CaloSamples
Definition:
CaloSamples.h:14
HcalTDC::theDAC
unsigned int theDAC
Definition:
HcalTDC.h:37
HcalTDC::theTDCParameters
HcalTDCParameters theTDCParameters
Definition:
HcalTDC.h:31
HcalTDC::theDbService
const HcalDbService * theDbService
Definition:
HcalTDC.h:35
HcalDbService
Definition:
HcalDbService.h:26
QIE11DataFrame
Definition:
QIE11DataFrame.h:11
QIE11DataFrame.h
HcalTDC::timing
void timing(const CaloSamples &lf, QIE11DataFrame &digi) const
Definition:
HcalTDC.cc:13
HcalTDC::threshold_currentTDC_
double threshold_currentTDC_
Definition:
HcalTDC.h:38
HcalTDC::getThreshold
double getThreshold() const
Definition:
HcalTDC.h:31
HcalTDC::setDbService
void setDbService(const HcalDbService *service)
the Producer will probably update this every event
Definition:
HcalTDC.cc:74
HcalTDC::HcalTDC
HcalTDC(double threshold_currentTDC=0.)
Definition:
HcalTDC.cc:7
Generated for CMSSW Reference Manual by
1.8.16