Main Page
Namespaces
Classes
Package Documentation
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
9
class
HcalDbService
;
10
11
namespace
CLHEP
{
12
class
HepRandomEngine;
13
}
14
15
class
HcalTDC
{
16
17
public
:
18
HcalTDC
(
unsigned
int
thresholdDAC = 12);
19
~
HcalTDC
();
20
22
template
<
class
Digi>
23
void
timing(
const
CaloSamples
& lf,
Digi
& 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
35
HcalTDCParameters
theTDCParameters
;
36
const
HcalDbService
*
theDbService
;
37
38
unsigned
int
theDAC
;
39
40
double
const
lsb
;
41
};
42
43
#endif
HcalTDC
Definition:
HcalTDC.h:15
HcalTDC::theDAC
unsigned int theDAC
Definition:
HcalTDC.h:38
HcalTDCParameters.h
HcalTDC::theDbService
const HcalDbService * theDbService
Definition:
HcalTDC.h:36
HcalDbService
Definition:
HcalDbService.h:27
matching::Digi
std::tuple< unsigned int, int, int, DigiType, int, int, int, float > Digi
Definition:
GenericDigi.h:30
CaloSamples.h
HcalTDC::getThresholdDAC
unsigned int getThresholdDAC()
Definition:
HcalTDC.h:29
CaloSamples
Definition:
CaloSamples.h:14
CLHEP
Definition:
CocoaGlobals.h:27
HcalGenericDetId.h
HcalTDCParameters
Definition:
HcalTDCParameters.h:4
service
Definition:
service.py:1
HcalTDC::setThresholdDAC
void setThresholdDAC(unsigned int DAC)
Definition:
HcalTDC.h:28
HcalGenericDetId
Definition:
HcalGenericDetId.h:15
HcalTDC::lsb
double const lsb
Definition:
HcalTDC.h:40
HcalTDC::theTDCParameters
HcalTDCParameters theTDCParameters
Definition:
HcalTDC.h:35
Generated for CMSSW Reference Manual by
1.8.11