CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Attributes | Private Types | Private Member Functions | Private Attributes
EcalDigiProducer Class Reference

#include <EcalDigiProducer.h>

Inheritance diagram for EcalDigiProducer:
DigiAccumulatorMixMod

Public Member Functions

void accumulate (edm::Event const &e, edm::EventSetup const &c) override
 
void accumulate (PileUpEventPrincipal const &e, edm::EventSetup const &c, edm::StreamID const &) override
 
void beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) override
 
 EcalDigiProducer (const edm::ParameterSet &params, edm::ProducesCollector, edm::ConsumesCollector &iC)
 
 EcalDigiProducer (const edm::ParameterSet &params, edm::ConsumesCollector &iC)
 
void finalizeEvent (edm::Event &e, edm::EventSetup const &c) override
 
void initializeEvent (edm::Event const &e, edm::EventSetup const &c) override
 
void setEBNoiseSignalGenerator (EcalBaseSignalGenerator *noiseGenerator)
 
void setEENoiseSignalGenerator (EcalBaseSignalGenerator *noiseGenerator)
 
void setESNoiseSignalGenerator (EcalBaseSignalGenerator *noiseGenerator)
 
 ~EcalDigiProducer () override
 
- Public Member Functions inherited from DigiAccumulatorMixMod
virtual void beginRun (edm::Run const &run, edm::EventSetup const &setup)
 
 DigiAccumulatorMixMod ()
 
 DigiAccumulatorMixMod (DigiAccumulatorMixMod const &)=delete
 
virtual void endLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup)
 
virtual void endRun (edm::Run const &run, edm::EventSetup const &setup)
 
virtual void finalizeBunchCrossing (edm::Event &event, edm::EventSetup const &setup, int bunchCrossing)
 
virtual PileupMixingContentgetEventPileupInfo ()
 
virtual void initializeBunchCrossing (edm::Event const &event, edm::EventSetup const &setup, int bunchCrossing)
 
DigiAccumulatorMixMod const & operator= (DigiAccumulatorMixMod const &)=delete
 
virtual void StorePileupInformation (std::vector< int > &numInteractionList, std::vector< int > &bunchCrossingList, std::vector< float > &TrueInteractionList, std::vector< edm::EventID > &eventList, int bunchSpace)
 
virtual ~DigiAccumulatorMixMod ()
 

Protected Attributes

std::unique_ptr< EBHitResponsem_EBResponse
 
std::unique_ptr< EEHitResponsem_EEResponse
 
std::unique_ptr< const EcalSimParameterMapm_ParameterMap
 

Private Types

typedef EcalElectronicsSim< EcalCoder, EcalSamples, EcalDataFrameEcalElectronicsSim_Ph1
 
typedef CaloTSamples< float, 10 > EcalSamples
 
typedef edm::Handle< std::vector< PCaloHit > > HitsHandle
 

Private Member Functions

void accumulateCaloHits (HitsHandle const &ebHandle, HitsHandle const &eeHandle, HitsHandle const &esHandle, int bunchCrossing)
 
virtual void cacheEBDigis (const EBDigiCollection *ebDigiPtr) const
 
virtual void cacheEEDigis (const EEDigiCollection *eeDigiPtr) const
 
void checkCalibrations (const edm::Event &event, const edm::EventSetup &eventSetup)
 
void checkGeometry (const edm::EventSetup &eventSetup)
 
void updateGeometry ()
 

Private Attributes

const bool m_addESNoise
 
const edm::ESGetToken< EcalADCToGeVConstant, EcalADCToGeVConstantRcdm_agcToken
 
std::unique_ptr< EcalCoderm_APDCoder
 
const std::string m_apdDigiTag
 
std::unique_ptr< EBDigitizerm_APDDigitizer
 
std::unique_ptr< EcalElectronicsSim_Ph1m_APDElectronicsSim
 
std::unique_ptr< const APDSimParametersm_apdParameters
 
std::unique_ptr< EBHitResponsem_APDResponse
 
const bool m_apdSeparateDigi
 
APDShape m_APDShape
 
std::unique_ptr< EBDigitizerm_BarrelDigitizer
 
std::unique_ptr< EcalCoderm_Coder
 
const bool m_doEB
 
const bool m_doEE
 
const bool m_doES
 
const bool m_doFastES
 
std::array< std::unique_ptr< CorrelatedNoisifier< EcalCorrMatrix > >, 3 > m_EBCorrNoise
 
const std::string m_EBdigiCollection
 
const double m_EBs25notCont
 
EBShape m_EBShape
 
std::array< std::unique_ptr< CorrelatedNoisifier< EcalCorrMatrix > >, 3 > m_EECorrNoise
 
const std::string m_EEdigiCollection
 
const double m_EEs25notCont
 
EEShape m_EEShape
 
std::unique_ptr< EcalElectronicsSim_Ph1m_ElectronicsSim
 
std::unique_ptr< EEDigitizerm_EndcapDigitizer
 
const std::string m_ESdigiCollection
 
std::unique_ptr< ESDigitizerm_ESDigitizer
 
std::unique_ptr< ESElectronicsSimm_ESElectronicsSim
 
std::unique_ptr< ESElectronicsSimFastm_ESElectronicsSimFast
 
edm::ESGetToken< ESGain, ESGainRcdm_esGainToken
 
edm::ESGetToken< ESIntercalibConstants, ESIntercalibConstantsRcdm_esMIPsToken
 
edm::ESGetToken< ESMIPToGeVConstant, ESMIPToGeVConstantRcdm_esMIPToGeVToken
 
std::unique_ptr< ESOldDigitizerm_ESOldDigitizer
 
std::unique_ptr< CaloHitResponsem_ESOldResponse
 
edm::ESGetToken< ESPedestals, ESPedestalsRcdm_esPedestalsToken
 
std::unique_ptr< ESHitResponsem_ESResponse
 
ESShape m_ESShape
 
const CaloGeometrym_Geometry
 
const edm::ESGetToken< CaloGeometry, CaloGeometryRecordm_geometryToken
 
edm::ESWatcher< CaloGeometryRecordm_geometryWatcher
 
const edm::ESGetToken< EcalGainRatios, EcalGainRatiosRcdm_grToken
 
const edm::EDGetTokenT< std::vector< PCaloHit > > m_HitsEBToken_
 
const edm::EDGetTokenT< std::vector< PCaloHit > > m_HitsEEToken_
 
const edm::EDGetTokenT< std::vector< PCaloHit > > m_HitsESToken_
 
const std::string m_hitsProducerTag
 
const edm::ESGetToken< EcalIntercalibConstantsMC, EcalIntercalibConstantsMCRcdm_icalToken
 
const edm::ESGetToken< EcalLaserDbService, EcalLaserDbRecordm_laserToken
 
const edm::ESGetToken< EcalPedestals, EcalPedestalsRcdm_pedestalsToken
 
const bool m_PreMix1
 
const bool m_PreMix2
 
const unsigned int m_readoutFrameSize
 
bool m_useLCcorrection
 
CLHEP::HepRandomEngine * randomEngine_ = nullptr
 

Detailed Description

Definition at line 80 of file EcalDigiProducer.h.

Member Typedef Documentation

◆ EcalElectronicsSim_Ph1

Definition at line 183 of file EcalDigiProducer.h.

◆ EcalSamples

typedef CaloTSamples<float, 10> EcalDigiProducer::EcalSamples
private

Definition at line 181 of file EcalDigiProducer.h.

◆ HitsHandle

typedef edm::Handle<std::vector<PCaloHit> > EcalDigiProducer::HitsHandle
private

Definition at line 100 of file EcalDigiProducer.h.

Constructor & Destructor Documentation

◆ EcalDigiProducer() [1/2]

EcalDigiProducer::EcalDigiProducer ( const edm::ParameterSet params,
edm::ProducesCollector  producesCollector,
edm::ConsumesCollector iC 
)

Definition at line 36 of file EcalDigiProducer.cc.

References m_apdDigiTag, m_apdSeparateDigi, m_EBdigiCollection, m_EEdigiCollection, m_ESdigiCollection, and edm::ProducesCollector::produces().

39  : EcalDigiProducer(params, iC) {
41  producesCollector.produces<EBDigiCollection>(m_apdDigiTag);
42 
43  producesCollector.produces<EBDigiCollection>(m_EBdigiCollection);
44  producesCollector.produces<EEDigiCollection>(m_EEdigiCollection);
45  producesCollector.produces<ESDigiCollection>(m_ESdigiCollection);
46 }
const std::string m_ESdigiCollection
ProductRegistryHelper::BranchAliasSetterT< ProductType > produces()
const std::string m_EEdigiCollection
const bool m_apdSeparateDigi
const std::string m_apdDigiTag
EcalDigiProducer(const edm::ParameterSet &params, edm::ProducesCollector, edm::ConsumesCollector &iC)
const std::string m_EBdigiCollection

◆ EcalDigiProducer() [2/2]

EcalDigiProducer::EcalDigiProducer ( const edm::ParameterSet params,
edm::ConsumesCollector iC 
)

Definition at line 49 of file EcalDigiProducer.cc.

51  m_APDShape(iC),
52  m_EBShape(iC),
53  m_EEShape(iC),
54  m_ESShape(),
55  m_EBdigiCollection(params.getParameter<std::string>("EBdigiCollection")),
56  m_EEdigiCollection(params.getParameter<std::string>("EEdigiCollection")),
57  m_ESdigiCollection(params.getParameter<std::string>("ESdigiCollection")),
58  m_hitsProducerTag(params.getParameter<std::string>("hitsProducer")),
59  m_HitsEBToken_(iC.consumes<std::vector<PCaloHit>>(edm::InputTag(m_hitsProducerTag, "EcalHitsEB"))),
60  m_HitsEEToken_(iC.consumes<std::vector<PCaloHit>>(edm::InputTag(m_hitsProducerTag, "EcalHitsEE"))),
61  m_HitsESToken_(iC.consumes<std::vector<PCaloHit>>(edm::InputTag(m_hitsProducerTag, "EcalHitsES"))),
63  m_icalToken(iC.esConsumes()),
65  m_agcToken(iC.esConsumes()),
66  m_grToken(iC.esConsumes()),
68  m_useLCcorrection(params.getUntrackedParameter<bool>("UseLCcorrection")),
69  m_apdSeparateDigi(params.getParameter<bool>("apdSeparateDigi")),
70 
71  m_EBs25notCont(params.getParameter<double>("EBs25notContainment")),
72  m_EEs25notCont(params.getParameter<double>("EEs25notContainment")),
73 
75  m_ParameterMap(new EcalSimParameterMap(params.getParameter<double>("simHitToPhotoelectronsBarrel"),
76  params.getParameter<double>("simHitToPhotoelectronsEndcap"),
77  params.getParameter<double>("photoelectronsToAnalogBarrel"),
78  params.getParameter<double>("photoelectronsToAnalogEndcap"),
79  params.getParameter<double>("samplingFactor"),
80  params.getParameter<double>("timePhase"),
82  params.getParameter<int>("binOfMaximum"),
83  params.getParameter<bool>("doPhotostatistics"),
84  params.getParameter<bool>("syncPhase"))),
85 
86  m_apdDigiTag(params.getParameter<std::string>("apdDigiTag")),
87  m_apdParameters(new APDSimParameters(params.getParameter<bool>("apdAddToBarrel"),
89  params.getParameter<double>("apdSimToPELow"),
90  params.getParameter<double>("apdSimToPEHigh"),
91  params.getParameter<double>("apdTimeOffset"),
92  params.getParameter<double>("apdTimeOffWidth"),
93  params.getParameter<bool>("apdDoPEStats"),
95  params.getParameter<std::vector<double>>("apdNonlParms"))),
96 
99  ? nullptr
100  : new EBHitResponse(m_ParameterMap.get(), &m_EBShape, true, m_apdParameters.get(), &m_APDShape)),
101 
103  &m_EBShape,
104  false, // barrel
105  m_apdParameters.get(),
106  &m_APDShape)),
107 
111 
112  m_addESNoise(params.getParameter<bool>("doESNoise")),
113  m_PreMix1(params.getParameter<bool>("EcalPreMixStage1")),
114  m_PreMix2(params.getParameter<bool>("EcalPreMixStage2")),
115 
116  m_doFastES(params.getParameter<bool>("doFast")),
117 
118  m_doEB(params.getParameter<bool>("doEB")),
119  m_doEE(params.getParameter<bool>("doEE")),
120  m_doES(params.getParameter<bool>("doES")),
121 
123 
124  m_ESOldDigitizer(m_doFastES ? nullptr
126 
128 
129  m_ESDigitizer(!m_doFastES ? nullptr
131 
132  m_APDDigitizer(nullptr),
133  m_BarrelDigitizer(nullptr),
134  m_EndcapDigitizer(nullptr),
135  m_ElectronicsSim(nullptr),
136  m_Coder(nullptr),
137  m_APDElectronicsSim(nullptr),
138  m_APDCoder(nullptr),
139  m_Geometry(nullptr),
140  m_EBCorrNoise({{nullptr, nullptr, nullptr}}),
141  m_EECorrNoise({{nullptr, nullptr, nullptr}}) {
142  // "produces" statements taken care of elsewhere.
143  // if(m_apdSeparateDigi) mixMod.produces<EBDigiCollection>(m_apdDigiTag);
144  // mixMod.produces<EBDigiCollection>(m_EBdigiCollection);
145  // mixMod.produces<EEDigiCollection>(m_EEdigiCollection);
146  // mixMod.produces<ESDigiCollection>(m_ESdigiCollection);
147  if (m_doEB)
148  iC.consumes<std::vector<PCaloHit>>(edm::InputTag(m_hitsProducerTag, "EcalHitsEB"));
149  if (m_doEE)
150  iC.consumes<std::vector<PCaloHit>>(edm::InputTag(m_hitsProducerTag, "EcalHitsEE"));
151  if (m_doES) {
152  iC.consumes<std::vector<PCaloHit>>(edm::InputTag(m_hitsProducerTag, "EcalHitsES"));
153  m_esGainToken = iC.esConsumes();
156  m_esMIPsToken = iC.esConsumes();
157  }
158 
159  const std::vector<double> ebCorMatG12 = params.getParameter<std::vector<double>>("EBCorrNoiseMatrixG12");
160  const std::vector<double> eeCorMatG12 = params.getParameter<std::vector<double>>("EECorrNoiseMatrixG12");
161  const std::vector<double> ebCorMatG06 = params.getParameter<std::vector<double>>("EBCorrNoiseMatrixG06");
162  const std::vector<double> eeCorMatG06 = params.getParameter<std::vector<double>>("EECorrNoiseMatrixG06");
163  const std::vector<double> ebCorMatG01 = params.getParameter<std::vector<double>>("EBCorrNoiseMatrixG01");
164  const std::vector<double> eeCorMatG01 = params.getParameter<std::vector<double>>("EECorrNoiseMatrixG01");
165 
166  const bool applyConstantTerm = params.getParameter<bool>("applyConstantTerm");
167  const double rmsConstantTerm = params.getParameter<double>("ConstantTerm");
168 
169  const bool addNoise = params.getParameter<bool>("doENoise");
170  const bool cosmicsPhase = params.getParameter<bool>("cosmicsPhase");
171  const double cosmicsShift = params.getParameter<double>("cosmicsShift");
172 
173  //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
174 
175  // further phase for cosmics studies
176  if (cosmicsPhase) {
177  if (m_doEB)
178  m_EBResponse->setPhaseShift(1. + cosmicsShift);
179  if (m_doEE)
180  m_EEResponse->setPhaseShift(1. + cosmicsShift);
181  }
182 
183  EcalCorrMatrix ebMatrix[3];
184  EcalCorrMatrix eeMatrix[3];
185 
186  assert(ebCorMatG12.size() == m_readoutFrameSize);
187  assert(eeCorMatG12.size() == m_readoutFrameSize);
188  assert(ebCorMatG06.size() == m_readoutFrameSize);
189  assert(eeCorMatG06.size() == m_readoutFrameSize);
190  assert(ebCorMatG01.size() == m_readoutFrameSize);
191  assert(eeCorMatG01.size() == m_readoutFrameSize);
192 
193  assert(1.e-7 > fabs(ebCorMatG12[0] - 1.0));
194  assert(1.e-7 > fabs(ebCorMatG06[0] - 1.0));
195  assert(1.e-7 > fabs(ebCorMatG01[0] - 1.0));
196  assert(1.e-7 > fabs(eeCorMatG12[0] - 1.0));
197  assert(1.e-7 > fabs(eeCorMatG06[0] - 1.0));
198  assert(1.e-7 > fabs(eeCorMatG01[0] - 1.0));
199 
200  for (unsigned int row(0); row != m_readoutFrameSize; ++row) {
201  assert(0 == row || 1. >= ebCorMatG12[row]);
202  assert(0 == row || 1. >= ebCorMatG06[row]);
203  assert(0 == row || 1. >= ebCorMatG01[row]);
204  assert(0 == row || 1. >= eeCorMatG12[row]);
205  assert(0 == row || 1. >= eeCorMatG06[row]);
206  assert(0 == row || 1. >= eeCorMatG01[row]);
207  for (unsigned int column(0); column <= row; ++column) {
208  const unsigned int index(row - column);
209  ebMatrix[0](row, column) = ebCorMatG12[index];
210  eeMatrix[0](row, column) = eeCorMatG12[index];
211  ebMatrix[1](row, column) = ebCorMatG06[index];
212  eeMatrix[1](row, column) = eeCorMatG06[index];
213  ebMatrix[2](row, column) = ebCorMatG01[index];
214  eeMatrix[2](row, column) = eeCorMatG01[index];
215  }
216  }
217 
218  m_EBCorrNoise[0] = std::make_unique<CorrelatedNoisifier<EcalCorrMatrix>>(ebMatrix[0]);
219  m_EECorrNoise[0] = std::make_unique<CorrelatedNoisifier<EcalCorrMatrix>>(eeMatrix[0]);
220  m_EBCorrNoise[1] = std::make_unique<CorrelatedNoisifier<EcalCorrMatrix>>(ebMatrix[1]);
221  m_EECorrNoise[1] = std::make_unique<CorrelatedNoisifier<EcalCorrMatrix>>(eeMatrix[1]);
222  m_EBCorrNoise[2] = std::make_unique<CorrelatedNoisifier<EcalCorrMatrix>>(ebMatrix[2]);
223  m_EECorrNoise[2] = std::make_unique<CorrelatedNoisifier<EcalCorrMatrix>>(eeMatrix[2]);
224 
225  m_Coder = std::make_unique<EcalCoder>(addNoise,
226  m_PreMix1,
227  m_EBCorrNoise[0].get(),
228  m_EECorrNoise[0].get(),
229  m_EBCorrNoise[1].get(),
230  m_EECorrNoise[1].get(),
231  m_EBCorrNoise[2].get(),
232  m_EECorrNoise[2].get());
233 
235  std::make_unique<EcalElectronicsSim_Ph1>(m_ParameterMap.get(), m_Coder.get(), applyConstantTerm, rmsConstantTerm);
236 
237  if (m_apdSeparateDigi) {
238  m_APDCoder = std::make_unique<EcalCoder>(false,
239  m_PreMix1,
240  m_EBCorrNoise[0].get(),
241  m_EECorrNoise[0].get(),
242  m_EBCorrNoise[1].get(),
243  m_EECorrNoise[1].get(),
244  m_EBCorrNoise[2].get(),
245  m_EECorrNoise[2].get());
246 
247  m_APDElectronicsSim = std::make_unique<EcalElectronicsSim_Ph1>(
248  m_ParameterMap.get(), m_APDCoder.get(), applyConstantTerm, rmsConstantTerm);
249 
250  m_APDDigitizer = std::make_unique<EBDigitizer>(m_APDResponse.get(), m_APDElectronicsSim.get(), false);
251  }
252 
253  if (m_doEB) {
254  m_BarrelDigitizer = std::make_unique<EBDigitizer>(m_EBResponse.get(), m_ElectronicsSim.get(), addNoise);
255  }
256 
257  if (m_doEE) {
258  m_EndcapDigitizer = std::make_unique<EEDigitizer>(m_EEResponse.get(), m_ElectronicsSim.get(), addNoise);
259  }
260 }
std::unique_ptr< EcalCoder > m_APDCoder
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
const edm::EDGetTokenT< std::vector< PCaloHit > > m_HitsEEToken_
CaloTDigitizer< ESOldDigitizerTraits > ESOldDigitizer
std::unique_ptr< ESDigitizer > m_ESDigitizer
edm::ESGetToken< ESMIPToGeVConstant, ESMIPToGeVConstantRcd > m_esMIPToGeVToken
const std::string m_ESdigiCollection
const edm::ESGetToken< EcalIntercalibConstantsMC, EcalIntercalibConstantsMCRcd > m_icalToken
std::unique_ptr< EEDigitizer > m_EndcapDigitizer
std::unique_ptr< EBHitResponse > m_APDResponse
const edm::ESGetToken< EcalLaserDbService, EcalLaserDbRecord > m_laserToken
const std::string m_hitsProducerTag
const edm::EDGetTokenT< std::vector< PCaloHit > > m_HitsESToken_
std::unique_ptr< EcalCoder > m_Coder
edm::ESGetToken< ESGain, ESGainRcd > m_esGainToken
assert(be >=bs)
const edm::EDGetTokenT< std::vector< PCaloHit > > m_HitsEBToken_
const edm::ESGetToken< CaloGeometry, CaloGeometryRecord > m_geometryToken
const std::string m_EEdigiCollection
std::unique_ptr< ESHitResponse > m_ESResponse
const bool m_addESNoise
const unsigned int m_readoutFrameSize
std::array< std::unique_ptr< CorrelatedNoisifier< EcalCorrMatrix > >, 3 > m_EECorrNoise
std::unique_ptr< EcalElectronicsSim_Ph1 > m_APDElectronicsSim
Creates electronics signals from hits.
const double m_EBs25notCont
edm::ESGetToken< ESIntercalibConstants, ESIntercalibConstantsRcd > m_esMIPsToken
std::unique_ptr< EcalElectronicsSim_Ph1 > m_ElectronicsSim
std::unique_ptr< CaloHitResponse > m_ESOldResponse
std::array< std::unique_ptr< CorrelatedNoisifier< EcalCorrMatrix > >, 3 > m_EBCorrNoise
const CaloGeometry * m_Geometry
std::unique_ptr< EBDigitizer > m_BarrelDigitizer
std::unique_ptr< ESElectronicsSimFast > m_ESElectronicsSimFast
const edm::ESGetToken< EcalADCToGeVConstant, EcalADCToGeVConstantRcd > m_agcToken
std::unique_ptr< EEHitResponse > m_EEResponse
edm::ESGetToken< ESPedestals, ESPedestalsRcd > m_esPedestalsToken
const bool m_apdSeparateDigi
std::unique_ptr< ESElectronicsSim > m_ESElectronicsSim
static constexpr unsigned int sampleSize
Definition: EcalConstants.h:44
math::ErrorD< ecalPh1::sampleSize >::type EcalCorrMatrix
const std::string m_apdDigiTag
const edm::ESGetToken< EcalPedestals, EcalPedestalsRcd > m_pedestalsToken
std::unique_ptr< EBHitResponse > m_EBResponse
std::unique_ptr< ESOldDigitizer > m_ESOldDigitizer
const std::string m_EBdigiCollection
EBHitResponseImpl< ecalPh1 > EBHitResponse
std::unique_ptr< EBDigitizer > m_APDDigitizer
const edm::ESGetToken< EcalGainRatios, EcalGainRatiosRcd > m_grToken
const double m_EEs25notCont
std::unique_ptr< const EcalSimParameterMap > m_ParameterMap
std::unique_ptr< const APDSimParameters > m_apdParameters

◆ ~EcalDigiProducer()

EcalDigiProducer::~EcalDigiProducer ( )
override

Definition at line 262 of file EcalDigiProducer.cc.

262 {}

Member Function Documentation

◆ accumulate() [1/2]

void EcalDigiProducer::accumulate ( edm::Event const &  e,
edm::EventSetup const &  c 
)
overridevirtual

Implements DigiAccumulatorMixMod.

Definition at line 313 of file EcalDigiProducer.cc.

References accumulateCaloHits(), MillePedeFileConverter_cfg::e, options_cfi::eventSetup, m_APDShape, m_doEB, m_doEE, m_EBShape, m_EEShape, m_HitsEBToken_, m_HitsEEToken_, m_HitsESToken_, and EcalShapeBase::setEventSetup().

Referenced by PreMixingEcalWorker::addSignals().

313  {
314  // Step A: Get Inputs
315  const edm::Handle<std::vector<PCaloHit>> &ebHandle = e.getHandle(m_HitsEBToken_);
316  if (m_doEB) {
319  }
320 
321  const edm::Handle<std::vector<PCaloHit>> &eeHandle = e.getHandle(m_HitsEEToken_);
322  if (m_doEE) {
324  }
325 
326  const edm::Handle<std::vector<PCaloHit>> &esHandle = e.getHandle(m_HitsESToken_);
327 
328  accumulateCaloHits(ebHandle, eeHandle, esHandle, 0);
329 }
const edm::EDGetTokenT< std::vector< PCaloHit > > m_HitsEEToken_
const edm::EDGetTokenT< std::vector< PCaloHit > > m_HitsESToken_
const edm::EDGetTokenT< std::vector< PCaloHit > > m_HitsEBToken_
void accumulateCaloHits(HitsHandle const &ebHandle, HitsHandle const &eeHandle, HitsHandle const &esHandle, int bunchCrossing)
void setEventSetup(const edm::EventSetup &evtSetup)

◆ accumulate() [2/2]

void EcalDigiProducer::accumulate ( PileUpEventPrincipal const &  e,
edm::EventSetup const &  c,
edm::StreamID const &  streamID 
)
overridevirtual

Implements DigiAccumulatorMixMod.

Definition at line 331 of file EcalDigiProducer.cc.

References accumulateCaloHits(), MillePedeFileConverter_cfg::e, m_doEB, m_doEE, m_doES, and m_hitsProducerTag.

333  {
334  // Step A: Get Inputs
336  if (m_doEB) {
337  edm::InputTag ebTag(m_hitsProducerTag, "EcalHitsEB");
338  e.getByLabel(ebTag, ebHandle);
339  }
340 
342  if (m_doEE) {
343  edm::InputTag eeTag(m_hitsProducerTag, "EcalHitsEE");
344  e.getByLabel(eeTag, eeHandle);
345  }
346 
348  if (m_doES) {
349  edm::InputTag esTag(m_hitsProducerTag, "EcalHitsES");
350  e.getByLabel(esTag, esHandle);
351  }
352 
353  accumulateCaloHits(ebHandle, eeHandle, esHandle, e.bunchCrossing());
354 }
const std::string m_hitsProducerTag
void accumulateCaloHits(HitsHandle const &ebHandle, HitsHandle const &eeHandle, HitsHandle const &esHandle, int bunchCrossing)

◆ accumulateCaloHits()

void EcalDigiProducer::accumulateCaloHits ( HitsHandle const &  ebHandle,
HitsHandle const &  eeHandle,
HitsHandle const &  esHandle,
int  bunchCrossing 
)
private

Definition at line 288 of file EcalDigiProducer.cc.

References edm::HandleBase::isValid(), m_APDDigitizer, m_apdSeparateDigi, m_BarrelDigitizer, m_doEB, m_doEE, m_doES, m_doFastES, m_EndcapDigitizer, m_ESDigitizer, m_ESOldDigitizer, edm::Handle< T >::product(), and randomEngine_.

Referenced by accumulate().

291  {
292  if (m_doEB && ebHandle.isValid()) {
293  m_BarrelDigitizer->add(*ebHandle.product(), bunchCrossing, randomEngine_);
294 
295  if (m_apdSeparateDigi) {
296  m_APDDigitizer->add(*ebHandle.product(), bunchCrossing, randomEngine_);
297  }
298  }
299 
300  if (m_doEE && eeHandle.isValid()) {
301  m_EndcapDigitizer->add(*eeHandle.product(), bunchCrossing, randomEngine_);
302  }
303 
304  if (m_doES && esHandle.isValid()) {
305  if (m_doFastES) {
306  m_ESDigitizer->add(*esHandle.product(), bunchCrossing, randomEngine_);
307  } else {
308  m_ESOldDigitizer->add(*esHandle.product(), bunchCrossing, randomEngine_);
309  }
310  }
311 }
std::unique_ptr< ESDigitizer > m_ESDigitizer
std::unique_ptr< EEDigitizer > m_EndcapDigitizer
std::unique_ptr< EBDigitizer > m_BarrelDigitizer
CLHEP::HepRandomEngine * randomEngine_
const bool m_apdSeparateDigi
std::unique_ptr< ESOldDigitizer > m_ESOldDigitizer
std::unique_ptr< EBDigitizer > m_APDDigitizer

◆ beginLuminosityBlock()

void EcalDigiProducer::beginLuminosityBlock ( edm::LuminosityBlock const &  lumi,
edm::EventSetup const &  setup 
)
overridevirtual

Reimplemented from DigiAccumulatorMixMod.

Definition at line 403 of file EcalDigiProducer.cc.

References Exception, edm::RandomNumberGenerator::getEngine(), edm::Service< T >::isAvailable(), m_APDResponse, m_doEB, and m_EBResponse.

Referenced by PreMixingEcalWorker::beginLuminosityBlock().

403  {
405  if (!rng.isAvailable()) {
406  throw cms::Exception("Configuration") << "RandomNumberGenerator service is not available.\n"
407  "You must add the service in the configuration file\n"
408  "or remove the module that requires it.";
409  }
410  CLHEP::HepRandomEngine *engine = &rng->getEngine(lumi.index());
411 
412  if (m_doEB) {
413  if (nullptr != m_APDResponse)
414  m_APDResponse->initialize(engine);
415  m_EBResponse->initialize(engine);
416  }
417 }
std::unique_ptr< EBHitResponse > m_APDResponse
virtual CLHEP::HepRandomEngine & getEngine(StreamID const &)=0
Use this engine in event methods.
std::unique_ptr< EBHitResponse > m_EBResponse
bool isAvailable() const
Definition: Service.h:40

◆ cacheEBDigis()

virtual void EcalDigiProducer::cacheEBDigis ( const EBDigiCollection ebDigiPtr) const
inlineprivatevirtual

Definition at line 97 of file EcalDigiProducer.h.

Referenced by finalizeEvent().

97 {}

◆ cacheEEDigis()

virtual void EcalDigiProducer::cacheEEDigis ( const EEDigiCollection eeDigiPtr) const
inlineprivatevirtual

Definition at line 98 of file EcalDigiProducer.h.

Referenced by finalizeEvent().

98 {}

◆ checkCalibrations()

void EcalDigiProducer::checkCalibrations ( const edm::Event event,
const edm::EventSetup eventSetup 
)
private

Definition at line 419 of file EcalDigiProducer.cc.

References options_cfi::eventSetup, EcalMGPAGainRatio::gain12Over6(), EcalMGPAGainRatio::gain6Over1(), EcalADCToGeVConstant::getEBValue(), EcalADCToGeVConstant::getEEValue(), ESGain::getESGain(), ESMIPToGeVConstant::getESValueHigh(), ESMIPToGeVConstant::getESValueLow(), EcalCondDBWriter_cfi::laser, LogDebug, m_agcToken, m_APDCoder, m_APDResponse, m_Coder, m_doES, m_doFastES, m_EBResponse, m_EBs25notCont, m_EEResponse, m_EEs25notCont, m_ESDigitizer, m_ESElectronicsSim, m_ESElectronicsSimFast, m_esGainToken, m_esMIPsToken, m_esMIPToGeVToken, m_esPedestalsToken, m_ESShape, m_grToken, m_icalToken, m_laserToken, m_pedestalsToken, m_useLCcorrection, and ESShape::setGain().

Referenced by initializeEvent().

419  {
420  // Pedestals from event setup
421 
422  const EcalPedestals *pedestals = &eventSetup.getData(m_pedestalsToken);
423 
424  m_Coder->setPedestals(pedestals);
425  if (nullptr != m_APDCoder)
426  m_APDCoder->setPedestals(pedestals);
427 
428  // Ecal Intercalibration Constants
429  const EcalIntercalibConstantsMC *ical = &eventSetup.getData(m_icalToken);
430 
431  m_Coder->setIntercalibConstants(ical);
432  if (nullptr != m_APDCoder)
433  m_APDCoder->setIntercalibConstants(ical);
434 
435  m_EBResponse->setIntercal(ical);
436  if (nullptr != m_APDResponse)
437  m_APDResponse->setIntercal(ical);
438 
439  // Ecal LaserCorrection Constants
440  const EcalLaserDbService *laser = &eventSetup.getData(m_laserToken);
441  const edm::TimeValue_t eventTimeValue = event.time().value();
442 
443  m_EBResponse->setEventTime(eventTimeValue);
444  m_EBResponse->setLaserConstants(laser, m_useLCcorrection);
445 
446  m_EEResponse->setEventTime(eventTimeValue);
447  m_EEResponse->setLaserConstants(laser, m_useLCcorrection);
448 
449  // ADC -> GeV Scale
450  const EcalADCToGeVConstant *agc = &eventSetup.getData(m_agcToken);
451 
452  // Gain Ratios
453  const EcalGainRatios *gr = &eventSetup.getData(m_grToken);
454 
455  m_Coder->setGainRatios(gr);
456  if (nullptr != m_APDCoder)
457  m_APDCoder->setGainRatios(gr);
458 
459  EcalMGPAGainRatio *defaultRatios = new EcalMGPAGainRatio();
460 
461  double theGains[m_Coder->NGAINS + 1];
462  theGains[0] = 0.;
463  theGains[3] = 1.;
464  theGains[2] = defaultRatios->gain6Over1();
465  theGains[1] = theGains[2] * (defaultRatios->gain12Over6());
466 
467  LogDebug("EcalDigi") << " Gains: "
468  << "\n"
469  << " g1 = " << theGains[1] << "\n"
470  << " g2 = " << theGains[2] << "\n"
471  << " g3 = " << theGains[3];
472 
473  delete defaultRatios;
474 
475  const double EBscale((agc->getEBValue()) * theGains[1] * (m_Coder->MAXADC) * m_EBs25notCont);
476 
477  LogDebug("EcalDigi") << " GeV/ADC = " << agc->getEBValue() << "\n"
478  << " notCont = " << m_EBs25notCont << "\n"
479  << " saturation for EB = " << EBscale << ", " << m_EBs25notCont;
480 
481  const double EEscale((agc->getEEValue()) * theGains[1] * (m_Coder->MAXADC) * m_EEs25notCont);
482 
483  LogDebug("EcalDigi") << " GeV/ADC = " << agc->getEEValue() << "\n"
484  << " notCont = " << m_EEs25notCont << "\n"
485  << " saturation for EB = " << EEscale << ", " << m_EEs25notCont;
486 
487  m_Coder->setFullScaleEnergy(EBscale, EEscale);
488  if (nullptr != m_APDCoder)
489  m_APDCoder->setFullScaleEnergy(EBscale, EEscale);
490 
491  if (m_doES) {
492  // ES condition objects
493  const ESGain *esgain = &eventSetup.getData(m_esGainToken);
494  const ESPedestals *espeds = &eventSetup.getData(m_esPedestalsToken);
495  const ESIntercalibConstants *esmips = &eventSetup.getData(m_esMIPsToken);
496  const ESMIPToGeVConstant *esMipToGeV = &eventSetup.getData(m_esMIPToGeVToken);
497  const int ESGain(1.1 > esgain->getESGain() ? 1 : 2);
498  const double ESMIPToGeV((1 == ESGain) ? esMipToGeV->getESValueLow() : esMipToGeV->getESValueHigh());
499 
501  if (!m_doFastES) {
502  m_ESElectronicsSim->setGain(ESGain);
503  m_ESElectronicsSim->setPedestals(espeds);
504  m_ESElectronicsSim->setMIPs(esmips);
505  m_ESElectronicsSim->setMIPToGeV(ESMIPToGeV);
506  } else {
507  m_ESDigitizer->setGain(ESGain);
508  m_ESElectronicsSimFast->setPedestals(espeds);
509  m_ESElectronicsSimFast->setMIPs(esmips);
510  m_ESElectronicsSimFast->setMIPToGeV(ESMIPToGeV);
511  }
512  }
513 }
std::unique_ptr< EcalCoder > m_APDCoder
float getESValueHigh() const
std::unique_ptr< ESDigitizer > m_ESDigitizer
edm::ESGetToken< ESMIPToGeVConstant, ESMIPToGeVConstantRcd > m_esMIPToGeVToken
const edm::ESGetToken< EcalIntercalibConstantsMC, EcalIntercalibConstantsMCRcd > m_icalToken
Definition: ESGain.h:7
void setGain(const int gain)
Definition: ESShape.h:23
std::unique_ptr< EBHitResponse > m_APDResponse
const edm::ESGetToken< EcalLaserDbService, EcalLaserDbRecord > m_laserToken
std::unique_ptr< EcalCoder > m_Coder
edm::ESGetToken< ESGain, ESGainRcd > m_esGainToken
const double m_EBs25notCont
edm::ESGetToken< ESIntercalibConstants, ESIntercalibConstantsRcd > m_esMIPsToken
float getESValueLow() const
unsigned long long TimeValue_t
Definition: Timestamp.h:21
std::unique_ptr< ESElectronicsSimFast > m_ESElectronicsSimFast
float gain12Over6() const
const edm::ESGetToken< EcalADCToGeVConstant, EcalADCToGeVConstantRcd > m_agcToken
std::unique_ptr< EEHitResponse > m_EEResponse
edm::ESGetToken< ESPedestals, ESPedestalsRcd > m_esPedestalsToken
float gain6Over1() const
std::unique_ptr< ESElectronicsSim > m_ESElectronicsSim
const edm::ESGetToken< EcalPedestals, EcalPedestalsRcd > m_pedestalsToken
std::unique_ptr< EBHitResponse > m_EBResponse
const edm::ESGetToken< EcalGainRatios, EcalGainRatiosRcd > m_grToken
float getESGain() const
Definition: ESGain.h:13
const double m_EEs25notCont
#define LogDebug(id)

◆ checkGeometry()

void EcalDigiProducer::checkGeometry ( const edm::EventSetup eventSetup)
private

Definition at line 515 of file EcalDigiProducer.cc.

References edm::ESWatcher< T >::check(), options_cfi::eventSetup, m_Geometry, m_geometryToken, m_geometryWatcher, and updateGeometry().

Referenced by initializeEvent().

515  {
518  updateGeometry();
519  }
520 }
edm::ESWatcher< CaloGeometryRecord > m_geometryWatcher
const edm::ESGetToken< CaloGeometry, CaloGeometryRecord > m_geometryToken
const CaloGeometry * m_Geometry
bool check(const edm::EventSetup &iSetup)
Definition: ESWatcher.h:57

◆ finalizeEvent()

void EcalDigiProducer::finalizeEvent ( edm::Event e,
edm::EventSetup const &  c 
)
overridevirtual

Implements DigiAccumulatorMixMod.

Definition at line 356 of file EcalDigiProducer.cc.

References cacheEBDigis(), cacheEEDigis(), m_APDDigitizer, m_apdSeparateDigi, m_BarrelDigitizer, m_doEB, m_doEE, m_doES, m_doFastES, m_EBdigiCollection, m_EEdigiCollection, m_EndcapDigitizer, m_ESdigiCollection, m_ESDigitizer, m_ESOldDigitizer, eostools::move(), and randomEngine_.

Referenced by PreMixingEcalWorker::put().

356  {
357  // Step B: Create empty output
358  std::unique_ptr<EBDigiCollection> apdResult(!m_apdSeparateDigi || !m_doEB ? nullptr : new EBDigiCollection());
359  std::unique_ptr<EBDigiCollection> barrelResult(new EBDigiCollection());
360  std::unique_ptr<EEDigiCollection> endcapResult(new EEDigiCollection());
361  std::unique_ptr<ESDigiCollection> preshowerResult(new ESDigiCollection());
362 
363  // run the algorithm
364 
365  if (m_doEB) {
366  m_BarrelDigitizer->run(*barrelResult, randomEngine_);
367  cacheEBDigis(&*barrelResult);
368 
369  edm::LogInfo("DigiInfo") << "EB Digis: " << barrelResult->size();
370 
371  if (m_apdSeparateDigi) {
372  m_APDDigitizer->run(*apdResult, randomEngine_);
373  edm::LogInfo("DigiInfo") << "APD Digis: " << apdResult->size();
374  }
375  }
376 
377  if (m_doEE) {
378  m_EndcapDigitizer->run(*endcapResult, randomEngine_);
379  edm::LogInfo("EcalDigi") << "EE Digis: " << endcapResult->size();
380  cacheEEDigis(&*endcapResult);
381  }
382  if (m_doES) {
383  if (m_doFastES) {
384  m_ESDigitizer->run(*preshowerResult, randomEngine_);
385  } else {
386  m_ESOldDigitizer->run(*preshowerResult, randomEngine_);
387  }
388  edm::LogInfo("EcalDigi") << "ES Digis: " << preshowerResult->size();
389  }
390 
391  // Step D: Put outputs into event
392  if (m_apdSeparateDigi) {
393  // event.put(std::move(apdResult), m_apdDigiTag ) ;
394  }
395 
396  event.put(std::move(barrelResult), m_EBdigiCollection);
397  event.put(std::move(endcapResult), m_EEdigiCollection);
398  event.put(std::move(preshowerResult), m_ESdigiCollection);
399 
400  randomEngine_ = nullptr; // to prevent access outside event
401 }
std::unique_ptr< ESDigitizer > m_ESDigitizer
const std::string m_ESdigiCollection
std::unique_ptr< EEDigitizer > m_EndcapDigitizer
virtual void cacheEBDigis(const EBDigiCollection *ebDigiPtr) const
const std::string m_EEdigiCollection
std::unique_ptr< EBDigitizer > m_BarrelDigitizer
Log< level::Info, false > LogInfo
CLHEP::HepRandomEngine * randomEngine_
const bool m_apdSeparateDigi
std::unique_ptr< ESOldDigitizer > m_ESOldDigitizer
virtual void cacheEEDigis(const EEDigiCollection *eeDigiPtr) const
const std::string m_EBdigiCollection
std::unique_ptr< EBDigitizer > m_APDDigitizer
def move(src, dest)
Definition: eostools.py:511

◆ initializeEvent()

void EcalDigiProducer::initializeEvent ( edm::Event const &  e,
edm::EventSetup const &  c 
)
overridevirtual

Implements DigiAccumulatorMixMod.

Definition at line 264 of file EcalDigiProducer.cc.

References checkCalibrations(), checkGeometry(), options_cfi::eventSetup, edm::RandomNumberGenerator::getEngine(), m_APDDigitizer, m_apdSeparateDigi, m_BarrelDigitizer, m_doEB, m_doEE, m_doES, m_doFastES, m_EndcapDigitizer, m_ESDigitizer, m_ESOldDigitizer, and randomEngine_.

Referenced by PreMixingEcalWorker::initializeEvent().

264  {
266  randomEngine_ = &rng->getEngine(event.streamID());
267 
270  if (m_doEB) {
271  m_BarrelDigitizer->initializeHits();
272  if (m_apdSeparateDigi) {
273  m_APDDigitizer->initializeHits();
274  }
275  }
276  if (m_doEE) {
277  m_EndcapDigitizer->initializeHits();
278  }
279  if (m_doES) {
280  if (m_doFastES) {
281  m_ESDigitizer->initializeHits();
282  } else {
283  m_ESOldDigitizer->initializeHits();
284  }
285  }
286 }
std::unique_ptr< ESDigitizer > m_ESDigitizer
std::unique_ptr< EEDigitizer > m_EndcapDigitizer
virtual CLHEP::HepRandomEngine & getEngine(StreamID const &)=0
Use this engine in event methods.
void checkCalibrations(const edm::Event &event, const edm::EventSetup &eventSetup)
void checkGeometry(const edm::EventSetup &eventSetup)
std::unique_ptr< EBDigitizer > m_BarrelDigitizer
CLHEP::HepRandomEngine * randomEngine_
const bool m_apdSeparateDigi
std::unique_ptr< ESOldDigitizer > m_ESOldDigitizer
std::unique_ptr< EBDigitizer > m_APDDigitizer
Definition: event.py:1

◆ setEBNoiseSignalGenerator()

void EcalDigiProducer::setEBNoiseSignalGenerator ( EcalBaseSignalGenerator noiseGenerator)

Definition at line 550 of file EcalDigiProducer.cc.

References m_BarrelDigitizer.

Referenced by PreMixingEcalWorker::PreMixingEcalWorker().

550  {
551  // noiseGenerator->setParameterMap(theParameterMap);
552  if (nullptr != m_BarrelDigitizer)
553  m_BarrelDigitizer->setNoiseSignalGenerator(noiseGenerator);
554 }
std::unique_ptr< EBDigitizer > m_BarrelDigitizer

◆ setEENoiseSignalGenerator()

void EcalDigiProducer::setEENoiseSignalGenerator ( EcalBaseSignalGenerator noiseGenerator)

Definition at line 556 of file EcalDigiProducer.cc.

References m_EndcapDigitizer.

Referenced by PreMixingEcalWorker::PreMixingEcalWorker().

556  {
557  // noiseGenerator->setParameterMap(theParameterMap);
558  if (nullptr != m_EndcapDigitizer)
559  m_EndcapDigitizer->setNoiseSignalGenerator(noiseGenerator);
560 }
std::unique_ptr< EEDigitizer > m_EndcapDigitizer

◆ setESNoiseSignalGenerator()

void EcalDigiProducer::setESNoiseSignalGenerator ( EcalBaseSignalGenerator noiseGenerator)

Definition at line 562 of file EcalDigiProducer.cc.

References m_ESDigitizer.

Referenced by PreMixingEcalWorker::PreMixingEcalWorker().

562  {
563  // noiseGenerator->setParameterMap(theParameterMap);
564  if (nullptr != m_ESDigitizer)
565  m_ESDigitizer->setNoiseSignalGenerator(noiseGenerator);
566 }
std::unique_ptr< ESDigitizer > m_ESDigitizer

◆ updateGeometry()

void EcalDigiProducer::updateGeometry ( )
private

Definition at line 522 of file EcalDigiProducer.cc.

References DetId::Ecal, EcalBarrel, EcalEndcap, EcalPreshower, CaloGeometry::getSubdetectorGeometry(), CaloSubdetectorGeometry::getValidDetIds(), m_APDResponse, m_doEB, m_doEE, m_doES, m_doFastES, m_EBResponse, m_EEResponse, m_ESDigitizer, m_ESOldDigitizer, m_ESOldResponse, m_ESResponse, and m_Geometry.

Referenced by checkGeometry().

522  {
523  if (m_doEB) {
524  if (nullptr != m_APDResponse)
527  }
528  if (m_doEE) {
530  }
531  if (m_doES) {
533  m_ESOldResponse->setGeometry(m_Geometry);
534 
535  const std::vector<DetId> *theESDets(
538  : nullptr);
539 
540  if (!m_doFastES) {
541  if (nullptr != m_ESOldDigitizer && nullptr != theESDets)
542  m_ESOldDigitizer->setDetIds(*theESDets);
543  } else {
544  if (nullptr != m_ESDigitizer && nullptr != theESDets)
545  m_ESDigitizer->setDetIds(*theESDets);
546  }
547  }
548 }
std::unique_ptr< ESDigitizer > m_ESDigitizer
std::unique_ptr< EBHitResponse > m_APDResponse
std::unique_ptr< ESHitResponse > m_ESResponse
std::unique_ptr< CaloHitResponse > m_ESOldResponse
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)
const CaloGeometry * m_Geometry
std::unique_ptr< EEHitResponse > m_EEResponse
std::unique_ptr< EBHitResponse > m_EBResponse
std::unique_ptr< ESOldDigitizer > m_ESOldDigitizer
const CaloSubdetectorGeometry * getSubdetectorGeometry(const DetId &id) const
access the subdetector geometry for the given subdetector directly
Definition: CaloGeometry.cc:34

Member Data Documentation

◆ m_addESNoise

const bool EcalDigiProducer::m_addESNoise
private

Definition at line 164 of file EcalDigiProducer.h.

◆ m_agcToken

const edm::ESGetToken<EcalADCToGeVConstant, EcalADCToGeVConstantRcd> EcalDigiProducer::m_agcToken
private

Definition at line 129 of file EcalDigiProducer.h.

Referenced by checkCalibrations().

◆ m_APDCoder

std::unique_ptr<EcalCoder> EcalDigiProducer::m_APDCoder
private

Definition at line 188 of file EcalDigiProducer.h.

Referenced by checkCalibrations().

◆ m_apdDigiTag

const std::string EcalDigiProducer::m_apdDigiTag
private

Definition at line 151 of file EcalDigiProducer.h.

Referenced by EcalDigiProducer().

◆ m_APDDigitizer

std::unique_ptr<EBDigitizer> EcalDigiProducer::m_APDDigitizer
private

Definition at line 177 of file EcalDigiProducer.h.

Referenced by accumulateCaloHits(), finalizeEvent(), and initializeEvent().

◆ m_APDElectronicsSim

std::unique_ptr<EcalElectronicsSim_Ph1> EcalDigiProducer::m_APDElectronicsSim
private

Definition at line 187 of file EcalDigiProducer.h.

◆ m_apdParameters

std::unique_ptr<const APDSimParameters> EcalDigiProducer::m_apdParameters
private

Definition at line 152 of file EcalDigiProducer.h.

◆ m_APDResponse

std::unique_ptr<EBHitResponse> EcalDigiProducer::m_APDResponse
private

Definition at line 154 of file EcalDigiProducer.h.

Referenced by beginLuminosityBlock(), checkCalibrations(), and updateGeometry().

◆ m_apdSeparateDigi

const bool EcalDigiProducer::m_apdSeparateDigi
private

◆ m_APDShape

APDShape EcalDigiProducer::m_APDShape
private

Definition at line 112 of file EcalDigiProducer.h.

Referenced by accumulate().

◆ m_BarrelDigitizer

std::unique_ptr<EBDigitizer> EcalDigiProducer::m_BarrelDigitizer
private

◆ m_Coder

std::unique_ptr<EcalCoder> EcalDigiProducer::m_Coder
private

Definition at line 185 of file EcalDigiProducer.h.

Referenced by checkCalibrations().

◆ m_doEB

const bool EcalDigiProducer::m_doEB
private

◆ m_doEE

const bool EcalDigiProducer::m_doEE
private

◆ m_doES

const bool EcalDigiProducer::m_doES
private

◆ m_doFastES

const bool EcalDigiProducer::m_doFastES
private

◆ m_EBCorrNoise

std::array<std::unique_ptr<CorrelatedNoisifier<EcalCorrMatrix> >, 3> EcalDigiProducer::m_EBCorrNoise
private

Definition at line 192 of file EcalDigiProducer.h.

◆ m_EBdigiCollection

const std::string EcalDigiProducer::m_EBdigiCollection
private

Definition at line 117 of file EcalDigiProducer.h.

Referenced by EcalDigiProducer(), and finalizeEvent().

◆ m_EBResponse

std::unique_ptr<EBHitResponse> EcalDigiProducer::m_EBResponse
protected

Definition at line 157 of file EcalDigiProducer.h.

Referenced by beginLuminosityBlock(), checkCalibrations(), and updateGeometry().

◆ m_EBs25notCont

const double EcalDigiProducer::m_EBs25notCont
private

Definition at line 142 of file EcalDigiProducer.h.

Referenced by checkCalibrations().

◆ m_EBShape

EBShape EcalDigiProducer::m_EBShape
private

Definition at line 113 of file EcalDigiProducer.h.

Referenced by accumulate().

◆ m_EECorrNoise

std::array<std::unique_ptr<CorrelatedNoisifier<EcalCorrMatrix> >, 3> EcalDigiProducer::m_EECorrNoise
private

Definition at line 193 of file EcalDigiProducer.h.

◆ m_EEdigiCollection

const std::string EcalDigiProducer::m_EEdigiCollection
private

Definition at line 118 of file EcalDigiProducer.h.

Referenced by EcalDigiProducer(), and finalizeEvent().

◆ m_EEResponse

std::unique_ptr<EEHitResponse> EcalDigiProducer::m_EEResponse
protected

Definition at line 158 of file EcalDigiProducer.h.

Referenced by checkCalibrations(), and updateGeometry().

◆ m_EEs25notCont

const double EcalDigiProducer::m_EEs25notCont
private

Definition at line 143 of file EcalDigiProducer.h.

Referenced by checkCalibrations().

◆ m_EEShape

EEShape EcalDigiProducer::m_EEShape
private

Definition at line 114 of file EcalDigiProducer.h.

Referenced by accumulate().

◆ m_ElectronicsSim

std::unique_ptr<EcalElectronicsSim_Ph1> EcalDigiProducer::m_ElectronicsSim
private

Definition at line 184 of file EcalDigiProducer.h.

◆ m_EndcapDigitizer

std::unique_ptr<EEDigitizer> EcalDigiProducer::m_EndcapDigitizer
private

◆ m_ESdigiCollection

const std::string EcalDigiProducer::m_ESdigiCollection
private

Definition at line 119 of file EcalDigiProducer.h.

Referenced by EcalDigiProducer(), and finalizeEvent().

◆ m_ESDigitizer

std::unique_ptr<ESDigitizer> EcalDigiProducer::m_ESDigitizer
private

◆ m_ESElectronicsSim

std::unique_ptr<ESElectronicsSim> EcalDigiProducer::m_ESElectronicsSim
private

Definition at line 172 of file EcalDigiProducer.h.

Referenced by checkCalibrations().

◆ m_ESElectronicsSimFast

std::unique_ptr<ESElectronicsSimFast> EcalDigiProducer::m_ESElectronicsSimFast
private

Definition at line 174 of file EcalDigiProducer.h.

Referenced by checkCalibrations().

◆ m_esGainToken

edm::ESGetToken<ESGain, ESGainRcd> EcalDigiProducer::m_esGainToken
private

Definition at line 132 of file EcalDigiProducer.h.

Referenced by checkCalibrations().

◆ m_esMIPsToken

edm::ESGetToken<ESIntercalibConstants, ESIntercalibConstantsRcd> EcalDigiProducer::m_esMIPsToken
private

Definition at line 135 of file EcalDigiProducer.h.

Referenced by checkCalibrations().

◆ m_esMIPToGeVToken

edm::ESGetToken<ESMIPToGeVConstant, ESMIPToGeVConstantRcd> EcalDigiProducer::m_esMIPToGeVToken
private

Definition at line 133 of file EcalDigiProducer.h.

Referenced by checkCalibrations().

◆ m_ESOldDigitizer

std::unique_ptr<ESOldDigitizer> EcalDigiProducer::m_ESOldDigitizer
private

◆ m_ESOldResponse

std::unique_ptr<CaloHitResponse> EcalDigiProducer::m_ESOldResponse
private

Definition at line 162 of file EcalDigiProducer.h.

Referenced by updateGeometry().

◆ m_esPedestalsToken

edm::ESGetToken<ESPedestals, ESPedestalsRcd> EcalDigiProducer::m_esPedestalsToken
private

Definition at line 134 of file EcalDigiProducer.h.

Referenced by checkCalibrations().

◆ m_ESResponse

std::unique_ptr<ESHitResponse> EcalDigiProducer::m_ESResponse
private

Definition at line 161 of file EcalDigiProducer.h.

Referenced by updateGeometry().

◆ m_ESShape

ESShape EcalDigiProducer::m_ESShape
private

Definition at line 115 of file EcalDigiProducer.h.

Referenced by checkCalibrations().

◆ m_Geometry

const CaloGeometry* EcalDigiProducer::m_Geometry
private

Definition at line 190 of file EcalDigiProducer.h.

Referenced by checkGeometry(), and updateGeometry().

◆ m_geometryToken

const edm::ESGetToken<CaloGeometry, CaloGeometryRecord> EcalDigiProducer::m_geometryToken
private

Definition at line 131 of file EcalDigiProducer.h.

Referenced by checkGeometry().

◆ m_geometryWatcher

edm::ESWatcher<CaloGeometryRecord> EcalDigiProducer::m_geometryWatcher
private

Definition at line 136 of file EcalDigiProducer.h.

Referenced by checkGeometry().

◆ m_grToken

const edm::ESGetToken<EcalGainRatios, EcalGainRatiosRcd> EcalDigiProducer::m_grToken
private

Definition at line 130 of file EcalDigiProducer.h.

Referenced by checkCalibrations().

◆ m_HitsEBToken_

const edm::EDGetTokenT<std::vector<PCaloHit> > EcalDigiProducer::m_HitsEBToken_
private

Definition at line 122 of file EcalDigiProducer.h.

Referenced by accumulate().

◆ m_HitsEEToken_

const edm::EDGetTokenT<std::vector<PCaloHit> > EcalDigiProducer::m_HitsEEToken_
private

Definition at line 123 of file EcalDigiProducer.h.

Referenced by accumulate().

◆ m_HitsESToken_

const edm::EDGetTokenT<std::vector<PCaloHit> > EcalDigiProducer::m_HitsESToken_
private

Definition at line 124 of file EcalDigiProducer.h.

Referenced by accumulate().

◆ m_hitsProducerTag

const std::string EcalDigiProducer::m_hitsProducerTag
private

Definition at line 120 of file EcalDigiProducer.h.

Referenced by accumulate().

◆ m_icalToken

const edm::ESGetToken<EcalIntercalibConstantsMC, EcalIntercalibConstantsMCRcd> EcalDigiProducer::m_icalToken
private

Definition at line 127 of file EcalDigiProducer.h.

Referenced by checkCalibrations().

◆ m_laserToken

const edm::ESGetToken<EcalLaserDbService, EcalLaserDbRecord> EcalDigiProducer::m_laserToken
private

Definition at line 128 of file EcalDigiProducer.h.

Referenced by checkCalibrations().

◆ m_ParameterMap

std::unique_ptr<const EcalSimParameterMap> EcalDigiProducer::m_ParameterMap
protected

Definition at line 148 of file EcalDigiProducer.h.

◆ m_pedestalsToken

const edm::ESGetToken<EcalPedestals, EcalPedestalsRcd> EcalDigiProducer::m_pedestalsToken
private

Definition at line 126 of file EcalDigiProducer.h.

Referenced by checkCalibrations().

◆ m_PreMix1

const bool EcalDigiProducer::m_PreMix1
private

Definition at line 165 of file EcalDigiProducer.h.

◆ m_PreMix2

const bool EcalDigiProducer::m_PreMix2
private

Definition at line 166 of file EcalDigiProducer.h.

◆ m_readoutFrameSize

const unsigned int EcalDigiProducer::m_readoutFrameSize
private

Definition at line 145 of file EcalDigiProducer.h.

◆ m_useLCcorrection

bool EcalDigiProducer::m_useLCcorrection
private

Definition at line 138 of file EcalDigiProducer.h.

Referenced by checkCalibrations().

◆ randomEngine_

CLHEP::HepRandomEngine* EcalDigiProducer::randomEngine_ = nullptr
private

Definition at line 195 of file EcalDigiProducer.h.

Referenced by accumulateCaloHits(), finalizeEvent(), and initializeEvent().