Public Member Functions | |
CalibratedElectronProducerT (const edm::ParameterSet &) | |
void | produce (edm::Event &, const edm::EventSetup &) override |
~CalibratedElectronProducerT () override | |
Public Member Functions inherited from edm::stream::EDProducer<> | |
EDProducer ()=default | |
bool | hasAbilityToProduceInLumis () const final |
bool | hasAbilityToProduceInRuns () const final |
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
Private Member Functions | |
void | setSemiDetRandomSeed (const edm::Event &iEvent, const T &obj, size_t nrObjs, size_t objNr) |
Private Attributes | |
edm::EDGetTokenT< edm::View< T > > | electronToken_ |
ElectronEnergyCalibrator | energyCorrector_ |
EpCombinationTool | epCombinationTool_ |
bool | produceCalibratedObjs_ |
edm::EDGetTokenT< EcalRecHitCollection > | recHitCollectionEBToken_ |
edm::EDGetTokenT< EcalRecHitCollection > | recHitCollectionEEToken_ |
std::unique_ptr< TRandom > | semiDeterministicRng_ |
Static Private Attributes | |
static const std::vector< int > | valMapsToStore_ |
Additional Inherited Members | |
Public Types inherited from edm::stream::EDProducer<> | |
typedef CacheContexts< T... > | CacheTypes |
typedef CacheTypes::GlobalCache | GlobalCache |
typedef AbilityChecker< T... > | HasAbility |
typedef CacheTypes::LuminosityBlockCache | LuminosityBlockCache |
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache > | LuminosityBlockContext |
typedef CacheTypes::LuminosityBlockSummaryCache | LuminosityBlockSummaryCache |
typedef CacheTypes::RunCache | RunCache |
typedef RunContextT< RunCache, GlobalCache > | RunContext |
typedef CacheTypes::RunSummaryCache | RunSummaryCache |
Definition at line 38 of file CalibratedElectronProducers.cc.
|
explicit |
Definition at line 104 of file CalibratedElectronProducers.cc.
References CalibratedElectronProducerT< T >::energyCorrector_, edm::ParameterSet::getParameter(), ElectronEnergyCalibrator::initPrivateRng(), EGEnergySysIndex::name(), CalibratedElectronProducerT< T >::produceCalibratedObjs_, CalibratedElectronProducerT< T >::semiDeterministicRng_, ElectronEnergyCalibrator::setMinEt(), and CalibratedElectronProducerT< T >::valMapsToStore_.
|
inlineoverride |
|
static |
Definition at line 127 of file CalibratedElectronProducers.cc.
References edm::ParameterSetDescription::add(), edm::ConfigurationDescriptions::addWithDefaultLabel(), EpCombinationTool::makePSetDescription(), EGEnergySysIndex::name(), AlCaHLTBitMon_QueryRunRegistry::string, and CalibratedElectronProducerT< T >::valMapsToStore_.
Referenced by CalibratedElectronProducerT< T >::~CalibratedElectronProducerT().
|
override |
Definition at line 146 of file CalibratedElectronProducers.cc.
References ElectronEnergyCalibrator::calibrate(), ElectronEnergyCalibrator::DATA, CalibratedElectronProducerT< T >::electronToken_, CalibratedElectronProducerT< T >::energyCorrector_, CalibratedElectronProducerT< T >::epCombinationTool_, edm::Event::getByToken(), cmsBatch::handle, edm::EventBase::id(), edm::EventBase::isRealData(), EGEnergySysIndex::kNrSysErrs, ElectronEnergyCalibrator::MC, eostools::move(), EGEnergySysIndex::name(), MillePedeFileConverter_cfg::out, CalibratedElectronProducerT< T >::produceCalibratedObjs_, edm::Handle< T >::product(), edm::Event::put(), CalibratedElectronProducerT< T >::recHitCollectionEBToken_, CalibratedElectronProducerT< T >::recHitCollectionEEToken_, mps_update::results, edm::EventID::run(), CalibratedElectronProducerT< T >::semiDeterministicRng_, EpCombinationTool::setEventContent(), CalibratedElectronProducerT< T >::setSemiDetRandomSeed(), edm::Event::size(), edm::Event::streamID(), and CalibratedElectronProducerT< T >::valMapsToStore_.
Referenced by CalibratedElectronProducerT< T >::~CalibratedElectronProducerT().
|
private |
Definition at line 198 of file CalibratedElectronProducers.cc.
References egamma::getRandomSeedFromObj(), egamma::getRandomSeedFromSC(), and CalibratedElectronProducerT< T >::semiDeterministicRng_.
Referenced by CalibratedElectronProducerT< T >::produce(), and CalibratedElectronProducerT< T >::~CalibratedElectronProducerT().
|
private |
Definition at line 49 of file CalibratedElectronProducers.cc.
Referenced by CalibratedElectronProducerT< T >::produce().
|
private |
Definition at line 52 of file CalibratedElectronProducers.cc.
Referenced by CalibratedElectronProducerT< T >::CalibratedElectronProducerT(), and CalibratedElectronProducerT< T >::produce().
|
private |
Definition at line 51 of file CalibratedElectronProducers.cc.
Referenced by CalibratedElectronProducerT< T >::produce().
|
private |
Definition at line 56 of file CalibratedElectronProducers.cc.
Referenced by CalibratedElectronProducerT< T >::CalibratedElectronProducerT(), and CalibratedElectronProducerT< T >::produce().
|
private |
Definition at line 54 of file CalibratedElectronProducers.cc.
Referenced by CalibratedElectronProducerT< T >::produce().
|
private |
Definition at line 55 of file CalibratedElectronProducers.cc.
Referenced by CalibratedElectronProducerT< T >::produce().
|
private |
Definition at line 53 of file CalibratedElectronProducers.cc.
Referenced by CalibratedElectronProducerT< T >::CalibratedElectronProducerT(), CalibratedElectronProducerT< T >::produce(), and CalibratedElectronProducerT< T >::setSemiDetRandomSeed().
|
staticprivate |
Definition at line 57 of file CalibratedElectronProducers.cc.
Referenced by CalibratedElectronProducerT< T >::CalibratedElectronProducerT(), CalibratedElectronProducerT< T >::fillDescriptions(), and CalibratedElectronProducerT< T >::produce().