Public Member Functions | |
CalibratedPhotonProducerT (const edm::ParameterSet &) | |
void | produce (edm::Event &, const edm::EventSetup &) override |
~CalibratedPhotonProducerT () 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 | |
PhotonEnergyCalibrator | energyCorrector_ |
edm::EDGetTokenT< edm::View< T > > | photonToken_ |
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 32 of file CalibratedPhotonProducers.cc.
|
explicit |
Definition at line 92 of file CalibratedPhotonProducers.cc.
References CalibratedPhotonProducerT< T >::energyCorrector_, edm::ParameterSet::getParameter(), PhotonEnergyCalibrator::initPrivateRng(), EGEnergySysIndex::name(), CalibratedPhotonProducerT< T >::produceCalibratedObjs_, CalibratedPhotonProducerT< T >::semiDeterministicRng_, PhotonEnergyCalibrator::setMinEt(), and CalibratedPhotonProducerT< T >::valMapsToStore_.
|
inlineoverride |
Definition at line 35 of file CalibratedPhotonProducers.cc.
References CalibratedPhotonProducerT< T >::fillDescriptions(), iEvent, GetRecoTauVFromDQM_MC_cff::obj, CalibratedPhotonProducerT< T >::produce(), and CalibratedPhotonProducerT< T >::setSemiDetRandomSeed().
|
static |
Definition at line 115 of file CalibratedPhotonProducers.cc.
References edm::ParameterSetDescription::add(), edm::ConfigurationDescriptions::addWithDefaultLabel(), EGEnergySysIndex::name(), AlCaHLTBitMon_QueryRunRegistry::string, and CalibratedPhotonProducerT< T >::valMapsToStore_.
Referenced by CalibratedPhotonProducerT< T >::~CalibratedPhotonProducerT().
|
override |
Definition at line 133 of file CalibratedPhotonProducers.cc.
References PhotonEnergyCalibrator::calibrate(), PhotonEnergyCalibrator::DATA, CalibratedPhotonProducerT< T >::energyCorrector_, edm::Event::getByToken(), cmsBatch::handle, edm::EventBase::id(), edm::EventBase::isRealData(), EGEnergySysIndex::kNrSysErrs, PhotonEnergyCalibrator::MC, eostools::move(), EGEnergySysIndex::name(), MillePedeFileConverter_cfg::out, CalibratedPhotonProducerT< T >::photonToken_, CalibratedPhotonProducerT< T >::produceCalibratedObjs_, edm::Handle< T >::product(), edm::Event::put(), CalibratedPhotonProducerT< T >::recHitCollectionEBToken_, CalibratedPhotonProducerT< T >::recHitCollectionEEToken_, mps_update::results, edm::EventID::run(), CalibratedPhotonProducerT< T >::semiDeterministicRng_, CalibratedPhotonProducerT< T >::setSemiDetRandomSeed(), edm::Event::size(), edm::Event::streamID(), and CalibratedPhotonProducerT< T >::valMapsToStore_.
Referenced by CalibratedPhotonProducerT< T >::~CalibratedPhotonProducerT().
|
private |
Definition at line 182 of file CalibratedPhotonProducers.cc.
References egamma::getRandomSeedFromObj(), egamma::getRandomSeedFromSC(), and CalibratedPhotonProducerT< T >::semiDeterministicRng_.
Referenced by CalibratedPhotonProducerT< T >::produce(), and CalibratedPhotonProducerT< T >::~CalibratedPhotonProducerT().
|
private |
Definition at line 43 of file CalibratedPhotonProducers.cc.
Referenced by CalibratedPhotonProducerT< T >::CalibratedPhotonProducerT(), and CalibratedPhotonProducerT< T >::produce().
|
private |
Definition at line 42 of file CalibratedPhotonProducers.cc.
Referenced by CalibratedPhotonProducerT< T >::produce().
|
private |
Definition at line 47 of file CalibratedPhotonProducers.cc.
Referenced by CalibratedPhotonProducerT< T >::CalibratedPhotonProducerT(), and CalibratedPhotonProducerT< T >::produce().
|
private |
Definition at line 45 of file CalibratedPhotonProducers.cc.
Referenced by CalibratedPhotonProducerT< T >::produce().
|
private |
Definition at line 46 of file CalibratedPhotonProducers.cc.
Referenced by CalibratedPhotonProducerT< T >::produce().
|
private |
Definition at line 44 of file CalibratedPhotonProducers.cc.
Referenced by CalibratedPhotonProducerT< T >::CalibratedPhotonProducerT(), CalibratedPhotonProducerT< T >::produce(), and CalibratedPhotonProducerT< T >::setSemiDetRandomSeed().
|
staticprivate |
Definition at line 49 of file CalibratedPhotonProducers.cc.
Referenced by CalibratedPhotonProducerT< T >::CalibratedPhotonProducerT(), CalibratedPhotonProducerT< T >::fillDescriptions(), and CalibratedPhotonProducerT< T >::produce().