#include <PFElectronTranslator.h>
Public Types | |
typedef std::vector< edm::Handle< edm::ValueMap< double > > > | IsolationValueMaps |
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 |
Public Types inherited from edm::stream::EDProducerBase | |
typedef EDProducerAdaptorBase | ModuleType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Public Member Functions | |
PFElectronTranslator (const edm::ParameterSet &) | |
virtual void | produce (edm::Event &, const edm::EventSetup &) override |
~PFElectronTranslator () | |
Public Member Functions inherited from edm::stream::EDProducer<> | |
EDProducer ()=default | |
Public Member Functions inherited from edm::stream::EDProducerBase | |
EDProducerBase () | |
ModuleDescription const & | moduleDescription () const |
virtual | ~EDProducerBase () |
Public Member Functions inherited from edm::ProducerBase | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
std::vector< edm::ProductResolverIndex > const & | indiciesForPutProducts (BranchType iBranchType) const |
ProducerBase () | |
void | registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &) |
std::function< void(BranchDescription const &)> | registrationCallback () const |
used by the fwk to register list of products More... | |
void | resolvePutIndicies (BranchType iBranchType, std::unordered_multimap< std::string, edm::ProductResolverIndex > const &iIndicies, std::string const &moduleLabel) |
virtual | ~ProducerBase () noexcept(false) |
Public Member Functions inherited from edm::EDConsumerBase | |
std::vector< ConsumesInfo > | consumesInfo () const |
void | convertCurrentProcessAlias (std::string const &processName) |
Convert "@currentProcess" in InputTag process names to the actual current process name. More... | |
EDConsumerBase () | |
EDConsumerBase (EDConsumerBase const &)=delete | |
EDConsumerBase (EDConsumerBase &&)=default | |
ProductResolverIndexAndSkipBit | indexFrom (EDGetToken, BranchType, TypeID const &) const |
void | itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
void | itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const |
std::vector< ProductResolverIndexAndSkipBit > const & | itemsToGetFrom (BranchType iType) const |
void | labelsForToken (EDGetToken iToken, Labels &oLabels) const |
void | modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
virtual | ~EDConsumerBase () noexcept(false) |
Additional Inherited Members | |
Static Public Member Functions inherited from edm::stream::EDProducerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
Definition at line 23 of file PFElectronTranslator.h.
typedef std::vector< edm::Handle< edm::ValueMap<double> > > PFElectronTranslator::IsolationValueMaps |
Definition at line 31 of file PFElectronTranslator.h.
|
explicit |
Definition at line 22 of file PFElectronTranslator.cc.
References checkStatusFlag_, emptyIsOk_, edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), GsfElectronCollection_, GsfElectronCoreCollection_, inputTagGSFTracks_, inputTagIsoVals_, inputTagPFCandidateElectrons_, inputTagPFCandidates_, MVACut_, PFBasicClusterCollection_, PFMVAValueMap_, PFPreshowerClusterCollection_, PFSCValueMap_, PFSuperClusterCollection_, AlCaHLTBitMon_QueryRunRegistry::string, and gedGsfElectrons_cfi::useIsolationValues.
PFElectronTranslator::~PFElectronTranslator | ( | ) |
Definition at line 72 of file PFElectronTranslator.cc.
|
private |
Definition at line 528 of file PFElectronTranslator.cc.
References reco::Candidate::begin(), reco::PFCandidate::elementsInBlocks(), reco::Candidate::end(), and reco::PFBlockElement::index().
Referenced by produce().
|
private |
Definition at line 285 of file PFElectronTranslator.cc.
References reco::CaloCluster::algo(), reco::CaloCluster::caloID(), reco::PFBlockElement::clusterRef(), reco::CaloCluster::hitsAndFractions(), edm::Ref< C, T, F >::isNull(), reco::CaloCluster::position(), reco::PFCandidate::rawEcalEnergy(), and reco::CaloCluster::seed().
Referenced by produce().
|
private |
Definition at line 317 of file PFElectronTranslator.cc.
References basicClusterPtr_, basicClusters_, GsfTrackRef_, and findQualityFiles::size.
Referenced by produce().
|
private |
Definition at line 566 of file PFElectronTranslator.cc.
References gsfElectronCoreRefs_, GsfTrackRef_, and findQualityFiles::size.
Referenced by produce().
|
private |
Definition at line 552 of file PFElectronTranslator.cc.
References GsfTrackRef_, kfTrackRef_, scMap_, reco::GsfElectronCore::setCtfTrack(), and reco::GsfElectronCore::setParentSuperCluster().
Referenced by produce().
|
private |
Definition at line 587 of file PFElectronTranslator.cc.
References reco::GsfElectron::addAmbiguousGsfTrack(), ambiguousGsfTracks_, CandidatePtr_, reco::GsfElectron::MvaInput::deltaEta, reco::PFCandidate::deltaP(), reco::GsfElectron::MvaInput::earlyBrem, reco::PFCandidate::electronExtraRef(), reco::GsfElectron::MvaInput::etOutsideMustache, gsfElectronCoreRefs_, gsfPFCandidateIndex_, GsfTrackRef_, reco::GsfElectron::MvaInput::hadEnergy, reco::GsfElectron::MvaInput::lateBrem, reco::Mustache::MustacheID(), reco::PFCandidateElectronExtra::MVA_DeltaEtaTrackCluster, reco::PFCandidate::mva_e_pi(), reco::GsfElectron::MvaOutput::mva_e_pi, reco::PFCandidateElectronExtra::MVA_FirstBrem, reco::PFCandidateElectronExtra::MVA_LateBrem, reco::GsfElectron::MvaInput::nClusterOutsideMustache, reco::LeafCandidate::p4(), reco::GsfElectron::P4_PFLOW_COMBINATION, reco::GsfElectron::setMvaInput(), reco::GsfElectron::setMvaOutput(), reco::GsfElectron::setP4(), reco::GsfElectron::setPfIsolationVariables(), reco::GsfElectron::MvaInput::sigmaEtaEta, findQualityFiles::size, reco::GsfElectron::MvaOutput::status, reco::GsfElectron::PflowIsolationVariables::sumChargedHadronPt, reco::GsfElectron::PflowIsolationVariables::sumNeutralHadronEt, reco::GsfElectron::PflowIsolationVariables::sumPhotonEt, and reco::GsfElectron::PflowIsolationVariables::sumPUPt.
Referenced by produce().
|
private |
Definition at line 310 of file PFElectronTranslator.cc.
References reco::PFBlockElement::clusterRef().
Referenced by produce().
|
private |
Definition at line 336 of file PFElectronTranslator.cc.
References GsfTrackRef_, preshowerClusterPtr_, preshowerClusters_, and findQualityFiles::size.
Referenced by produce().
|
private |
Definition at line 355 of file PFElectronTranslator.cc.
References GsfTrackRef_, scMap_, and findQualityFiles::size.
Referenced by produce().
|
private |
Definition at line 438 of file PFElectronTranslator.cc.
References reco::SuperCluster::addCluster(), reco::CaloCluster::addHitAndFraction(), reco::SuperCluster::addPreshowerCluster(), basicClusterPtr_, basicClusters_, MillePedeFileConverter_cfg::e, gsfPFCandidateIndex_, GsfTrackRef_, pfClusters_, PFClusterWidthAlgo::pflowEtaWidth(), PFClusterWidthAlgo::pflowPhiWidth(), RecoTauValidation_cfi::posX, RecoTauValidation_cfi::posY, preshowerClusterPtr_, reco::SuperCluster::rawEnergy(), reco::SuperCluster::setEtaWidth(), reco::SuperCluster::setPhiWidth(), reco::SuperCluster::setPreshowerEnergy(), and reco::SuperCluster::setSeed().
Referenced by produce().
|
private |
Definition at line 252 of file PFElectronTranslator.cc.
References emptyIsOk_, runEdmFileComparison::found, and edm::Event::getByLabel().
Referenced by fillMVAValueMap(), and produce().
|
private |
Definition at line 268 of file PFElectronTranslator.cc.
References Exception, runEdmFileComparison::found, and edm::Event::getByLabel().
Referenced by fillMVAValueMap(), and fillSCRefValueMap().
|
private |
Definition at line 367 of file PFElectronTranslator.cc.
References reco::PFCandidate::e, fetchCandidateCollection(), fetchGsfCollection(), gsfMvaMap_, reco::PFCandidate::gsfTrackRef(), gedGsfElectronCores_cfi::gsfTracks, mps_fire::i, inputTagGSFTracks_, inputTagPFCandidateElectrons_, edm::helper::Filler< Map >::insert(), edm::Ref< C, T, F >::isNull(), reco::PFCandidate::mva_e_pi(), reco::PFCandidate::particleId(), slimmedMuons_cfi::pfCandidates, mps_update::status, and MuonErrorMatrixValues_cff::values.
Referenced by produce().
|
private |
Definition at line 411 of file PFElectronTranslator.cc.
References fetchGsfCollection(), gedGsfElectronCores_cfi::gsfTracks, inputTagGSFTracks_, edm::helper::Filler< Map >::insert(), scMap_, and MuonErrorMatrixValues_cff::values.
Referenced by produce().
|
private |
|
private |
Definition at line 576 of file PFElectronTranslator.cc.
References reco::PFBlockElementGsfTrack::GsftrackRefPF().
Referenced by produce().
|
overridevirtual |
Definition at line 74 of file PFElectronTranslator.cc.
References ambiguousGsfTracks_, basicClusterPtr_, basicClusters_, CandidatePtr_, checkStatusFlag_, correspondingDaughterCandidate(), createBasicCluster(), createBasicClusterPtrs(), createGsfElectronCoreRefs(), createGsfElectronCores(), createGsfElectrons(), createPreshowerCluster(), createPreshowerClusterPtrs(), createSuperClusterGsfMapRefs(), createSuperClusters(), reco::PFCandidate::e, reco::PFBlockElement::ECAL, reco::PFCandidate::electronExtraRef(), allElectronIsolations_cfi::elements, reco::PFCandidate::elementsInBlocks(), fetchCandidateCollection(), fillMVAValueMap(), fillSCRefValueMap(), getAmbiguousGsfTracks(), edm::Event::getByLabel(), reco::PFBlockElement::GSF, GsfElectronCollection_, GsfElectronCoreCollection_, gsfElectronCoreRefs_, gsfPFCandidateIndex_, reco::PFCandidate::gsfTrackRef(), GsfTrackRef_, mps_fire::i, inputTagIsoVals_, inputTagPFCandidates_, edm::Ref< C, T, F >::isNull(), electronProducer_cff::isolationValues, kfTrackRef_, eostools::move(), reco::PFCandidate::mva_e_pi(), MVACut_, reco::PFCandidate::particleId(), PFBasicClusterCollection_, slimmedMuons_cfi::pfCandidates, pfClusters_, PFMVAValueMap_, PFPreshowerClusterCollection_, PFSCValueMap_, PFSuperClusterCollection_, preshowerClusterPtr_, preshowerClusters_, reco::PFBlockElement::PS1, reco::PFBlockElement::PS2, edm::Event::put(), scMap_, reco::PFCandidateElectronExtra::Selected, mps_update::status, superClusters_, reco::PFCandidate::trackRef(), and reco::PFBlockElement::type().
|
private |
Definition at line 110 of file PFElectronTranslator.h.
Referenced by createGsfElectrons(), and produce().
|
private |
Definition at line 120 of file PFElectronTranslator.h.
Referenced by createBasicClusterPtrs(), createSuperClusters(), and produce().
|
private |
Definition at line 112 of file PFElectronTranslator.h.
Referenced by createBasicClusterPtrs(), createSuperClusters(), and produce().
|
private |
Definition at line 106 of file PFElectronTranslator.h.
Referenced by createGsfElectrons(), and produce().
|
private |
Definition at line 100 of file PFElectronTranslator.h.
Referenced by PFElectronTranslator(), and produce().
|
private |
Definition at line 131 of file PFElectronTranslator.h.
Referenced by fetchCandidateCollection(), and PFElectronTranslator().
|
private |
Definition at line 98 of file PFElectronTranslator.h.
Referenced by PFElectronTranslator(), and produce().
|
private |
Definition at line 97 of file PFElectronTranslator.h.
Referenced by PFElectronTranslator(), and produce().
|
private |
Definition at line 124 of file PFElectronTranslator.h.
Referenced by createGsfElectronCoreRefs(), createGsfElectrons(), and produce().
|
private |
Definition at line 129 of file PFElectronTranslator.h.
Referenced by fillMVAValueMap().
|
private |
Definition at line 126 of file PFElectronTranslator.h.
Referenced by createGsfElectrons(), createSuperClusters(), and produce().
|
private |
Definition at line 104 of file PFElectronTranslator.h.
Referenced by createBasicClusterPtrs(), createGsfElectronCoreRefs(), createGsfElectronCores(), createGsfElectrons(), createPreshowerClusterPtrs(), createSuperClusterGsfMapRefs(), createSuperClusters(), and produce().
|
private |
Definition at line 90 of file PFElectronTranslator.h.
Referenced by fillMVAValueMap(), fillSCRefValueMap(), and PFElectronTranslator().
|
private |
Definition at line 91 of file PFElectronTranslator.h.
Referenced by PFElectronTranslator(), and produce().
|
private |
Definition at line 89 of file PFElectronTranslator.h.
Referenced by fillMVAValueMap(), and PFElectronTranslator().
|
private |
Definition at line 88 of file PFElectronTranslator.h.
Referenced by PFElectronTranslator(), and produce().
|
private |
Definition at line 108 of file PFElectronTranslator.h.
Referenced by createGsfElectronCores(), and produce().
|
private |
Definition at line 99 of file PFElectronTranslator.h.
Referenced by PFElectronTranslator(), and produce().
|
private |
Definition at line 92 of file PFElectronTranslator.h.
Referenced by PFElectronTranslator(), and produce().
|
private |
Definition at line 114 of file PFElectronTranslator.h.
Referenced by createSuperClusters(), and produce().
|
private |
Definition at line 95 of file PFElectronTranslator.h.
Referenced by PFElectronTranslator(), and produce().
|
private |
Definition at line 93 of file PFElectronTranslator.h.
Referenced by PFElectronTranslator(), and produce().
|
private |
Definition at line 96 of file PFElectronTranslator.h.
Referenced by PFElectronTranslator(), and produce().
|
private |
Definition at line 94 of file PFElectronTranslator.h.
Referenced by PFElectronTranslator(), and produce().
|
private |
Definition at line 122 of file PFElectronTranslator.h.
Referenced by createPreshowerClusterPtrs(), createSuperClusters(), and produce().
|
private |
Definition at line 116 of file PFElectronTranslator.h.
Referenced by createPreshowerClusterPtrs(), and produce().
|
private |
Definition at line 128 of file PFElectronTranslator.h.
Referenced by createGsfElectronCores(), createSuperClusterGsfMapRefs(), fillSCRefValueMap(), and produce().
|
private |
Definition at line 118 of file PFElectronTranslator.h.
Referenced by produce().