CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
EcalDigiProducer.cc
Go to the documentation of this file.
1 #include <memory>
2 
16 //#include "SimCalorimetry/EcalSimAlgos/interface/ESFastTDigitizer.h"
34 
36 
38  edm::ProducesCollector producesCollector,
40  : EcalDigiProducer(params, iC) {
42  producesCollector.produces<EBDigiCollection>(m_apdDigiTag);
43 
44  producesCollector.produces<EBDigiCollection>(m_EBdigiCollection);
45  producesCollector.produces<EEDigiCollection>(m_EEdigiCollection);
46  producesCollector.produces<ESDigiCollection>(m_ESdigiCollection);
47 }
48 
49 // version for Pre-Mixing, for use outside of MixingModule
52  m_APDShape(iC),
53  m_EBShape(iC),
54  m_EEShape(iC),
55  m_ESShape(),
56  m_EBdigiCollection(params.getParameter<std::string>("EBdigiCollection")),
57  m_EEdigiCollection(params.getParameter<std::string>("EEdigiCollection")),
58  m_ESdigiCollection(params.getParameter<std::string>("ESdigiCollection")),
59  m_hitsProducerTag(params.getParameter<std::string>("hitsProducer")),
60  m_pedestalsToken(iC.esConsumes()),
61  m_icalToken(iC.esConsumes()),
62  m_laserToken(iC.esConsumes()),
63  m_agcToken(iC.esConsumes()),
64  m_grToken(iC.esConsumes()),
65  m_geometryToken(iC.esConsumes()),
66  m_useLCcorrection(params.getUntrackedParameter<bool>("UseLCcorrection")),
67  m_apdSeparateDigi(params.getParameter<bool>("apdSeparateDigi")),
68 
69  m_EBs25notCont(params.getParameter<double>("EBs25notContainment")),
70  m_EEs25notCont(params.getParameter<double>("EEs25notContainment")),
71 
72  m_readoutFrameSize(ecalPh1::sampleSize),
73  m_ParameterMap(new EcalSimParameterMap(params.getParameter<double>("simHitToPhotoelectronsBarrel"),
74  params.getParameter<double>("simHitToPhotoelectronsEndcap"),
75  params.getParameter<double>("photoelectronsToAnalogBarrel"),
76  params.getParameter<double>("photoelectronsToAnalogEndcap"),
77  params.getParameter<double>("samplingFactor"),
78  params.getParameter<double>("timePhase"),
79  m_readoutFrameSize,
80  params.getParameter<int>("binOfMaximum"),
81  params.getParameter<bool>("doPhotostatistics"),
82  params.getParameter<bool>("syncPhase"))),
83 
84  m_apdDigiTag(params.getParameter<std::string>("apdDigiTag")),
85  m_apdParameters(new APDSimParameters(params.getParameter<bool>("apdAddToBarrel"),
86  m_apdSeparateDigi,
87  params.getParameter<double>("apdSimToPELow"),
88  params.getParameter<double>("apdSimToPEHigh"),
89  params.getParameter<double>("apdTimeOffset"),
90  params.getParameter<double>("apdTimeOffWidth"),
91  params.getParameter<bool>("apdDoPEStats"),
92  m_apdDigiTag,
93  params.getParameter<std::vector<double>>("apdNonlParms"))),
94 
95  m_APDResponse(
96  !m_apdSeparateDigi
97  ? nullptr
98  : new EBHitResponse(m_ParameterMap.get(), &m_EBShape, true, m_apdParameters.get(), &m_APDShape)),
99 
100  m_EBResponse(new EBHitResponse(m_ParameterMap.get(),
101  &m_EBShape,
102  false, // barrel
103  m_apdParameters.get(),
104  &m_APDShape)),
105 
106  m_EEResponse(new EEHitResponse(m_ParameterMap.get(), &m_EEShape)),
107  m_ESResponse(new ESHitResponse(m_ParameterMap.get(), &m_ESShape)),
108  m_ESOldResponse(new CaloHitResponse(m_ParameterMap.get(), &m_ESShape)),
109 
110  m_addESNoise(params.getParameter<bool>("doESNoise")),
111  m_PreMix1(params.getParameter<bool>("EcalPreMixStage1")),
112  m_PreMix2(params.getParameter<bool>("EcalPreMixStage2")),
113 
114  m_doFastES(params.getParameter<bool>("doFast")),
115 
116  m_doEB(params.getParameter<bool>("doEB")),
117  m_doEE(params.getParameter<bool>("doEE")),
118  m_doES(params.getParameter<bool>("doES")),
119 
120  m_ESElectronicsSim(m_doFastES ? nullptr : new ESElectronicsSim(m_addESNoise)),
121 
122  m_ESOldDigitizer(m_doFastES ? nullptr
123  : new ESOldDigitizer(m_ESOldResponse.get(), m_ESElectronicsSim.get(), m_addESNoise)),
124 
125  m_ESElectronicsSimFast(!m_doFastES ? nullptr : new ESElectronicsSimFast(m_addESNoise, m_PreMix1)),
126 
127  m_ESDigitizer(!m_doFastES ? nullptr
128  : new ESDigitizer(m_ESResponse.get(), m_ESElectronicsSimFast.get(), m_addESNoise)),
129 
130  m_APDDigitizer(nullptr),
131  m_BarrelDigitizer(nullptr),
132  m_EndcapDigitizer(nullptr),
133  m_ElectronicsSim(nullptr),
134  m_Coder(nullptr),
135  m_APDElectronicsSim(nullptr),
136  m_APDCoder(nullptr),
137  m_Geometry(nullptr),
138  m_EBCorrNoise({{nullptr, nullptr, nullptr}}),
139  m_EECorrNoise({{nullptr, nullptr, nullptr}}) {
140  // "produces" statements taken care of elsewhere.
141  // if(m_apdSeparateDigi) mixMod.produces<EBDigiCollection>(m_apdDigiTag);
142  // mixMod.produces<EBDigiCollection>(m_EBdigiCollection);
143  // mixMod.produces<EEDigiCollection>(m_EEdigiCollection);
144  // mixMod.produces<ESDigiCollection>(m_ESdigiCollection);
145  if (m_doEB)
146  iC.consumes<std::vector<PCaloHit>>(edm::InputTag(m_hitsProducerTag, "EcalHitsEB"));
147  if (m_doEE)
148  iC.consumes<std::vector<PCaloHit>>(edm::InputTag(m_hitsProducerTag, "EcalHitsEE"));
149  if (m_doES) {
150  iC.consumes<std::vector<PCaloHit>>(edm::InputTag(m_hitsProducerTag, "EcalHitsES"));
151  m_esGainToken = iC.esConsumes();
152  m_esMIPToGeVToken = iC.esConsumes();
153  m_esPedestalsToken = iC.esConsumes();
154  m_esMIPsToken = iC.esConsumes();
155  }
156 
157  const std::vector<double> ebCorMatG12 = params.getParameter<std::vector<double>>("EBCorrNoiseMatrixG12");
158  const std::vector<double> eeCorMatG12 = params.getParameter<std::vector<double>>("EECorrNoiseMatrixG12");
159  const std::vector<double> ebCorMatG06 = params.getParameter<std::vector<double>>("EBCorrNoiseMatrixG06");
160  const std::vector<double> eeCorMatG06 = params.getParameter<std::vector<double>>("EECorrNoiseMatrixG06");
161  const std::vector<double> ebCorMatG01 = params.getParameter<std::vector<double>>("EBCorrNoiseMatrixG01");
162  const std::vector<double> eeCorMatG01 = params.getParameter<std::vector<double>>("EECorrNoiseMatrixG01");
163 
164  const bool applyConstantTerm = params.getParameter<bool>("applyConstantTerm");
165  const double rmsConstantTerm = params.getParameter<double>("ConstantTerm");
166 
167  const bool addNoise = params.getParameter<bool>("doENoise");
168  const bool cosmicsPhase = params.getParameter<bool>("cosmicsPhase");
169  const double cosmicsShift = params.getParameter<double>("cosmicsShift");
170 
171  //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
172 
173  // further phase for cosmics studies
174  if (cosmicsPhase) {
175  if (m_doEB)
176  m_EBResponse->setPhaseShift(1. + cosmicsShift);
177  if (m_doEE)
178  m_EEResponse->setPhaseShift(1. + cosmicsShift);
179  }
180 
182  EcalCorrMatrix eeMatrix[3];
183 
184  assert(ebCorMatG12.size() == m_readoutFrameSize);
185  assert(eeCorMatG12.size() == m_readoutFrameSize);
186  assert(ebCorMatG06.size() == m_readoutFrameSize);
187  assert(eeCorMatG06.size() == m_readoutFrameSize);
188  assert(ebCorMatG01.size() == m_readoutFrameSize);
189  assert(eeCorMatG01.size() == m_readoutFrameSize);
190 
191  assert(1.e-7 > fabs(ebCorMatG12[0] - 1.0));
192  assert(1.e-7 > fabs(ebCorMatG06[0] - 1.0));
193  assert(1.e-7 > fabs(ebCorMatG01[0] - 1.0));
194  assert(1.e-7 > fabs(eeCorMatG12[0] - 1.0));
195  assert(1.e-7 > fabs(eeCorMatG06[0] - 1.0));
196  assert(1.e-7 > fabs(eeCorMatG01[0] - 1.0));
197 
198  for (unsigned int row(0); row != m_readoutFrameSize; ++row) {
199  assert(0 == row || 1. >= ebCorMatG12[row]);
200  assert(0 == row || 1. >= ebCorMatG06[row]);
201  assert(0 == row || 1. >= ebCorMatG01[row]);
202  assert(0 == row || 1. >= eeCorMatG12[row]);
203  assert(0 == row || 1. >= eeCorMatG06[row]);
204  assert(0 == row || 1. >= eeCorMatG01[row]);
205  for (unsigned int column(0); column <= row; ++column) {
206  const unsigned int index(row - column);
207  ebMatrix[0](row, column) = ebCorMatG12[index];
208  eeMatrix[0](row, column) = eeCorMatG12[index];
209  ebMatrix[1](row, column) = ebCorMatG06[index];
210  eeMatrix[1](row, column) = eeCorMatG06[index];
211  ebMatrix[2](row, column) = ebCorMatG01[index];
212  eeMatrix[2](row, column) = eeCorMatG01[index];
213  }
214  }
215 
216  m_EBCorrNoise[0] = std::make_unique<CorrelatedNoisifier<EcalCorrMatrix>>(ebMatrix[0]);
217  m_EECorrNoise[0] = std::make_unique<CorrelatedNoisifier<EcalCorrMatrix>>(eeMatrix[0]);
218  m_EBCorrNoise[1] = std::make_unique<CorrelatedNoisifier<EcalCorrMatrix>>(ebMatrix[1]);
219  m_EECorrNoise[1] = std::make_unique<CorrelatedNoisifier<EcalCorrMatrix>>(eeMatrix[1]);
220  m_EBCorrNoise[2] = std::make_unique<CorrelatedNoisifier<EcalCorrMatrix>>(ebMatrix[2]);
221  m_EECorrNoise[2] = std::make_unique<CorrelatedNoisifier<EcalCorrMatrix>>(eeMatrix[2]);
222 
223  m_Coder = std::make_unique<EcalCoder>(addNoise,
224  m_PreMix1,
225  m_EBCorrNoise[0].get(),
226  m_EECorrNoise[0].get(),
227  m_EBCorrNoise[1].get(),
228  m_EECorrNoise[1].get(),
229  m_EBCorrNoise[2].get(),
230  m_EECorrNoise[2].get());
231 
233  std::make_unique<EcalElectronicsSim_Ph1>(m_ParameterMap.get(), m_Coder.get(), applyConstantTerm, rmsConstantTerm);
234 
235  if (m_apdSeparateDigi) {
236  m_APDCoder = std::make_unique<EcalCoder>(false,
237  m_PreMix1,
238  m_EBCorrNoise[0].get(),
239  m_EECorrNoise[0].get(),
240  m_EBCorrNoise[1].get(),
241  m_EECorrNoise[1].get(),
242  m_EBCorrNoise[2].get(),
243  m_EECorrNoise[2].get());
244 
245  m_APDElectronicsSim = std::make_unique<EcalElectronicsSim_Ph1>(
246  m_ParameterMap.get(), m_APDCoder.get(), applyConstantTerm, rmsConstantTerm);
247 
248  m_APDDigitizer = std::make_unique<EBDigitizer>(m_APDResponse.get(), m_APDElectronicsSim.get(), false);
249  }
250 
251  if (m_doEB) {
252  m_BarrelDigitizer = std::make_unique<EBDigitizer>(m_EBResponse.get(), m_ElectronicsSim.get(), addNoise);
253  }
254 
255  if (m_doEE) {
256  m_EndcapDigitizer = std::make_unique<EEDigitizer>(m_EEResponse.get(), m_ElectronicsSim.get(), addNoise);
257  }
258 }
259 
261 
264  randomEngine_ = &rng->getEngine(event.streamID());
265 
266  checkGeometry(eventSetup);
267  checkCalibrations(event, eventSetup);
268  if (m_doEB) {
269  m_BarrelDigitizer->initializeHits();
270  if (m_apdSeparateDigi) {
271  m_APDDigitizer->initializeHits();
272  }
273  }
274  if (m_doEE) {
275  m_EndcapDigitizer->initializeHits();
276  }
277  if (m_doES) {
278  if (m_doFastES) {
279  m_ESDigitizer->initializeHits();
280  } else {
281  m_ESOldDigitizer->initializeHits();
282  }
283  }
284 }
285 
287  HitsHandle const &eeHandle,
288  HitsHandle const &esHandle,
289  int bunchCrossing) {
290  if (m_doEB && ebHandle.isValid()) {
291  m_BarrelDigitizer->add(*ebHandle.product(), bunchCrossing, randomEngine_);
292 
293  if (m_apdSeparateDigi) {
294  m_APDDigitizer->add(*ebHandle.product(), bunchCrossing, randomEngine_);
295  }
296  }
297 
298  if (m_doEE && eeHandle.isValid()) {
299  m_EndcapDigitizer->add(*eeHandle.product(), bunchCrossing, randomEngine_);
300  }
301 
302  if (m_doES && esHandle.isValid()) {
303  if (m_doFastES) {
304  m_ESDigitizer->add(*esHandle.product(), bunchCrossing, randomEngine_);
305  } else {
306  m_ESOldDigitizer->add(*esHandle.product(), bunchCrossing, randomEngine_);
307  }
308  }
309 }
310 
311 void EcalDigiProducer::accumulate(edm::Event const &e, edm::EventSetup const &eventSetup) {
312  // Step A: Get Inputs
314  if (m_doEB) {
315  m_EBShape.setEventSetup(eventSetup);
316  m_APDShape.setEventSetup(eventSetup);
317  edm::InputTag ebTag(m_hitsProducerTag, "EcalHitsEB");
318  e.getByLabel(ebTag, ebHandle);
319  }
320 
322  if (m_doEE) {
323  m_EEShape.setEventSetup(eventSetup);
324  edm::InputTag eeTag(m_hitsProducerTag, "EcalHitsEE");
325  e.getByLabel(eeTag, eeHandle);
326  }
327 
329  if (m_doES) {
330  edm::InputTag esTag(m_hitsProducerTag, "EcalHitsES");
331  e.getByLabel(esTag, esHandle);
332  }
333 
334  accumulateCaloHits(ebHandle, eeHandle, esHandle, 0);
335 }
336 
338  edm::EventSetup const &eventSetup,
339  edm::StreamID const &streamID) {
340  // Step A: Get Inputs
342  if (m_doEB) {
343  edm::InputTag ebTag(m_hitsProducerTag, "EcalHitsEB");
344  e.getByLabel(ebTag, ebHandle);
345  }
346 
348  if (m_doEE) {
349  edm::InputTag eeTag(m_hitsProducerTag, "EcalHitsEE");
350  e.getByLabel(eeTag, eeHandle);
351  }
352 
354  if (m_doES) {
355  edm::InputTag esTag(m_hitsProducerTag, "EcalHitsES");
356  e.getByLabel(esTag, esHandle);
357  }
358 
359  accumulateCaloHits(ebHandle, eeHandle, esHandle, e.bunchCrossing());
360 }
361 
363  // Step B: Create empty output
364  std::unique_ptr<EBDigiCollection> apdResult(!m_apdSeparateDigi || !m_doEB ? nullptr : new EBDigiCollection());
365  std::unique_ptr<EBDigiCollection> barrelResult(new EBDigiCollection());
366  std::unique_ptr<EEDigiCollection> endcapResult(new EEDigiCollection());
367  std::unique_ptr<ESDigiCollection> preshowerResult(new ESDigiCollection());
368 
369  // run the algorithm
370 
371  if (m_doEB) {
372  m_BarrelDigitizer->run(*barrelResult, randomEngine_);
373  cacheEBDigis(&*barrelResult);
374 
375  edm::LogInfo("DigiInfo") << "EB Digis: " << barrelResult->size();
376 
377  if (m_apdSeparateDigi) {
378  m_APDDigitizer->run(*apdResult, randomEngine_);
379  edm::LogInfo("DigiInfo") << "APD Digis: " << apdResult->size();
380  }
381  }
382 
383  if (m_doEE) {
384  m_EndcapDigitizer->run(*endcapResult, randomEngine_);
385  edm::LogInfo("EcalDigi") << "EE Digis: " << endcapResult->size();
386  cacheEEDigis(&*endcapResult);
387  }
388  if (m_doES) {
389  if (m_doFastES) {
390  m_ESDigitizer->run(*preshowerResult, randomEngine_);
391  } else {
392  m_ESOldDigitizer->run(*preshowerResult, randomEngine_);
393  }
394  edm::LogInfo("EcalDigi") << "ES Digis: " << preshowerResult->size();
395  }
396 
397  // Step D: Put outputs into event
398  if (m_apdSeparateDigi) {
399  // event.put(std::move(apdResult), m_apdDigiTag ) ;
400  }
401 
402  event.put(std::move(barrelResult), m_EBdigiCollection);
403  event.put(std::move(endcapResult), m_EEdigiCollection);
404  event.put(std::move(preshowerResult), m_ESdigiCollection);
405 
406  randomEngine_ = nullptr; // to prevent access outside event
407 }
408 
411  if (!rng.isAvailable()) {
412  throw cms::Exception("Configuration") << "RandomNumberGenerator service is not available.\n"
413  "You must add the service in the configuration file\n"
414  "or remove the module that requires it.";
415  }
416  CLHEP::HepRandomEngine *engine = &rng->getEngine(lumi.index());
417 
418  if (m_doEB) {
419  if (nullptr != m_APDResponse)
420  m_APDResponse->initialize(engine);
421  m_EBResponse->initialize(engine);
422  }
423 }
424 
426  // Pedestals from event setup
427 
428  const EcalPedestals *pedestals = &eventSetup.getData(m_pedestalsToken);
429 
430  m_Coder->setPedestals(pedestals);
431  if (nullptr != m_APDCoder)
432  m_APDCoder->setPedestals(pedestals);
433 
434  // Ecal Intercalibration Constants
435  const EcalIntercalibConstantsMC *ical = &eventSetup.getData(m_icalToken);
436 
437  m_Coder->setIntercalibConstants(ical);
438  if (nullptr != m_APDCoder)
439  m_APDCoder->setIntercalibConstants(ical);
440 
441  m_EBResponse->setIntercal(ical);
442  if (nullptr != m_APDResponse)
443  m_APDResponse->setIntercal(ical);
444 
445  // Ecal LaserCorrection Constants
446  const EcalLaserDbService *laser = &eventSetup.getData(m_laserToken);
447  const edm::TimeValue_t eventTimeValue = event.time().value();
448 
449  m_EBResponse->setEventTime(eventTimeValue);
450  m_EBResponse->setLaserConstants(laser, m_useLCcorrection);
451 
452  m_EEResponse->setEventTime(eventTimeValue);
453  m_EEResponse->setLaserConstants(laser, m_useLCcorrection);
454 
455  // ADC -> GeV Scale
456  const EcalADCToGeVConstant *agc = &eventSetup.getData(m_agcToken);
457 
458  // Gain Ratios
459  const EcalGainRatios *gr = &eventSetup.getData(m_grToken);
460 
461  m_Coder->setGainRatios(gr);
462  if (nullptr != m_APDCoder)
463  m_APDCoder->setGainRatios(gr);
464 
465  EcalMGPAGainRatio *defaultRatios = new EcalMGPAGainRatio();
466 
467  double theGains[m_Coder->NGAINS + 1];
468  theGains[0] = 0.;
469  theGains[3] = 1.;
470  theGains[2] = defaultRatios->gain6Over1();
471  theGains[1] = theGains[2] * (defaultRatios->gain12Over6());
472 
473  LogDebug("EcalDigi") << " Gains: "
474  << "\n"
475  << " g1 = " << theGains[1] << "\n"
476  << " g2 = " << theGains[2] << "\n"
477  << " g3 = " << theGains[3];
478 
479  delete defaultRatios;
480 
481  const double EBscale((agc->getEBValue()) * theGains[1] * (m_Coder->MAXADC) * m_EBs25notCont);
482 
483  LogDebug("EcalDigi") << " GeV/ADC = " << agc->getEBValue() << "\n"
484  << " notCont = " << m_EBs25notCont << "\n"
485  << " saturation for EB = " << EBscale << ", " << m_EBs25notCont;
486 
487  const double EEscale((agc->getEEValue()) * theGains[1] * (m_Coder->MAXADC) * m_EEs25notCont);
488 
489  LogDebug("EcalDigi") << " GeV/ADC = " << agc->getEEValue() << "\n"
490  << " notCont = " << m_EEs25notCont << "\n"
491  << " saturation for EB = " << EEscale << ", " << m_EEs25notCont;
492 
493  m_Coder->setFullScaleEnergy(EBscale, EEscale);
494  if (nullptr != m_APDCoder)
495  m_APDCoder->setFullScaleEnergy(EBscale, EEscale);
496 
497  if (m_doES) {
498  // ES condition objects
499  const ESGain *esgain = &eventSetup.getData(m_esGainToken);
500  const ESPedestals *espeds = &eventSetup.getData(m_esPedestalsToken);
501  const ESIntercalibConstants *esmips = &eventSetup.getData(m_esMIPsToken);
502  const ESMIPToGeVConstant *esMipToGeV = &eventSetup.getData(m_esMIPToGeVToken);
503  const int ESGain(1.1 > esgain->getESGain() ? 1 : 2);
504  const double ESMIPToGeV((1 == ESGain) ? esMipToGeV->getESValueLow() : esMipToGeV->getESValueHigh());
505 
507  if (!m_doFastES) {
508  m_ESElectronicsSim->setGain(ESGain);
509  m_ESElectronicsSim->setPedestals(espeds);
510  m_ESElectronicsSim->setMIPs(esmips);
511  m_ESElectronicsSim->setMIPToGeV(ESMIPToGeV);
512  } else {
513  m_ESDigitizer->setGain(ESGain);
514  m_ESElectronicsSimFast->setPedestals(espeds);
515  m_ESElectronicsSimFast->setMIPs(esmips);
516  m_ESElectronicsSimFast->setMIPToGeV(ESMIPToGeV);
517  }
518  }
519 }
520 
522  if (m_geometryWatcher.check(eventSetup)) {
523  m_Geometry = &eventSetup.getData(m_geometryToken);
524  updateGeometry();
525  }
526 }
527 
529  if (m_doEB) {
530  if (nullptr != m_APDResponse)
533  }
534  if (m_doEE) {
536  }
537  if (m_doES) {
539  m_ESOldResponse->setGeometry(m_Geometry);
540 
541  const std::vector<DetId> *theESDets(
544  : nullptr);
545 
546  if (!m_doFastES) {
547  if (nullptr != m_ESOldDigitizer && nullptr != theESDets)
548  m_ESOldDigitizer->setDetIds(*theESDets);
549  } else {
550  if (nullptr != m_ESDigitizer && nullptr != theESDets)
551  m_ESDigitizer->setDetIds(*theESDets);
552  }
553  }
554 }
555 
557  // noiseGenerator->setParameterMap(theParameterMap);
558  if (nullptr != m_BarrelDigitizer)
559  m_BarrelDigitizer->setNoiseSignalGenerator(noiseGenerator);
560 }
561 
563  // noiseGenerator->setParameterMap(theParameterMap);
564  if (nullptr != m_EndcapDigitizer)
565  m_EndcapDigitizer->setNoiseSignalGenerator(noiseGenerator);
566 }
567 
569  // noiseGenerator->setParameterMap(theParameterMap);
570  if (nullptr != m_ESDigitizer)
571  m_ESDigitizer->setNoiseSignalGenerator(noiseGenerator);
572 }
std::unique_ptr< EcalCoder > m_APDCoder
edm::ESWatcher< CaloGeometryRecord > m_geometryWatcher
const CaloSubdetectorGeometry * getSubdetectorGeometry(const DetId &id) const
access the subdetector geometry for the given subdetector directly
Definition: CaloGeometry.cc:34
std::unique_ptr< ESDigitizer > m_ESDigitizer
edm::ESGetToken< ESMIPToGeVConstant, ESMIPToGeVConstantRcd > m_esMIPToGeVToken
const bool applyConstantTerm
LuminosityBlockIndex index() const
const std::string m_ESdigiCollection
const edm::ESGetToken< EcalIntercalibConstantsMC, EcalIntercalibConstantsMCRcd > m_icalToken
ProductRegistryHelper::BranchAliasSetterT< ProductType > produces()
std::unique_ptr< EEDigitizer > m_EndcapDigitizer
Definition: ESGain.h:7
void setGain(const int gain)
Definition: ESShape.h:23
std::unique_ptr< EBHitResponse > m_APDResponse
float getESValueLow() const
const edm::ESGetToken< EcalLaserDbService, EcalLaserDbRecord > m_laserToken
const std::string m_hitsProducerTag
EcalCorrMatrix_Ph2 ebMatrix[2]
assert(be >=bs)
virtual CLHEP::HepRandomEngine & getEngine(StreamID const &)=0
Use this engine in event methods.
const edm::ESGetToken< CaloGeometry, CaloGeometryRecord > m_geometryToken
const std::string m_EEdigiCollection
std::unique_ptr< ESHitResponse > m_ESResponse
virtual const std::vector< DetId > & getValidDetIds(DetId::Detector det=DetId::Detector(0), int subdet=0) const
Get a list of valid detector ids (for the given subdetector)
void setEENoiseSignalGenerator(EcalBaseSignalGenerator *noiseGenerator)
void initializeEvent(edm::Event const &e, edm::EventSetup const &c) override
bool getData(T &iHolder) const
Definition: EventSetup.h:128
const bool cosmicsPhase
void setEBNoiseSignalGenerator(EcalBaseSignalGenerator *noiseGenerator)
void setESNoiseSignalGenerator(EcalBaseSignalGenerator *noiseGenerator)
void accumulateCaloHits(HitsHandle const &ebHandle, HitsHandle const &eeHandle, HitsHandle const &esHandle, int bunchCrossing)
const double rmsConstantTerm
void accumulate(edm::Event const &e, edm::EventSetup const &c) override
Creates electronics signals from hits.
const double m_EBs25notCont
edm::ESGetToken< ESIntercalibConstants, ESIntercalibConstantsRcd > m_esMIPsToken
def move
Definition: eostools.py:511
bool isAvailable() const
Definition: Service.h:40
m_EBCorrNoise[0]
std::unique_ptr< CaloHitResponse > m_ESOldResponse
void beginLuminosityBlock(edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) override
float gain6Over1() const
bool isValid() const
Definition: HandleBase.h:70
list lumi
Definition: dqmdumpme.py:53
unsigned long long TimeValue_t
Definition: Timestamp.h:28
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:500
const CaloGeometry * m_Geometry
void checkCalibrations(const edm::Event &event, const edm::EventSetup &eventSetup)
const double cosmicsShift
void checkGeometry(const edm::EventSetup &eventSetup)
std::unique_ptr< EBDigitizer > m_BarrelDigitizer
std::unique_ptr< ESElectronicsSimFast > m_ESElectronicsSimFast
Log< level::Info, false > LogInfo
const edm::ESGetToken< EcalADCToGeVConstant, EcalADCToGeVConstantRcd > m_agcToken
CLHEP::HepRandomEngine * randomEngine_
T const * product() const
Definition: Handle.h:70
float getESGain() const
Definition: ESGain.h:13
virtual void cacheEBDigis(const EBDigiCollection *ebDigiPtr) const
std::unique_ptr< EEHitResponse > m_EEResponse
edm::ESGetToken< ESPedestals, ESPedestalsRcd > m_esPedestalsToken
float gain12Over6() const
bool check(const edm::EventSetup &iSetup)
Definition: ESWatcher.h:57
const bool m_apdSeparateDigi
std::unique_ptr< ESElectronicsSim > m_ESElectronicsSim
math::ErrorD< ecalPh1::sampleSize >::type EcalCorrMatrix
bool getByLabel(edm::InputTag const &tag, edm::Handle< T > &result) const
StreamID streamID() const
Definition: Event.h:98
const std::string m_apdDigiTag
void setEventSetup(const edm::EventSetup &evtSetup)
const edm::ESGetToken< EcalPedestals, EcalPedestalsRcd > m_pedestalsToken
const bool addNoise
std::unique_ptr< EBHitResponse > m_EBResponse
std::unique_ptr< ESOldDigitizer > m_ESOldDigitizer
#define get
~EcalDigiProducer() override
EcalDigiProducer(const edm::ParameterSet &params, edm::ProducesCollector, edm::ConsumesCollector &iC)
float getESValueHigh() const
virtual void cacheEEDigis(const EEDigiCollection *eeDigiPtr) const
const std::string m_EBdigiCollection
void finalizeEvent(edm::Event &e, edm::EventSetup const &c) override
ESGetTokenH3DDVariant esConsumes(std::string const &Reccord, edm::ConsumesCollector &)
Definition: DeDxTools.cc:283
const edm::ESGetToken< EcalGainRatios, EcalGainRatiosRcd > m_grToken
const double m_EEs25notCont
m_EECorrNoise({{nullptr, nullptr, nullptr}})
#define LogDebug(id)