#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) | |
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 42 of file DataMixingEMDigiWorker.h.
|
private |
Definition at line 87 of file DataMixingEMDigiWorker.h.
|
private |
Definition at line 88 of file DataMixingEMDigiWorker.h.
|
private |
Definition at line 89 of file DataMixingEMDigiWorker.h.
DataMixingEMDigiWorker::DataMixingEMDigiWorker | ( | ) |
Definition at line 36 of file DataMixingEMDigiWorker.cc.
|
explicit |
standard constructor
Definition at line 39 of file DataMixingEMDigiWorker.cc.
References EBDigiCollectionDM_, EBPileInputTag_, EBProducerSig_, EEDigiCollectionDM_, EEPileInputTag_, EEProducerSig_, ESDigiCollectionDM_, 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 177 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 77 of file DataMixingEMDigiWorker.cc.
References edm::DataFrameContainer::begin(), gather_cfg::cout, EBdigiCollectionSig_, EBDigiStorage_, EBProducerSig_, EEDigiStorage_, EEProducerSig_, edm::DataFrameContainer::end(), ESDigiStorage_, ESProducerSig_, edm::Event::getByLabel(), edm::EventBase::id(), edm::InputTag::label(), 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 622 of file DataMixingEMDigiWorker.cc.
References cond::rpcobgas::detid, 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 591 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 263 of file DataMixingEMDigiWorker.cc.
References ecalMGPA::adc(), edm::DataFrame::begin(), data, EBDigiCollectionDM_, EBDigiStorage_, EEDigiCollectionDM_, EEDigiStorage_, ESDigiCollectionDM_, ESDigiStorage_, EcalDataFrame::frame(), ecalMGPA::gainId(), GetGainRatios(), GetPedestals(), max(), bookConverter::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 83 of file DataMixingEMDigiWorker.h.
Referenced by DataMixingEMDigiWorker(), and putEM().
|
private |
Definition at line 75 of file DataMixingEMDigiWorker.h.
Referenced by addEMSignals().
|
private |
Definition at line 91 of file DataMixingEMDigiWorker.h.
Referenced by addEMPileups(), addEMSignals(), and putEM().
|
private |
Definition at line 79 of file DataMixingEMDigiWorker.h.
Referenced by addEMPileups(), and DataMixingEMDigiWorker().
|
private |
Definition at line 71 of file DataMixingEMDigiWorker.h.
Referenced by addEMSignals(), and DataMixingEMDigiWorker().
|
private |
Definition at line 84 of file DataMixingEMDigiWorker.h.
Referenced by DataMixingEMDigiWorker(), and putEM().
|
private |
Definition at line 76 of file DataMixingEMDigiWorker.h.
|
private |
Definition at line 92 of file DataMixingEMDigiWorker.h.
Referenced by addEMPileups(), addEMSignals(), and putEM().
|
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 addEMSignals(), and DataMixingEMDigiWorker().
|
private |
Definition at line 85 of file DataMixingEMDigiWorker.h.
Referenced by DataMixingEMDigiWorker(), and putEM().
|
private |
Definition at line 77 of file DataMixingEMDigiWorker.h.
|
private |
Definition at line 93 of file DataMixingEMDigiWorker.h.
Referenced by addEMPileups(), addEMSignals(), and putEM().
|
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 addEMSignals(), and DataMixingEMDigiWorker().
|
private |
Definition at line 98 of file DataMixingEMDigiWorker.h.
Referenced by Mixins._Labelable::_findDependencies(), Mixins._TypedParameterizable::dumpPython(), and Mixins._Labelable::setLabel().