CMS 3D CMS Logo

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

#include <EcalDigiProducer_Ph2.h>

Inheritance diagram for EcalDigiProducer_Ph2:
DigiAccumulatorMixMod

Public Types

typedef EcalTDigitizer< EBDigitizerTraits_Ph2EBDigitizer_Ph2
 
typedef EBDigitizerTraits_Ph2::ElectronicsSim EcalElectronicsSim_Ph2
 

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
 
void beginRun (edm::Run const &run, edm::EventSetup const &setup) override
 
 EcalDigiProducer_Ph2 (const edm::ParameterSet &params, edm::ConsumesCollector &iC)
 
 EcalDigiProducer_Ph2 (const edm::ParameterSet &params, edm::ProducesCollector producesCollector, 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)
 
 ~EcalDigiProducer_Ph2 () override
 
- Public Member Functions inherited from DigiAccumulatorMixMod
 DigiAccumulatorMixMod ()
 
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)
 
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< EBHitResponse_Ph2m_EBResponse
 
std::unique_ptr< const EcalSimParameterMapm_ParameterMap
 

Private Types

typedef CaloTSamples< float, ecalPh2::sampleSizeEcalSamples_Ph2
 
typedef edm::Handle< std::vector< PCaloHit > > HitsHandle
 

Private Member Functions

void accumulateCaloHits (HitsHandle const &ebHandle, int bunchCrossing)
 
virtual void cacheEBDigis (const EBDigiCollectionPh2 *ebDigiPtr) const
 
void checkCalibrations (const edm::Event &event, const edm::EventSetup &eventSetup)
 
void checkGeometry (const edm::EventSetup &eventSetup)
 
void updateGeometry ()
 

Private Attributes

edm::ESGetToken< EcalADCToGeVConstant, EcalADCToGeVConstantRcdagcToken_
 
edm::ESGetToken< CaloGeometry, CaloGeometryRecordgeom_token_
 
edm::ESGetToken< EcalIntercalibConstants, EcalIntercalibConstantsRcdicalToken_
 
edm::ESGetToken< EcalLaserDbService, EcalLaserDbRecordlaserToken_
 
std::unique_ptr< EcalLiteDTUCoderm_APDCoder
 
const std::string m_apdDigiTag
 
std::unique_ptr< EBDigitizer_Ph2m_APDDigitizer
 
std::unique_ptr< EcalElectronicsSim< EcalLiteDTUCoder, EcalSamples_Ph2, EcalDataFrame_Ph2 > > m_APDElectronicsSim
 
std::unique_ptr< const APDSimParametersm_apdParameters
 
std::unique_ptr< EBHitResponse_Ph2m_APDResponse
 
const bool m_apdSeparateDigi
 
APDShape m_APDShape
 
std::unique_ptr< EBDigitizer_Ph2m_BarrelDigitizer
 
std::unique_ptr< EcalLiteDTUCoderm_Coder
 
std::array< std::unique_ptr< CorrelatedNoisifier< EcalCorrMatrix_Ph2 > >, 2 > m_EBCorrNoise
 
const std::string m_EBdigiCollection
 
const double m_EBs25notCont
 
EBShape m_EBShape
 
std::unique_ptr< EcalElectronicsSim_Ph2m_ElectronicsSim
 
const CaloGeometrym_Geometry
 
const std::string m_hitsProducerTag
 
const bool m_PreMix1
 
const bool m_PreMix2
 
const unsigned int m_readoutFrameSize
 
bool m_useLCcorrection
 
edm::ESGetToken< EcalLiteDTUPedestalsMap, EcalLiteDTUPedestalsRcdpedestalToken_
 
CLHEP::HepRandomEngine * randomEngine_ = nullptr
 

Detailed Description

Definition at line 51 of file EcalDigiProducer_Ph2.h.

Member Typedef Documentation

◆ EBDigitizer_Ph2

Definition at line 53 of file EcalDigiProducer_Ph2.h.

◆ EcalElectronicsSim_Ph2

Definition at line 54 of file EcalDigiProducer_Ph2.h.

◆ EcalSamples_Ph2

Definition at line 125 of file EcalDigiProducer_Ph2.h.

◆ HitsHandle

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

Definition at line 74 of file EcalDigiProducer_Ph2.h.

Constructor & Destructor Documentation

◆ EcalDigiProducer_Ph2() [1/2]

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

◆ EcalDigiProducer_Ph2() [2/2]

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

Definition at line 55 of file EcalDigiProducer_Ph2.cc.

57  m_APDShape(true),
58  m_EBShape(true),
59 
60  m_EBdigiCollection(params.getParameter<std::string>("EBdigiCollectionPh2")),
61 
62  m_hitsProducerTag(params.getParameter<std::string>("hitsProducer")),
63  m_useLCcorrection(params.getUntrackedParameter<bool>("UseLCcorrection")),
64  m_apdSeparateDigi(params.getParameter<bool>("apdSeparateDigi")),
65 
66  m_EBs25notCont(params.getParameter<double>("EBs25notContainment")),
67 
69 
70  m_ParameterMap(std::make_unique<EcalSimParameterMap>(params.getParameter<double>("simHitToPhotoelectronsBarrel"),
71  0, // endcap parameters not needed
72  params.getParameter<double>("photoelectronsToAnalogBarrel"),
73  0,
74  params.getParameter<double>("samplingFactor"),
75  params.getParameter<double>("timePhase"),
77  params.getParameter<int>("binOfMaximum"),
78  params.getParameter<bool>("doPhotostatistics"),
79  params.getParameter<bool>("syncPhase"))),
80 
81  m_apdDigiTag(params.getParameter<std::string>("apdDigiTag")),
82  m_apdParameters(std::make_unique<APDSimParameters>(params.getParameter<bool>("apdAddToBarrel"),
84  params.getParameter<double>("apdSimToPELow"),
85  params.getParameter<double>("apdSimToPEHigh"),
86  params.getParameter<double>("apdTimeOffset"),
87  params.getParameter<double>("apdTimeOffWidth"),
88  params.getParameter<bool>("apdDoPEStats"),
90  params.getParameter<std::vector<double>>("apdNonlParms"))),
91 
93  ? nullptr
94  : std::make_unique<EBHitResponse_Ph2>(
95  m_ParameterMap.get(), &m_EBShape, true, m_apdParameters.get(), &m_APDShape)),
96 
97  m_EBResponse(std::make_unique<EBHitResponse_Ph2>(m_ParameterMap.get(),
98  &m_EBShape,
99  false, // barrel
100  m_apdParameters.get(),
101  &m_APDShape)),
102 
103  m_PreMix1(params.getParameter<bool>("EcalPreMixStage1")),
104  m_PreMix2(params.getParameter<bool>("EcalPreMixStage2")),
105 
106  m_APDDigitizer(nullptr),
107  m_BarrelDigitizer(nullptr),
108  m_ElectronicsSim(nullptr),
109  m_Coder(nullptr),
110  m_APDElectronicsSim(nullptr),
111  m_APDCoder(nullptr),
112  m_Geometry(nullptr),
113  m_EBCorrNoise({{nullptr, nullptr}})
114 
115 {
116  iC.consumes<std::vector<PCaloHit>>(edm::InputTag(m_hitsProducerTag, "EcalHitsEB"));
117  pedestalToken_ = iC.esConsumes();
122 
123  const std::vector<double> ebCorMatG10Ph2 = params.getParameter<std::vector<double>>("EBCorrNoiseMatrixG10Ph2");
124  const std::vector<double> ebCorMatG01Ph2 = params.getParameter<std::vector<double>>("EBCorrNoiseMatrixG01Ph2");
125 
126  const bool applyConstantTerm = params.getParameter<bool>("applyConstantTerm");
127  const double rmsConstantTerm = params.getParameter<double>("ConstantTerm");
128 
129  const bool addNoise = params.getParameter<bool>("doENoise");
130  const bool cosmicsPhase = params.getParameter<bool>("cosmicsPhase");
131  const double cosmicsShift = params.getParameter<double>("cosmicsShift");
132 
133  // further phase for cosmics studies
134  if (cosmicsPhase) {
135  m_EBResponse->setPhaseShift(1. + cosmicsShift);
136  }
137 
138  EcalCorrMatrix_Ph2 ebMatrix[2];
139  const double errorCorrelation = 1.e-7;
140  assert(ebCorMatG10Ph2.size() == m_readoutFrameSize);
141  assert(ebCorMatG01Ph2.size() == m_readoutFrameSize);
142 
143  assert(errorCorrelation > std::abs(ebCorMatG10Ph2[0] - 1.0));
144  assert(errorCorrelation > std::abs(ebCorMatG01Ph2[0] - 1.0));
145 
146  for (unsigned int row(0); row != m_readoutFrameSize; ++row) {
147  assert(0 == row || 1. >= ebCorMatG10Ph2[row]);
148  assert(0 == row || 1. >= ebCorMatG01Ph2[row]);
149 
150  for (unsigned int column(0); column <= row; ++column) {
151  const unsigned int index(row - column);
152  ebMatrix[0](row, column) = ebCorMatG10Ph2[index];
153  ebMatrix[1](row, column) = ebCorMatG01Ph2[index];
154  }
155  }
156  m_EBCorrNoise[0] = std::make_unique<CorrelatedNoisifier<EcalCorrMatrix_Ph2>>(ebMatrix[0]);
157  m_EBCorrNoise[1] = std::make_unique<CorrelatedNoisifier<EcalCorrMatrix_Ph2>>(ebMatrix[1]);
158  m_Coder = std::make_unique<EcalLiteDTUCoder>(addNoise, m_PreMix1, m_EBCorrNoise[0].get(), m_EBCorrNoise[1].get());
160  std::make_unique<EcalElectronicsSim_Ph2>(m_ParameterMap.get(), m_Coder.get(), applyConstantTerm, rmsConstantTerm);
161 
162  if (m_apdSeparateDigi) {
163  m_APDCoder = std::make_unique<EcalLiteDTUCoder>(false, m_PreMix1, m_EBCorrNoise[0].get(), m_EBCorrNoise[1].get());
164 
165  m_APDElectronicsSim = std::make_unique<EcalElectronicsSim_Ph2>(
166  m_ParameterMap.get(), m_APDCoder.get(), applyConstantTerm, rmsConstantTerm);
167 
168  m_APDDigitizer = std::make_unique<EBDigitizer_Ph2>(m_APDResponse.get(), m_APDElectronicsSim.get(), false);
169  }
170 
171  m_BarrelDigitizer = std::make_unique<EBDigitizer_Ph2>(m_EBResponse.get(), m_ElectronicsSim.get(), addNoise);
172 }

◆ ~EcalDigiProducer_Ph2()

EcalDigiProducer_Ph2::~EcalDigiProducer_Ph2 ( )
override

Definition at line 174 of file EcalDigiProducer_Ph2.cc.

174 {}

Member Function Documentation

◆ accumulate() [1/2]

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

Implements DigiAccumulatorMixMod.

Definition at line 199 of file EcalDigiProducer_Ph2.cc.

199  {
200  // Step A: Get Inputs
202 
203  m_EBShape.setEventSetup(eventSetup); // need to set the eventSetup here, otherwise pre-mixing module will not wrk
204  m_APDShape.setEventSetup(eventSetup); //
205  edm::InputTag ebTag(m_hitsProducerTag, "EcalHitsEB");
206  e.getByLabel(ebTag, ebHandle);
207 
208  accumulateCaloHits(ebHandle, 0);
209 }

References accumulateCaloHits(), MillePedeFileConverter_cfg::e, m_APDShape, m_EBShape, m_hitsProducerTag, and EcalShapeBase::setEventSetup().

◆ accumulate() [2/2]

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

Implements DigiAccumulatorMixMod.

Definition at line 211 of file EcalDigiProducer_Ph2.cc.

213  {
214  // Step A: Get Inputs
216 
217  edm::InputTag ebTag(m_hitsProducerTag, "EcalHitsEB");
218  e.getByLabel(ebTag, ebHandle);
219 
220  accumulateCaloHits(ebHandle, e.bunchCrossing());
221 }

References accumulateCaloHits(), MillePedeFileConverter_cfg::e, and m_hitsProducerTag.

◆ accumulateCaloHits()

void EcalDigiProducer_Ph2::accumulateCaloHits ( HitsHandle const &  ebHandle,
int  bunchCrossing 
)
private

Definition at line 189 of file EcalDigiProducer_Ph2.cc.

189  {
190  if (ebHandle.isValid()) {
191  m_BarrelDigitizer->add(*ebHandle.product(), bunchCrossing, randomEngine_);
192 
193  if (m_apdSeparateDigi) {
194  m_APDDigitizer->add(*ebHandle.product(), bunchCrossing, randomEngine_);
195  }
196  }
197 }

References edm::HandleBase::isValid(), m_APDDigitizer, m_apdSeparateDigi, m_BarrelDigitizer, edm::Handle< T >::product(), and randomEngine_.

Referenced by accumulate().

◆ beginLuminosityBlock()

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

Reimplemented from DigiAccumulatorMixMod.

Definition at line 249 of file EcalDigiProducer_Ph2.cc.

249  {
251  if (!rng.isAvailable()) {
252  throw cms::Exception("Configuration") << "RandomNumberGenerator service is not available.\n"
253  "You must add the service in the configuration file\n"
254  "or remove the module that requires it.";
255  }
256  CLHEP::HepRandomEngine* engine = &rng->getEngine(lumi.index());
257 
258  if (nullptr != m_APDResponse)
259  m_APDResponse->initialize(engine);
260  m_EBResponse->initialize(engine);
261 }

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

◆ beginRun()

void EcalDigiProducer_Ph2::beginRun ( edm::Run const &  run,
edm::EventSetup const &  setup 
)
overridevirtual

◆ cacheEBDigis()

virtual void EcalDigiProducer_Ph2::cacheEBDigis ( const EBDigiCollectionPh2 ebDigiPtr) const
inlineprivatevirtual

Definition at line 72 of file EcalDigiProducer_Ph2.h.

72 {}

Referenced by finalizeEvent().

◆ checkCalibrations()

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

Definition at line 263 of file EcalDigiProducer_Ph2.cc.

263  {
264  // Pedestals from event setup
265  auto pedestals = &eventSetup.getData(pedestalToken_);
266 
267  m_Coder->setPedestals(pedestals);
268  if (nullptr != m_APDCoder)
269  m_APDCoder->setPedestals(pedestals);
270 
271  // Ecal Intercalibration Constants
272  auto ical = &eventSetup.getData(icalToken_);
273 
274  m_Coder->setIntercalibConstants(ical);
275  if (nullptr != m_APDCoder)
276  m_APDCoder->setIntercalibConstants(ical);
277 
278  m_EBResponse->setIntercal(ical);
279  if (nullptr != m_APDResponse)
280  m_APDResponse->setIntercal(ical);
281 
282  // Ecal LaserCorrection Constants
283  auto laser = &eventSetup.getData(laserToken_);
284 
285  const edm::TimeValue_t eventTimeValue = event.time().value();
286 
287  m_EBResponse->setEventTime(eventTimeValue);
288  m_EBResponse->setLaserConstants(laser, m_useLCcorrection);
289 
290  // ADC -> GeV Scale
291  auto agc = &eventSetup.getData(agcToken_);
292 
293  m_Coder->setGainRatios(ecalPh2::gains[0] / ecalPh2::gains[1]);
294  if (nullptr != m_APDCoder)
295  m_APDCoder->setGainRatios(ecalPh2::gains[0] / ecalPh2::gains[1]);
296 
297  const double EBscale((agc->getEBValue()) * ecalPh2::gains[1] * (ecalPh2::MAXADC)*m_EBs25notCont);
298 
299  LogDebug("EcalDigi") << " GeV/ADC = " << agc->getEBValue() << "\n"
300  << " notCont = " << m_EBs25notCont << "\n"
301  << " saturation for EB = " << EBscale << ", " << m_EBs25notCont;
302 
303  m_Coder->setFullScaleEnergy(EBscale);
304  if (nullptr != m_APDCoder)
305  m_APDCoder->setFullScaleEnergy(EBscale);
306 }

References agcToken_, ecalPh2::gains, edm::EventSetup::getData(), icalToken_, EcalCondDBWriter_cfi::laser, laserToken_, LogDebug, m_APDCoder, m_APDResponse, m_Coder, m_EBResponse, m_EBs25notCont, m_useLCcorrection, ecalPh2::MAXADC, and pedestalToken_.

Referenced by initializeEvent().

◆ checkGeometry()

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

Definition at line 308 of file EcalDigiProducer_Ph2.cc.

308  {
309  // TODO find a way to avoid doing this every event
310  edm::ESHandle<CaloGeometry> hGeometry = eventSetup.getHandle(geom_token_);
311  const CaloGeometry* pGeometry = &*hGeometry;
312 
313  if (pGeometry != m_Geometry) {
314  m_Geometry = pGeometry;
315  updateGeometry();
316  }
317 }

References geom_token_, edm::EventSetup::getHandle(), m_Geometry, and updateGeometry().

Referenced by initializeEvent().

◆ finalizeEvent()

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

Implements DigiAccumulatorMixMod.

Definition at line 223 of file EcalDigiProducer_Ph2.cc.

223  {
224  // Step B: Create empty output
225  std::unique_ptr<EBDigiCollectionPh2> apdResult(nullptr);
226  std::unique_ptr<EBDigiCollectionPh2> barrelResult = std::make_unique<EBDigiCollectionPh2>();
227  if (m_apdSeparateDigi) {
228  apdResult = std::make_unique<EBDigiCollectionPh2>();
229  }
230  // run the algorithm
231 
232  m_BarrelDigitizer->run(*barrelResult, randomEngine_);
233  cacheEBDigis(&*barrelResult);
234 
235  edm::LogInfo("DigiInfo") << "EB Digis: " << barrelResult->size();
236 
237  if (m_apdSeparateDigi) {
238  m_APDDigitizer->run(*apdResult, randomEngine_);
239  edm::LogInfo("DigiInfo") << "APD Digis: " << apdResult->size();
240  }
241 
242  // Step D: Put outputs into event
243 
244  event.put(std::move(barrelResult), m_EBdigiCollection);
245 
246  randomEngine_ = nullptr; // to prevent access outside event
247 }

References cacheEBDigis(), m_APDDigitizer, m_apdSeparateDigi, m_BarrelDigitizer, m_EBdigiCollection, eostools::move(), and randomEngine_.

◆ initializeEvent()

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

Implements DigiAccumulatorMixMod.

Definition at line 176 of file EcalDigiProducer_Ph2.cc.

176  {
178  randomEngine_ = &rng->getEngine(event.streamID());
179 
180  checkGeometry(eventSetup);
181  checkCalibrations(event, eventSetup);
182 
183  m_BarrelDigitizer->initializeHits();
184  if (m_apdSeparateDigi) {
185  m_APDDigitizer->initializeHits();
186  }
187 }

References checkCalibrations(), checkGeometry(), edm::RandomNumberGenerator::getEngine(), m_APDDigitizer, m_apdSeparateDigi, m_BarrelDigitizer, and randomEngine_.

◆ setEBNoiseSignalGenerator()

void EcalDigiProducer_Ph2::setEBNoiseSignalGenerator ( EcalBaseSignalGenerator noiseGenerator)

Definition at line 325 of file EcalDigiProducer_Ph2.cc.

325  {
326  m_BarrelDigitizer->setNoiseSignalGenerator(noiseGenerator);
327 }

References m_BarrelDigitizer.

◆ updateGeometry()

void EcalDigiProducer_Ph2::updateGeometry ( )
private

Member Data Documentation

◆ agcToken_

edm::ESGetToken<EcalADCToGeVConstant, EcalADCToGeVConstantRcd> EcalDigiProducer_Ph2::agcToken_
private

Definition at line 78 of file EcalDigiProducer_Ph2.h.

Referenced by checkCalibrations().

◆ geom_token_

edm::ESGetToken<CaloGeometry, CaloGeometryRecord> EcalDigiProducer_Ph2::geom_token_
private

Definition at line 80 of file EcalDigiProducer_Ph2.h.

Referenced by checkGeometry().

◆ icalToken_

edm::ESGetToken<EcalIntercalibConstants, EcalIntercalibConstantsRcd> EcalDigiProducer_Ph2::icalToken_
private

Definition at line 79 of file EcalDigiProducer_Ph2.h.

Referenced by checkCalibrations().

◆ laserToken_

edm::ESGetToken<EcalLaserDbService, EcalLaserDbRecord> EcalDigiProducer_Ph2::laserToken_
private

Definition at line 77 of file EcalDigiProducer_Ph2.h.

Referenced by checkCalibrations().

◆ m_APDCoder

std::unique_ptr<EcalLiteDTUCoder> EcalDigiProducer_Ph2::m_APDCoder
private

Definition at line 127 of file EcalDigiProducer_Ph2.h.

Referenced by checkCalibrations().

◆ m_apdDigiTag

const std::string EcalDigiProducer_Ph2::m_apdDigiTag
private

Definition at line 107 of file EcalDigiProducer_Ph2.h.

Referenced by EcalDigiProducer_Ph2().

◆ m_APDDigitizer

std::unique_ptr<EBDigitizer_Ph2> EcalDigiProducer_Ph2::m_APDDigitizer
private

Definition at line 119 of file EcalDigiProducer_Ph2.h.

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

◆ m_APDElectronicsSim

std::unique_ptr<EcalElectronicsSim<EcalLiteDTUCoder, EcalSamples_Ph2, EcalDataFrame_Ph2> > EcalDigiProducer_Ph2::m_APDElectronicsSim
private

Definition at line 126 of file EcalDigiProducer_Ph2.h.

◆ m_apdParameters

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

Definition at line 108 of file EcalDigiProducer_Ph2.h.

◆ m_APDResponse

std::unique_ptr<EBHitResponse_Ph2> EcalDigiProducer_Ph2::m_APDResponse
private

Definition at line 110 of file EcalDigiProducer_Ph2.h.

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

◆ m_apdSeparateDigi

const bool EcalDigiProducer_Ph2::m_apdSeparateDigi
private

◆ m_APDShape

APDShape EcalDigiProducer_Ph2::m_APDShape
private

Definition at line 89 of file EcalDigiProducer_Ph2.h.

Referenced by accumulate(), and beginRun().

◆ m_BarrelDigitizer

std::unique_ptr<EBDigitizer_Ph2> EcalDigiProducer_Ph2::m_BarrelDigitizer
private

◆ m_Coder

std::unique_ptr<EcalLiteDTUCoder> EcalDigiProducer_Ph2::m_Coder
private

Definition at line 123 of file EcalDigiProducer_Ph2.h.

Referenced by checkCalibrations().

◆ m_EBCorrNoise

std::array<std::unique_ptr<CorrelatedNoisifier<EcalCorrMatrix_Ph2> >, 2> EcalDigiProducer_Ph2::m_EBCorrNoise
private

Definition at line 131 of file EcalDigiProducer_Ph2.h.

◆ m_EBdigiCollection

const std::string EcalDigiProducer_Ph2::m_EBdigiCollection
private

Definition at line 92 of file EcalDigiProducer_Ph2.h.

Referenced by EcalDigiProducer_Ph2(), and finalizeEvent().

◆ m_EBResponse

std::unique_ptr<EBHitResponse_Ph2> EcalDigiProducer_Ph2::m_EBResponse
protected

Definition at line 113 of file EcalDigiProducer_Ph2.h.

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

◆ m_EBs25notCont

const double EcalDigiProducer_Ph2::m_EBs25notCont
private

Definition at line 99 of file EcalDigiProducer_Ph2.h.

Referenced by checkCalibrations().

◆ m_EBShape

EBShape EcalDigiProducer_Ph2::m_EBShape
private

Definition at line 90 of file EcalDigiProducer_Ph2.h.

Referenced by accumulate(), and beginRun().

◆ m_ElectronicsSim

std::unique_ptr<EcalElectronicsSim_Ph2> EcalDigiProducer_Ph2::m_ElectronicsSim
private

Definition at line 122 of file EcalDigiProducer_Ph2.h.

◆ m_Geometry

const CaloGeometry* EcalDigiProducer_Ph2::m_Geometry
private

Definition at line 129 of file EcalDigiProducer_Ph2.h.

Referenced by checkGeometry(), and updateGeometry().

◆ m_hitsProducerTag

const std::string EcalDigiProducer_Ph2::m_hitsProducerTag
private

Definition at line 93 of file EcalDigiProducer_Ph2.h.

Referenced by accumulate().

◆ m_ParameterMap

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

Definition at line 104 of file EcalDigiProducer_Ph2.h.

◆ m_PreMix1

const bool EcalDigiProducer_Ph2::m_PreMix1
private

Definition at line 116 of file EcalDigiProducer_Ph2.h.

◆ m_PreMix2

const bool EcalDigiProducer_Ph2::m_PreMix2
private

Definition at line 117 of file EcalDigiProducer_Ph2.h.

◆ m_readoutFrameSize

const unsigned int EcalDigiProducer_Ph2::m_readoutFrameSize
private

Definition at line 101 of file EcalDigiProducer_Ph2.h.

◆ m_useLCcorrection

bool EcalDigiProducer_Ph2::m_useLCcorrection
private

Definition at line 95 of file EcalDigiProducer_Ph2.h.

Referenced by checkCalibrations().

◆ pedestalToken_

edm::ESGetToken<EcalLiteDTUPedestalsMap, EcalLiteDTUPedestalsRcd> EcalDigiProducer_Ph2::pedestalToken_
private

Definition at line 76 of file EcalDigiProducer_Ph2.h.

Referenced by checkCalibrations().

◆ randomEngine_

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

Definition at line 133 of file EcalDigiProducer_Ph2.h.

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

EcalDigiProducer_Ph2::icalToken_
edm::ESGetToken< EcalIntercalibConstants, EcalIntercalibConstantsRcd > icalToken_
Definition: EcalDigiProducer_Ph2.h:79
EcalShapeBase::setEventSetup
void setEventSetup(const edm::EventSetup &evtSetup)
Definition: EcalShapeBase.cc:19
edm::RandomNumberGenerator::getEngine
virtual CLHEP::HepRandomEngine & getEngine(StreamID const &)=0
Use this engine in event methods.
EcalDigiProducer_Ph2::m_EBs25notCont
const double m_EBs25notCont
Definition: EcalDigiProducer_Ph2.h:99
EcalDigiProducer_Ph2::m_EBCorrNoise
std::array< std::unique_ptr< CorrelatedNoisifier< EcalCorrMatrix_Ph2 > >, 2 > m_EBCorrNoise
Definition: EcalDigiProducer_Ph2.h:131
ecalPh2::MAXADC
static constexpr unsigned int MAXADC
Definition: EcalConstants.h:14
CalibrationSummaryClient_cfi.params
params
Definition: CalibrationSummaryClient_cfi.py:14
ecalElectronicsSim_cff.applyConstantTerm
applyConstantTerm
Definition: ecalElectronicsSim_cff.py:6
CaloGeometryRecord
Definition: CaloGeometryRecord.h:30
HLT_FULL_cff.InputTag
InputTag
Definition: HLT_FULL_cff.py:89287
EcalDigiProducer_Ph2::accumulateCaloHits
void accumulateCaloHits(HitsHandle const &ebHandle, int bunchCrossing)
Definition: EcalDigiProducer_Ph2.cc:189
EcalDigiProducer_Ph2::randomEngine_
CLHEP::HepRandomEngine * randomEngine_
Definition: EcalDigiProducer_Ph2.h:133
CaloGeometry::getSubdetectorGeometry
const CaloSubdetectorGeometry * getSubdetectorGeometry(const DetId &id) const
access the subdetector geometry for the given subdetector directly
Definition: CaloGeometry.cc:34
cms::cuda::assert
assert(be >=bs)
ecalCosmicsSim_cff.cosmicsPhase
cosmicsPhase
Definition: ecalCosmicsSim_cff.py:4
EcalADCToGeVConstant
Definition: EcalADCToGeVConstant.h:13
edm::LogInfo
Log< level::Info, false > LogInfo
Definition: MessageLogger.h:125
EcalDigiProducer_Ph2::m_APDElectronicsSim
std::unique_ptr< EcalElectronicsSim< EcalLiteDTUCoder, EcalSamples_Ph2, EcalDataFrame_Ph2 > > m_APDElectronicsSim
Definition: EcalDigiProducer_Ph2.h:126
edm::ConsumesCollector::esConsumes
auto esConsumes()
Definition: ConsumesCollector.h:97
edm::Handle
Definition: AssociativeIterator.h:50
edm::Service::isAvailable
bool isAvailable() const
Definition: Service.h:40
EcalBarrel
Definition: EcalSubdetector.h:10
singleTopDQM_cfi.setup
setup
Definition: singleTopDQM_cfi.py:37
EcalDigiProducer_Ph2::pedestalToken_
edm::ESGetToken< EcalLiteDTUPedestalsMap, EcalLiteDTUPedestalsRcd > pedestalToken_
Definition: EcalDigiProducer_Ph2.h:76
EcalDigiProducer_Ph2::m_ElectronicsSim
std::unique_ptr< EcalElectronicsSim_Ph2 > m_ElectronicsSim
Definition: EcalDigiProducer_Ph2.h:122
EcalDigiProducer_Ph2::m_apdDigiTag
const std::string m_apdDigiTag
Definition: EcalDigiProducer_Ph2.h:107
EcalDigiProducer_Ph2::m_Coder
std::unique_ptr< EcalLiteDTUCoder > m_Coder
Definition: EcalDigiProducer_Ph2.h:123
EcalDigiProducer_Ph2::m_ParameterMap
std::unique_ptr< const EcalSimParameterMap > m_ParameterMap
Definition: EcalDigiProducer_Ph2.h:104
EcalDigiProducer_Ph2::m_BarrelDigitizer
std::unique_ptr< EBDigitizer_Ph2 > m_BarrelDigitizer
Definition: EcalDigiProducer_Ph2.h:120
EcalDigiProducer_Ph2::laserToken_
edm::ESGetToken< EcalLaserDbService, EcalLaserDbRecord > laserToken_
Definition: EcalDigiProducer_Ph2.h:77
CaloGeometry
Definition: CaloGeometry.h:21
EcalDigiProducer_Ph2::updateGeometry
void updateGeometry()
Definition: EcalDigiProducer_Ph2.cc:319
edm::ESHandle< CaloGeometry >
edm::ConsumesCollector::consumes
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
Definition: ConsumesCollector.h:55
EcalDigiProducer_Ph2::checkCalibrations
void checkCalibrations(const edm::Event &event, const edm::EventSetup &eventSetup)
Definition: EcalDigiProducer_Ph2.cc:263
EcalIntercalibConstants
EcalIntercalibConstantMap EcalIntercalibConstants
Definition: EcalIntercalibConstants.h:12
DigiAccumulatorMixMod::DigiAccumulatorMixMod
DigiAccumulatorMixMod()
Definition: DigiAccumulatorMixMod.cc:3
EcalCorrMatrix_Ph2
math::ErrorD< ecalPh2::sampleSize >::type EcalCorrMatrix_Ph2
Definition: EcalCorrelatedNoiseMatrix.h:9
EcalLaserDbRecord
Definition: EcalLaserDbRecord.h:19
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
EcalDigiProducer_Ph2::m_APDShape
APDShape m_APDShape
Definition: EcalDigiProducer_Ph2.h:89
ecalPh2::sampleSize
static constexpr unsigned int sampleSize
Definition: EcalConstants.h:12
LogDebug
#define LogDebug(id)
Definition: MessageLogger.h:223
ecal_dqm_sourceclient-live_cfg.EcalLaserDbService
EcalLaserDbService
Definition: ecal_dqm_sourceclient-live_cfg.py:65
EcalDigiProducer_Ph2::m_readoutFrameSize
const unsigned int m_readoutFrameSize
Definition: EcalDigiProducer_Ph2.h:101
EcalDigiProducer_Ph2::m_EBShape
EBShape m_EBShape
Definition: EcalDigiProducer_Ph2.h:90
EcalDigiProducer_Ph2::m_EBResponse
std::unique_ptr< EBHitResponse_Ph2 > m_EBResponse
Definition: EcalDigiProducer_Ph2.h:113
ecalCosmicsSim_cff.cosmicsShift
cosmicsShift
Definition: ecalCosmicsSim_cff.py:5
EcalDigiProducer_Ph2::agcToken_
edm::ESGetToken< EcalADCToGeVConstant, EcalADCToGeVConstantRcd > agcToken_
Definition: EcalDigiProducer_Ph2.h:78
edm::Service< edm::RandomNumberGenerator >
EcalDigiProducer_Ph2::m_EBdigiCollection
const std::string m_EBdigiCollection
Definition: EcalDigiProducer_Ph2.h:92
EcalDigiProducer_Ph2::m_useLCcorrection
bool m_useLCcorrection
Definition: EcalDigiProducer_Ph2.h:95
EcalDigiProducer_Ph2::m_apdParameters
std::unique_ptr< const APDSimParameters > m_apdParameters
Definition: EcalDigiProducer_Ph2.h:108
EcalDigiProducer_Ph2::EcalDigiProducer_Ph2
EcalDigiProducer_Ph2(const edm::ParameterSet &params, edm::ProducesCollector producesCollector, edm::ConsumesCollector &iC)
Definition: EcalDigiProducer_Ph2.cc:44
EcalDigiProducer_Ph2::geom_token_
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > geom_token_
Definition: EcalDigiProducer_Ph2.h:80
EcalDigiProducer_Ph2::checkGeometry
void checkGeometry(const edm::EventSetup &eventSetup)
Definition: EcalDigiProducer_Ph2.cc:308
edm::EventSetup::getHandle
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
Definition: EventSetup.h:148
edm::ProducesCollector::produces
ProductRegistryHelper::BranchAliasSetterT< ProductType > produces()
Definition: ProducesCollector.h:52
DetId::Ecal
Definition: DetId.h:27
get
#define get
edm::EventSetup::getData
bool getData(T &iHolder) const
Definition: EventSetup.h:120
EcalDigiProducer_Ph2::m_Geometry
const CaloGeometry * m_Geometry
Definition: EcalDigiProducer_Ph2.h:129
EcalDigiProducer_Ph2::m_APDCoder
std::unique_ptr< EcalLiteDTUCoder > m_APDCoder
Definition: EcalDigiProducer_Ph2.h:127
eostools.move
def move(src, dest)
Definition: eostools.py:511
EcalDigiProducer_Ph2::m_PreMix1
const bool m_PreMix1
Definition: EcalDigiProducer_Ph2.h:116
Exception
Definition: hltDiff.cc:246
EcalDigiProducer_Ph2::cacheEBDigis
virtual void cacheEBDigis(const EBDigiCollectionPh2 *ebDigiPtr) const
Definition: EcalDigiProducer_Ph2.h:72
EBDigiCollectionPh2
Definition: EcalDigiCollections.h:33
ecalPh2::gains
static constexpr float gains[NGAINS]
Definition: EcalConstants.h:9
EcalDigiProducer_Ph2::m_PreMix2
const bool m_PreMix2
Definition: EcalDigiProducer_Ph2.h:117
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
EcalDigiProducer_Ph2::m_APDDigitizer
std::unique_ptr< EBDigitizer_Ph2 > m_APDDigitizer
Definition: EcalDigiProducer_Ph2.h:119
funct::abs
Abs< T >::type abs(const T &t)
Definition: Abs.h:22
event
Definition: event.py:1
EcalDigiProducer_Ph2::m_hitsProducerTag
const std::string m_hitsProducerTag
Definition: EcalDigiProducer_Ph2.h:93
lumi
Definition: LumiSectionData.h:20
EcalIntercalibConstantsRcd
Definition: EcalIntercalibConstantsRcd.h:5
EcalADCToGeVConstantRcd
Definition: EcalADCToGeVConstantRcd.h:5
EcalDigiProducer_Ph2::m_apdSeparateDigi
const bool m_apdSeparateDigi
Definition: EcalDigiProducer_Ph2.h:97
edm::InputTag
Definition: InputTag.h:15
EcalCondDBWriter_cfi.laser
laser
Definition: EcalCondDBWriter_cfi.py:46
edm::TimeValue_t
unsigned long long TimeValue_t
Definition: Timestamp.h:28
EcalDigiProducer_Ph2::m_APDResponse
std::unique_ptr< EBHitResponse_Ph2 > m_APDResponse
Definition: EcalDigiProducer_Ph2.h:110
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37