SimCalorimetry
HcalSimAlgos
interface
HcalQIE1011Traits.h
Go to the documentation of this file.
1
#ifndef HcalSimAlgos_HcalQIE10Traits_h
2
#define HcalSimAlgos_HcalQIE10Traits_h
3
4
#include "
DataFormats/HcalDigi/interface/HcalDigiCollections.h
"
5
#include "
SimCalorimetry/HcalSimAlgos/interface/HcalElectronicsSim.h
"
6
7
class
HcalQIE10DigitizerTraits
{
8
public
:
9
typedef
QIE10DigiCollection
DigiCollection
;
10
typedef
QIE10DataFrame
Digi
;
11
typedef
HcalElectronicsSim
ElectronicsSim
;
12
static
constexpr
double
PreMixFactor
= 10.0;
13
static
const
unsigned
PreMixBits
= 254;
14
};
15
16
class
HcalQIE11DigitizerTraits
{
17
public
:
18
typedef
QIE11DigiCollection
DigiCollection
;
19
typedef
QIE11DataFrame
Digi
;
20
typedef
HcalElectronicsSim
ElectronicsSim
;
21
static
constexpr
double
PreMixFactor
= 10.0;
22
static
const
unsigned
PreMixBits
= 254;
23
};
24
25
template
<
class
Traits>
26
class
CaloTDigitizerQIE1011Run
{
27
public
:
28
typedef
typename
Traits::ElectronicsSim
ElectronicsSim
;
29
typedef
typename
Traits::Digi
Digi
;
30
typedef
typename
Traits::DigiCollection
DigiCollection
;
31
32
void
operator()
(
DigiCollection
&
output
,
33
CLHEP::HepRandomEngine* engine,
34
CaloSamples
* analogSignal,
35
std::vector<DetId>::const_iterator idItr,
36
ElectronicsSim
* theElectronicsSim) {
37
output
.push_back(idItr->rawId());
38
Digi
digi(
output
.back());
//QIEDataFrame gets ptr to edm::DataFrame data
39
theElectronicsSim->analogToDigital(engine, *analogSignal, digi, Traits::PreMixFactor, Traits::PreMixBits);
40
}
41
};
42
43
#endif
HcalDataFrameContainer
Definition:
HcalDigiCollections.h:35
HcalQIE10DigitizerTraits::PreMixBits
static const unsigned PreMixBits
Definition:
HcalQIE1011Traits.h:13
HcalQIE11DigitizerTraits::ElectronicsSim
HcalElectronicsSim ElectronicsSim
Definition:
HcalQIE1011Traits.h:20
HcalQIE11DigitizerTraits
Definition:
HcalQIE1011Traits.h:16
convertSQLitetoXML_cfg.output
output
Definition:
convertSQLitetoXML_cfg.py:72
HcalQIE10DigitizerTraits
Definition:
HcalQIE1011Traits.h:7
HcalQIE10DigitizerTraits::DigiCollection
QIE10DigiCollection DigiCollection
Definition:
HcalQIE1011Traits.h:9
TrendClient_cfi.Digi
Digi
Definition:
TrendClient_cfi.py:7
HcalQIE10DigitizerTraits::Digi
QIE10DataFrame Digi
Definition:
HcalQIE1011Traits.h:10
CaloTDigitizerQIE1011Run
Definition:
HcalQIE1011Traits.h:26
HcalQIE10DigitizerTraits::ElectronicsSim
HcalElectronicsSim ElectronicsSim
Definition:
HcalQIE1011Traits.h:11
HcalQIE11DigitizerTraits::PreMixBits
static const unsigned PreMixBits
Definition:
HcalQIE1011Traits.h:22
HcalDigiCollections.h
CaloTDigitizerQIE1011Run::DigiCollection
Traits::DigiCollection DigiCollection
Definition:
HcalQIE1011Traits.h:30
CaloTDigitizerQIE1011Run::operator()
void operator()(DigiCollection &output, CLHEP::HepRandomEngine *engine, CaloSamples *analogSignal, std::vector< DetId >::const_iterator idItr, ElectronicsSim *theElectronicsSim)
Definition:
HcalQIE1011Traits.h:32
CaloTDigitizerQIE1011Run::ElectronicsSim
Traits::ElectronicsSim ElectronicsSim
Definition:
HcalQIE1011Traits.h:28
CaloSamples
Definition:
CaloSamples.h:14
CaloTDigitizerQIE1011Run::Digi
Traits::Digi Digi
Definition:
HcalQIE1011Traits.h:29
siStripShotFilter_cfi.DigiCollection
DigiCollection
Definition:
siStripShotFilter_cfi.py:6
HcalQIE11DigitizerTraits::PreMixFactor
static constexpr double PreMixFactor
Definition:
HcalQIE1011Traits.h:21
QIE10DataFrame
Definition:
QIE10DataFrame.h:11
HcalQIE10DigitizerTraits::PreMixFactor
static constexpr double PreMixFactor
Definition:
HcalQIE1011Traits.h:12
QIE11DataFrame
Definition:
QIE11DataFrame.h:11
HcalElectronicsSim
Definition:
HcalElectronicsSim.h:25
HcalElectronicsSim.h
HcalQIE11DigitizerTraits::Digi
QIE11DataFrame Digi
Definition:
HcalQIE1011Traits.h:19
HcalQIE11DigitizerTraits::DigiCollection
QIE11DigiCollection DigiCollection
Definition:
HcalQIE1011Traits.h:18
Generated for CMSSW Reference Manual by
1.8.16