CMS 3D CMS Logo

HcalDigitizerTraits.h
Go to the documentation of this file.
1 #ifndef HcalSimAlgos_HcalDigitizerTraits_h
2 #define HcalSimAlgos_HcalDigitizerTraits_h
5 
7 public:
9  typedef HBHEDataFrame Digi;
11  static constexpr double PreMixFactor = 10.0;
12  static const unsigned PreMixBits = 126;
13 };
14 
16 public:
18  typedef HODataFrame Digi;
20  static constexpr double PreMixFactor = 10.0;
21  static const unsigned PreMixBits = 126;
22 };
23 
25 public:
27  typedef HFDataFrame Digi;
29  static constexpr double PreMixFactor = 10.0;
30  static const unsigned PreMixBits = 126;
31 };
32 
34 public:
36  typedef ZDCDataFrame Digi;
38  static constexpr double PreMixFactor = 10.0;
39  static const unsigned PreMixBits = 126;
40 };
41 
42 template <class Traits>
44 public:
45  typedef typename Traits::ElectronicsSim ElectronicsSim;
46  typedef typename Traits::Digi Digi;
48 
50  CLHEP::HepRandomEngine* engine,
51  CaloSamples* analogSignal,
52  std::vector<DetId>::const_iterator idItr,
53  ElectronicsSim* theElectronicsSim) {
54  Digi digi(*idItr);
55  theElectronicsSim->analogToDigital(engine, *analogSignal, digi, Traits::PreMixFactor, Traits::PreMixBits);
56  output.push_back(std::move(digi));
57  }
58 };
59 
60 #endif
HFDigitizerTraits::DigiCollection
HFDigiCollection DigiCollection
Definition: HcalDigitizerTraits.h:26
HODigitizerTraits::PreMixBits
static const unsigned PreMixBits
Definition: HcalDigitizerTraits.h:21
convertSQLitetoXML_cfg.output
output
Definition: convertSQLitetoXML_cfg.py:32
HBHEDigitizerTraits::ElectronicsSim
HcalElectronicsSim ElectronicsSim
Definition: HcalDigitizerTraits.h:10
HODigitizerTraits::DigiCollection
HODigiCollection DigiCollection
Definition: HcalDigitizerTraits.h:17
TrendClient_cfi.Digi
Digi
Definition: TrendClient_cfi.py:7
edm::SortedCollection
Definition: SortedCollection.h:49
HBHEDigitizerTraits
Definition: HcalDigitizerTraits.h:6
CaloTDigitizerQIE8Run::DigiCollection
Traits::DigiCollection DigiCollection
Definition: HcalDigitizerTraits.h:47
CaloTDigitizerQIE8Run::Digi
Traits::Digi Digi
Definition: HcalDigitizerTraits.h:46
HODigitizerTraits::ElectronicsSim
HcalElectronicsSim ElectronicsSim
Definition: HcalDigitizerTraits.h:19
ZDCDigitizerTraits
Definition: HcalDigitizerTraits.h:33
HBHEDigitizerTraits::PreMixBits
static const unsigned PreMixBits
Definition: HcalDigitizerTraits.h:12
HBHEDigitizerTraits::PreMixFactor
static constexpr double PreMixFactor
Definition: HcalDigitizerTraits.h:11
HcalDigiCollections.h
CaloTDigitizerQIE8Run
Definition: HcalDigitizerTraits.h:43
ZDCDataFrame
Definition: ZDCDataFrame.h:15
HODigitizerTraits::Digi
HODataFrame Digi
Definition: HcalDigitizerTraits.h:18
ZDCDigitizerTraits::ElectronicsSim
HcalElectronicsSim ElectronicsSim
Definition: HcalDigitizerTraits.h:37
HBHEDigitizerTraits::Digi
HBHEDataFrame Digi
Definition: HcalDigitizerTraits.h:9
HFDigitizerTraits::ElectronicsSim
HcalElectronicsSim ElectronicsSim
Definition: HcalDigitizerTraits.h:28
HBHEDataFrame
Definition: HBHEDataFrame.h:14
HFDigitizerTraits::Digi
HFDataFrame Digi
Definition: HcalDigitizerTraits.h:27
ZDCDigitizerTraits::PreMixFactor
static constexpr double PreMixFactor
Definition: HcalDigitizerTraits.h:38
CaloTDigitizerQIE8Run::ElectronicsSim
Traits::ElectronicsSim ElectronicsSim
Definition: HcalDigitizerTraits.h:45
HODigitizerTraits::PreMixFactor
static constexpr double PreMixFactor
Definition: HcalDigitizerTraits.h:20
ZDCDigitizerTraits::DigiCollection
ZDCDigiCollection DigiCollection
Definition: HcalDigitizerTraits.h:35
HFDataFrame
Definition: HFDataFrame.h:14
CaloTDigitizerQIE8Run::operator()
void operator()(DigiCollection &output, CLHEP::HepRandomEngine *engine, CaloSamples *analogSignal, std::vector< DetId >::const_iterator idItr, ElectronicsSim *theElectronicsSim)
Definition: HcalDigitizerTraits.h:49
HODigitizerTraits
Definition: HcalDigitizerTraits.h:15
CaloSamples
Definition: CaloSamples.h:14
ZDCDigitizerTraits::PreMixBits
static const unsigned PreMixBits
Definition: HcalDigitizerTraits.h:39
siStripShotFilter_cfi.DigiCollection
DigiCollection
Definition: siStripShotFilter_cfi.py:6
eostools.move
def move(src, dest)
Definition: eostools.py:511
HFDigitizerTraits::PreMixBits
static const unsigned PreMixBits
Definition: HcalDigitizerTraits.h:30
HODataFrame
Definition: HODataFrame.h:14
ZDCDigitizerTraits::Digi
ZDCDataFrame Digi
Definition: HcalDigitizerTraits.h:36
HcalElectronicsSim
Definition: HcalElectronicsSim.h:25
HcalElectronicsSim.h
HBHEDigitizerTraits::DigiCollection
HBHEDigiCollection DigiCollection
Definition: HcalDigitizerTraits.h:8
HFDigitizerTraits
Definition: HcalDigitizerTraits.h:24
HFDigitizerTraits::PreMixFactor
static constexpr double PreMixFactor
Definition: HcalDigitizerTraits.h:29