#include <DataMixingEMDigiWorker.h>
Public Member Functions | |
void | addEMPileups (const int bcr, const edm::EventPrincipal *, unsigned int EventId, const edm::EventSetup &ES, ModuleCallingContext const *) |
void | addEMSignals (const edm::Event &e, const edm::EventSetup &ES) |
DataMixingEMDigiWorker () | |
DataMixingEMDigiWorker (const edm::ParameterSet &ps, edm::ConsumesCollector &&iC) | |
void | putEM (edm::Event &e, const edm::EventSetup &ES) |
virtual | ~DataMixingEMDigiWorker () |
Private Types | |
typedef std::multimap< DetId, EBDataFrame > | EBDigiMap |
typedef std::multimap< DetId, EEDataFrame > | EEDigiMap |
typedef std::multimap< DetId, ESDataFrame > | ESDigiMap |
Private Member Functions | |
const std::vector< float > | GetGainRatios (const edm::EventSetup &ES, const DetId &detid) |
retrieve gain ratios for that detid [0]=g12, [1]=g6, [2]=g12 More... | |
const std::vector< float > | GetPedestals (const edm::EventSetup &ES, const DetId &detid) |
retrieve pedestals for that detid [0]=g12, [1]=g6, [2]=g12 More... | |
Definition at line 43 of file DataMixingEMDigiWorker.h.
|
private |
Definition at line 97 of file DataMixingEMDigiWorker.h.
|
private |
Definition at line 98 of file DataMixingEMDigiWorker.h.
|
private |
Definition at line 99 of file DataMixingEMDigiWorker.h.
DataMixingEMDigiWorker::DataMixingEMDigiWorker | ( | ) |
Definition at line 37 of file DataMixingEMDigiWorker.cc.
|
explicit |
standard constructor
Definition at line 40 of file DataMixingEMDigiWorker.cc.
References EBDigiCollectionDM_, EBDigiPileToken_, EBDigiToken_, EBPileInputTag_, EBProducerSig_, EEDigiCollectionDM_, EEDigiPileToken_, EEDigiToken_, EEPileInputTag_, EEProducerSig_, ESDigiCollectionDM_, ESDigiPileToken_, ESDigiToken_, ESPileInputTag_, ESProducerSig_, edm::ParameterSet::getParameter(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
virtual |
void DataMixingEMDigiWorker::addEMPileups | ( | const int | bcr, |
const edm::EventPrincipal * | ep, | ||
unsigned int | EventId, | ||
const edm::EventSetup & | ES, | ||
ModuleCallingContext const * | mcc | ||
) |
Definition at line 178 of file DataMixingEMDigiWorker.cc.
References edm::DataFrameContainer::begin(), EBDigiStorage_, EBPileInputTag_, EEDigiStorage_, EEPileInputTag_, edm::DataFrameContainer::end(), ESDigiStorage_, ESPileInputTag_, edm::EventPrincipal::id(), LogDebug, and edm::DataFrameContainer::size().
Referenced by edm::DataMixingModule::pileWorker().
void DataMixingEMDigiWorker::addEMSignals | ( | const edm::Event & | e, |
const edm::EventSetup & | ES | ||
) |
Definition at line 79 of file DataMixingEMDigiWorker.cc.
References edm::DataFrameContainer::begin(), EBDigiStorage_, EBDigiToken_, EEDigiStorage_, EEDigiToken_, edm::DataFrameContainer::end(), ESDigiStorage_, ESDigiToken_, edm::Event::getByToken(), edm::EventBase::id(), LogDebug, edm::Handle< T >::product(), and edm::DataFrameContainer::size().
Referenced by edm::DataMixingModule::addSignals().
|
private |
retrieve gain ratios for that detid [0]=g12, [1]=g6, [2]=g12
Definition at line 623 of file DataMixingEMDigiWorker.cc.
References EcalMGPAGainRatio::gain12Over6(), EcalMGPAGainRatio::gain6Over1(), and edm::EventSetup::get().
Referenced by putEM().
|
private |
retrieve pedestals for that detid [0]=g12, [1]=g6, [2]=g12
Definition at line 592 of file DataMixingEMDigiWorker.cc.
References EcalCondObjectContainer< T >::end(), EcalCondObjectContainer< T >::find(), edm::EventSetup::get(), EcalPedestal::mean_x1, EcalPedestal::mean_x12, EcalPedestal::mean_x6, and edm::ESHandle< class >::product().
Referenced by putEM().
void DataMixingEMDigiWorker::putEM | ( | edm::Event & | e, |
const edm::EventSetup & | ES | ||
) |
Definition at line 264 of file DataMixingEMDigiWorker.cc.
References ecalMGPA::adc(), edm::DataFrame::begin(), data, EBDigiCollectionDM_, EBDigiStorage_, EEDigiCollectionDM_, EEDigiStorage_, ESDigiCollectionDM_, ESDigiStorage_, EcalDataFrame::frame(), ecalMGPA::gainId(), GetGainRatios(), GetPedestals(), bookConverter::max, min(), edm::Event::put(), compare_using_db::sample, ESDataFrame::setSample(), EcalDataFrame::setSample(), ESDataFrame::size(), EcalDataFrame::size(), and findQualityFiles::size.
Referenced by edm::DataMixingModule::put().
|
private |
Definition at line 93 of file DataMixingEMDigiWorker.h.
Referenced by DataMixingEMDigiWorker(), and putEM().
|
private |
Definition at line 76 of file DataMixingEMDigiWorker.h.
|
private |
Definition at line 88 of file DataMixingEMDigiWorker.h.
Referenced by DataMixingEMDigiWorker().
|
private |
Definition at line 101 of file DataMixingEMDigiWorker.h.
Referenced by addEMPileups(), addEMSignals(), and putEM().
|
private |
Definition at line 84 of file DataMixingEMDigiWorker.h.
Referenced by addEMSignals(), and DataMixingEMDigiWorker().
|
private |
Definition at line 80 of file DataMixingEMDigiWorker.h.
Referenced by addEMPileups(), and DataMixingEMDigiWorker().
|
private |
Definition at line 72 of file DataMixingEMDigiWorker.h.
Referenced by DataMixingEMDigiWorker().
|
private |
Definition at line 94 of file DataMixingEMDigiWorker.h.
Referenced by DataMixingEMDigiWorker(), and putEM().
|
private |
Definition at line 77 of file DataMixingEMDigiWorker.h.
|
private |
Definition at line 89 of file DataMixingEMDigiWorker.h.
Referenced by DataMixingEMDigiWorker().
|
private |
Definition at line 102 of file DataMixingEMDigiWorker.h.
Referenced by addEMPileups(), addEMSignals(), and putEM().
|
private |
Definition at line 85 of file DataMixingEMDigiWorker.h.
Referenced by addEMSignals(), and DataMixingEMDigiWorker().
|
private |
Definition at line 81 of file DataMixingEMDigiWorker.h.
Referenced by addEMPileups(), and DataMixingEMDigiWorker().
|
private |
Definition at line 73 of file DataMixingEMDigiWorker.h.
Referenced by DataMixingEMDigiWorker().
|
private |
Definition at line 95 of file DataMixingEMDigiWorker.h.
Referenced by DataMixingEMDigiWorker(), and putEM().
|
private |
Definition at line 78 of file DataMixingEMDigiWorker.h.
|
private |
Definition at line 90 of file DataMixingEMDigiWorker.h.
Referenced by DataMixingEMDigiWorker().
|
private |
Definition at line 103 of file DataMixingEMDigiWorker.h.
Referenced by addEMPileups(), addEMSignals(), and putEM().
|
private |
Definition at line 86 of file DataMixingEMDigiWorker.h.
Referenced by addEMSignals(), and DataMixingEMDigiWorker().
|
private |
Definition at line 82 of file DataMixingEMDigiWorker.h.
Referenced by addEMPileups(), and DataMixingEMDigiWorker().
|
private |
Definition at line 74 of file DataMixingEMDigiWorker.h.
Referenced by DataMixingEMDigiWorker().
|
private |
Definition at line 108 of file DataMixingEMDigiWorker.h.
Referenced by Mixins._Labelable::_findDependencies(), and Mixins._Labelable::setLabel().