CMS 3D CMS Logo

HcalQIE1011Traits.h
Go to the documentation of this file.
1 #ifndef HcalSimAlgos_HcalQIE10Traits_h
2 #define HcalSimAlgos_HcalQIE10Traits_h
3 
6 
8 public:
12  static constexpr double PreMixFactor = 10.0;
13  static const unsigned PreMixBits = 254;
14 };
15 
17 public:
21  static constexpr double PreMixFactor = 10.0;
22  static const unsigned PreMixBits = 254;
23 };
24 
25 template <class Traits>
27 public:
28  typedef typename Traits::ElectronicsSim ElectronicsSim;
29  typedef typename Traits::Digi Digi;
31 
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
QIE11DigiCollection DigiCollection
static const unsigned PreMixBits
static constexpr double PreMixFactor
HcalElectronicsSim ElectronicsSim
void operator()(DigiCollection &output, CLHEP::HepRandomEngine *engine, CaloSamples *analogSignal, std::vector< DetId >::const_iterator idItr, ElectronicsSim *theElectronicsSim)
static const unsigned PreMixBits
QIE10DigiCollection DigiCollection
Definition: output.py:1
HcalElectronicsSim ElectronicsSim
Traits::DigiCollection DigiCollection
static constexpr double PreMixFactor
Traits::ElectronicsSim ElectronicsSim