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
static const unsigned PreMixBits
ZDCDigiCollection DigiCollection
HFDigiCollection DigiCollection
HcalElectronicsSim ElectronicsSim
HBHEDigiCollection DigiCollection
static const unsigned PreMixBits
Traits::DigiCollection DigiCollection
HcalElectronicsSim ElectronicsSim
HcalElectronicsSim ElectronicsSim
void operator()(DigiCollection &output, CLHEP::HepRandomEngine *engine, CaloSamples *analogSignal, std::vector< DetId >::const_iterator idItr, ElectronicsSim *theElectronicsSim)
static const unsigned PreMixBits
Traits::ElectronicsSim ElectronicsSim
static constexpr double PreMixFactor
static constexpr double PreMixFactor
HcalElectronicsSim ElectronicsSim
static const unsigned PreMixBits
def move(src, dest)
Definition: eostools.py:511
static constexpr double PreMixFactor
HODigiCollection DigiCollection
static constexpr double PreMixFactor