Produces pat::Electron's. More...
#include "PhysicsTools/PatAlgos/interface/PATElectronProducer.h"
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
Static Public Member Functions inherited from edm::stream::EDProducerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Private Types | |
typedef edm::RefToBase< reco::GsfElectron > | ElectronBaseRef |
typedef std::vector< edm::Handle< edm::Association< reco::GenParticleCollection > > > | GenAssociations |
typedef std::vector< edm::Handle< edm::ValueMap< IsoDeposit > > > | IsoDepositMaps |
typedef std::pair< pat::IsolationKeys, edm::InputTag > | IsolationLabel |
typedef std::vector< IsolationLabel > | IsolationLabels |
typedef std::vector< edm::Handle< edm::ValueMap< double > > > | IsolationValueMaps |
typedef std::pair< std::string, edm::InputTag > | NameTag |
Private Member Functions | |
void | embedHighLevel (pat::Electron &anElectron, reco::GsfTrackRef track, reco::TransientTrack &tt, reco::Vertex &primaryVertex, bool primaryVertexIsValid, reco::BeamSpot &beamspot, bool beamspotIsValid) |
void | fillElectron (Electron &aElectron, const ElectronBaseRef &electronRef, const reco::CandidateBaseRef &baseRef, const GenAssociations &genMatches, const IsoDepositMaps &deposits, const bool pfId, const IsolationValueMaps &isolationValues, const IsolationValueMaps &isolationValuesNoPFId) const |
common electron filling, for both the standard and PF2PAT case More... | |
void | fillElectron2 (Electron &anElectron, const reco::CandidatePtr &candPtrForIsolation, const reco::CandidatePtr &candPtrForGenMatch, const reco::CandidatePtr &candPtrForLoader, const GenAssociations &genMatches, const IsoDepositMaps &deposits, const IsolationValueMaps &isolationValues) const |
template<typename T > | |
void | readIsolationLabels (const edm::ParameterSet &iConfig, const char *psetName, IsolationLabels &labels, std::vector< edm::EDGetTokenT< edm::ValueMap< T > > > &tokens) |
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 |
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 |
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) |
Produces pat::Electron's.
The PATElectronProducer produces analysis-level pat::Electron's starting from a collection of objects of reco::GsfElectron.
Definition at line 54 of file PATElectronProducer.h.
|
private |
Definition at line 110 of file PATElectronProducer.h.
|
private |
Definition at line 84 of file PATElectronProducer.h.
|
private |
Definition at line 111 of file PATElectronProducer.h.
|
private |
Definition at line 143 of file PATElectronProducer.h.
|
private |
Definition at line 144 of file PATElectronProducer.h.
|
private |
Definition at line 112 of file PATElectronProducer.h.
|
private |
Definition at line 154 of file PATElectronProducer.h.
|
explicit |
Definition at line 52 of file PATElectronProducer.cc.
References addEfficiencies_, addElecID_, addGenMatch_, addPuppiIsolation_, addResolutions_, edm::EDConsumerBase::consumes(), edm::EDConsumerBase::consumesCollector(), efficiencyLoader_, elecIDSrcs_, elecIDTokens_, Exception, edm::ParameterSet::existsAs(), genMatchTokens_, edm::ParameterSet::getParameter(), edm::ParameterSet::getParameterNamesForType(), isoDepositLabels_, isoDepositTokens_, isolationValueLabels_, isolationValueLabelsNoPFId_, isolationValueNoPFIdTokens_, isolationValueTokens_, cscdqm::h::names, PUPPIIsolation_charged_hadrons_, PUPPIIsolation_neutral_hadrons_, PUPPIIsolation_photons_, PUPPINoLeptonsIsolation_charged_hadrons_, PUPPINoLeptonsIsolation_neutral_hadrons_, PUPPINoLeptonsIsolation_photons_, readIsolationLabels(), resolutionLoader_, GlobalPosition_Frontier_DevDB_cff::tag, userDataHelper_, useUserData_, and edm::vector_transform().
PATElectronProducer::~PATElectronProducer | ( | ) |
Definition at line 191 of file PATElectronProducer.cc.
|
private |
Definition at line 1071 of file PATElectronProducer.cc.
References pat::Electron::BS2D, pat::Electron::BS3D, reco::BeamSpot::covariance3D(), DEFINE_FWK_MODULE, reco::BeamSpot::position(), pat::Electron::PV2D, pat::Electron::PV3D, mps_fire::result, pat::Electron::setDB(), IPTools::signedImpactParameter3D(), and IPTools::signedTransverseImpactParameter().
Referenced by produce().
|
static |
Definition at line 930 of file PATElectronProducer.cc.
References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), edm::ParameterSetDescription::addNode(), edm::ParameterSetDescription::addOptional(), pat::helper::KinResolutionsLoader::fillDescription(), pat::PATUserDataHelper< ObjectType >::fillDescription(), edm::ParameterSetDescription::ifValue(), or, edm::ParameterSetDescription::setAllowAnything(), edm::ParameterSetDescription::setComment(), and edm::ParameterDescriptionNode::setComment().
|
private |
common electron filling, for both the standard and PF2PAT case
Definition at line 749 of file PATElectronProducer.cc.
References addGenMatch_, pat::PATObject< ObjectType >::addGenParticleRef(), efficiencyLoader_, pat::Electron::embedBasicClusters(), embedBasicClusters_, embedGenMatch_, pat::PATObject< ObjectType >::embedGenParticle(), pat::Electron::embedGsfElectronCore(), embedGsfElectronCore_, pat::Electron::embedGsfTrack(), embedGsfTrack_, pat::Electron::embedPflowBasicClusters(), embedPflowBasicClusters_, pat::Electron::embedPflowPreshowerClusters(), embedPflowPreshowerClusters_, pat::Electron::embedPflowSuperCluster(), embedPflowSuperCluster_, pat::Electron::embedPreshowerClusters(), embedPreshowerClusters_, pat::Electron::embedSeedCluster(), embedSeedCluster_, pat::Electron::embedSuperCluster(), embedSuperCluster_, pat::Electron::embedTrack(), embedTrack_, pat::helper::EfficiencyLoader::enabled(), pat::helper::KinResolutionsLoader::enabled(), plotBeamSpotDB::first, mps_fire::i, edm::Ref< C, T, F >::isNull(), isoDepositLabels_, isolationValueLabels_, isolationValueLabelsNoPFId_, gen::n, pat::Electron::pfCandidateRef(), resolutionLoader_, pat::helper::EfficiencyLoader::setEfficiencies(), pat::Lepton< LeptonType >::setIsoDeposit(), pat::Lepton< LeptonType >::setIsolation(), pat::helper::KinResolutionsLoader::setResolutions(), source, and useParticleFlow_.
Referenced by produce().
|
private |
Definition at line 845 of file PATElectronProducer.cc.
References addGenMatch_, pat::PATObject< ObjectType >::addGenParticleRef(), edm::contains(), pat::EcalIso, efficiencyLoader_, pat::Electron::embedBasicClusters(), embedBasicClusters_, embedGenMatch_, pat::PATObject< ObjectType >::embedGenParticle(), pat::Electron::embedGsfElectronCore(), embedGsfElectronCore_, pat::Electron::embedGsfTrack(), embedGsfTrack_, pat::Electron::embedPflowBasicClusters(), embedPflowBasicClusters_, pat::Electron::embedPflowPreshowerClusters(), embedPflowPreshowerClusters_, pat::Electron::embedPflowSuperCluster(), embedPflowSuperCluster_, pat::Electron::embedPreshowerClusters(), embedPreshowerClusters_, pat::Electron::embedSeedCluster(), embedSeedCluster_, pat::Electron::embedSuperCluster(), embedSuperCluster_, pat::Electron::embedTrack(), embedTrack_, pat::helper::EfficiencyLoader::enabled(), pat::helper::KinResolutionsLoader::enabled(), plotBeamSpotDB::first, pat::HcalIso, mps_fire::i, edm::Ptr< T >::id(), isoDepositLabels_, isolationValueLabels_, gen::n, reco::GsfElectron::p4(), pat::Electron::pfCandidateRef(), resolutionLoader_, pat::Electron::setEcalDrivenMomentum(), pat::helper::EfficiencyLoader::setEfficiencies(), pat::Lepton< LeptonType >::setIsoDeposit(), pat::Lepton< LeptonType >::setIsolation(), reco::GsfElectron::setP4(), pat::helper::KinResolutionsLoader::setResolutions(), and pat::TrackIso.
Referenced by produce().
|
overridevirtual |
Definition at line 196 of file PATElectronProducer.cc.
References IPTools::absoluteImpactParameter3D(), addElecID_, addGenMatch_, addPFClusterIso_, addPuppiIsolation_, Reference_intrackfit_cff::barrel, beamLineToken_, ecalDrivenElectronSeedsParameters_cff::beamSpot, pat::helper::MultiIsolator::beginEvent(), TransientTrackBuilder::build(), CandIsolatorFromDeposits_cfi::deposits, reco::PFCandidate::e, DetId::Ecal, EcalBarrel, EcalEndcap, ecalPFClusterIsoT_, ecalTopology_, efficiencyLoader_, elecIDSrcs_, elecIDTokens_, genericTrackCleaner_cfi::electrons, electronToken_, embedBasicClusters_, embedGenMatch_, embedHighLevel(), embedHighLevelSelection_, pat::Electron::embedPFCandidate(), embedPFCandidate_, embedPflowBasicClusters_, pat::Electron::embedRecHits(), embedRecHits_, pat::helper::EfficiencyLoader::enabled(), pat::helper::KinResolutionsLoader::enabled(), pat::helper::MultiIsolator::enabled(), edm::SortedCollection< T, SORT >::end(), pat::helper::MultiIsolator::endEvent(), pat::helper::MultiIsolator::fill(), fillElectron(), fillElectron2(), edm::SortedCollection< T, SORT >::find(), plotBeamSpotDB::first, genMatchTokens_, edm::EventSetup::get(), edm::Event::getByToken(), CaloTopology::getSubdetectorTopology(), CaloSubdetectorTopology::getWindow(), ConversionTools::hasMatchedConversion(), hcalPFClusterIsoT_, hConversionsToken_, mps_fire::i, training_settings::idx, diffTreeTool::index, edm::Ref< C, T, F >::isAvailable(), edm::Ptr< T >::isNonnull(), edm::Ref< C, T, F >::isNonnull(), isoDepositLabels_, isoDepositTokens_, isolationValueNoPFIdTokens_, electronProducer_cff::isolationValues, electronProducer_cff::isolationValuesNoPFId, isolationValueTokens_, isolator_, isolatorTmpStorage_, edm::EventBase::isRealData(), edm::HandleBase::isValid(), reco::Matched, reco::HitPattern::MISSING_INNER_HITS, eostools::move(), pat::helper::EfficiencyLoader::newEvent(), pat::helper::KinResolutionsLoader::newEvent(), electronProducer_cfi::patElectrons, pfCandidateMapToken_, pfElecToken_, reco::BeamSpot::position(), impactParameterTagInfos_cfi::primaryVertex, pTComparator_, PUPPIIsolation_charged_hadrons_, PUPPIIsolation_neutral_hadrons_, PUPPIIsolation_photons_, PUPPINoLeptonsIsolation_charged_hadrons_, PUPPINoLeptonsIsolation_neutral_hadrons_, PUPPINoLeptonsIsolation_photons_, edm::SortedCollection< T, SORT >::push_back(), edm::Event::put(), pvToken_, reducedBarrelRecHitCollectionToken_, reducedEndcapRecHitCollectionToken_, resolutionLoader_, SurveyInfoScenario_cff::seed, pat::Electron::setEcalPFClusterIso(), pat::Electron::setElectronIDs(), pat::Electron::setHcalPFClusterIso(), pat::Lepton< LeptonType >::setIsoDeposit(), pat::Lepton< LeptonType >::setIsolation(), pat::Electron::setIsolationPUPPI(), pat::Electron::setIsolationPUPPINoLeptons(), pat::Electron::setIsPF(), pat::Electron::setMvaVariables(), pat::Electron::setPassConversionVeto(), pat::Electron::setPFCandidateRef(), edm::SortedCollection< T, SORT >::size(), edm::SortedCollection< T, SORT >::sort(), HiIsolationCommonParameters_cff::track, groupFilesInBlocks::tt, tier0::unique(), useParticleFlow_, userDataHelper_, and useUserData_.
|
private |
fill the labels vector from the contents of the parameter set, for the isodeposit or isolation values embedding
Definition at line 193 of file PATElectronProducer.h.
References pat::EcalIso, edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), pat::HcalIso, crabWrapper::key, diffTwoXMLs::label, pat::PfAllParticleIso, pat::PfChargedAllIso, pat::PfChargedHadronIso, pat::PfGammaIso, pat::PfNeutralHadronIso, pat::PfPUChargedHadronIso, pat::TrackIso, pat::UserBaseIso, and edm::vector_transform().
Referenced by PATElectronProducer().
|
private |
Definition at line 170 of file PATElectronProducer.h.
Referenced by PATElectronProducer().
|
private |
Definition at line 153 of file PATElectronProducer.h.
Referenced by PATElectronProducer(), and produce().
|
private |
Definition at line 80 of file PATElectronProducer.h.
Referenced by fillElectron(), fillElectron2(), PATElectronProducer(), and produce().
|
private |
Definition at line 100 of file PATElectronProducer.h.
Referenced by produce().
|
private |
Definition at line 101 of file PATElectronProducer.h.
Referenced by PATElectronProducer(), and produce().
|
private |
Definition at line 173 of file PATElectronProducer.h.
Referenced by PATElectronProducer().
|
private |
Definition at line 107 of file PATElectronProducer.h.
Referenced by produce().
|
private |
Definition at line 102 of file PATElectronProducer.h.
Referenced by produce().
|
private |
Definition at line 187 of file PATElectronProducer.h.
Referenced by produce().
|
private |
Definition at line 171 of file PATElectronProducer.h.
Referenced by fillElectron(), fillElectron2(), PATElectronProducer(), and produce().
|
private |
Definition at line 155 of file PATElectronProducer.h.
Referenced by PATElectronProducer(), and produce().
|
private |
Definition at line 156 of file PATElectronProducer.h.
Referenced by PATElectronProducer(), and produce().
|
private |
Definition at line 68 of file PATElectronProducer.h.
Referenced by produce().
|
private |
Definition at line 75 of file PATElectronProducer.h.
Referenced by fillElectron(), fillElectron2(), and produce().
|
private |
Definition at line 81 of file PATElectronProducer.h.
Referenced by fillElectron(), fillElectron2(), and produce().
|
private |
Definition at line 70 of file PATElectronProducer.h.
Referenced by fillElectron(), and fillElectron2().
|
private |
Definition at line 71 of file PATElectronProducer.h.
Referenced by fillElectron(), and fillElectron2().
|
private |
embed high level selection variables?
Definition at line 106 of file PATElectronProducer.h.
Referenced by produce().
|
private |
Definition at line 92 of file PATElectronProducer.h.
Referenced by produce().
|
private |
Definition at line 77 of file PATElectronProducer.h.
Referenced by fillElectron(), fillElectron2(), and produce().
|
private |
Definition at line 78 of file PATElectronProducer.h.
Referenced by fillElectron(), and fillElectron2().
|
private |
Definition at line 73 of file PATElectronProducer.h.
Referenced by fillElectron(), and fillElectron2().
|
private |
Definition at line 76 of file PATElectronProducer.h.
Referenced by fillElectron(), and fillElectron2().
|
private |
Definition at line 82 of file PATElectronProducer.h.
Referenced by produce().
|
private |
Definition at line 74 of file PATElectronProducer.h.
Referenced by fillElectron(), and fillElectron2().
|
private |
Definition at line 72 of file PATElectronProducer.h.
Referenced by fillElectron(), and fillElectron2().
|
private |
Definition at line 79 of file PATElectronProducer.h.
Referenced by fillElectron(), and fillElectron2().
|
private |
Definition at line 86 of file PATElectronProducer.h.
Referenced by PATElectronProducer(), and produce().
|
private |
Definition at line 103 of file PATElectronProducer.h.
Referenced by produce().
|
private |
Definition at line 69 of file PATElectronProducer.h.
Referenced by produce().
|
private |
Definition at line 163 of file PATElectronProducer.h.
Referenced by fillElectron(), fillElectron2(), PATElectronProducer(), and produce().
|
private |
Definition at line 164 of file PATElectronProducer.h.
Referenced by PATElectronProducer(), and produce().
|
private |
Definition at line 165 of file PATElectronProducer.h.
Referenced by fillElectron(), fillElectron2(), and PATElectronProducer().
|
private |
Definition at line 167 of file PATElectronProducer.h.
Referenced by fillElectron(), and PATElectronProducer().
|
private |
Definition at line 168 of file PATElectronProducer.h.
Referenced by PATElectronProducer(), and produce().
|
private |
Definition at line 166 of file PATElectronProducer.h.
Referenced by PATElectronProducer(), and produce().
|
private |
Definition at line 161 of file PATElectronProducer.h.
Referenced by produce().
|
private |
Definition at line 162 of file PATElectronProducer.h.
Referenced by produce().
|
private |
Definition at line 91 of file PATElectronProducer.h.
Referenced by produce().
|
private |
Definition at line 90 of file PATElectronProducer.h.
Referenced by produce().
|
private |
Definition at line 159 of file PATElectronProducer.h.
Referenced by produce().
|
private |
Definition at line 178 of file PATElectronProducer.h.
Referenced by PATElectronProducer(), and produce().
|
private |
Definition at line 179 of file PATElectronProducer.h.
Referenced by PATElectronProducer(), and produce().
|
private |
Definition at line 180 of file PATElectronProducer.h.
Referenced by PATElectronProducer(), and produce().
|
private |
Definition at line 182 of file PATElectronProducer.h.
Referenced by PATElectronProducer(), and produce().
|
private |
Definition at line 183 of file PATElectronProducer.h.
Referenced by PATElectronProducer(), and produce().
|
private |
Definition at line 184 of file PATElectronProducer.h.
Referenced by PATElectronProducer(), and produce().
|
private |
Definition at line 108 of file PATElectronProducer.h.
Referenced by produce().
|
private |
mva input variables
Definition at line 95 of file PATElectronProducer.h.
|
private |
Definition at line 96 of file PATElectronProducer.h.
Referenced by produce().
|
private |
Definition at line 97 of file PATElectronProducer.h.
|
private |
Definition at line 98 of file PATElectronProducer.h.
Referenced by produce().
|
private |
Definition at line 174 of file PATElectronProducer.h.
Referenced by fillElectron(), fillElectron2(), PATElectronProducer(), and produce().
|
private |
pflow specific
Definition at line 89 of file PATElectronProducer.h.
Referenced by fillElectron(), and produce().
|
private |
Definition at line 185 of file PATElectronProducer.h.
Referenced by PATElectronProducer(), and produce().
|
private |
Definition at line 176 of file PATElectronProducer.h.
Referenced by PATElectronProducer(), and produce().