Produces the pat::Photon. More...
#include "PhysicsTools/PatAlgos/interface/PATPhotonProducer.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 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 | |
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 | |
using | ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex >> |
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 the pat::Photon.
The PATPhotonProducer produces the analysis-level pat::Photon starting from a collection of objects of PhotonType.
Definition at line 53 of file PATPhotonProducer.h.
|
private |
Definition at line 95 of file PATPhotonProducer.h.
|
private |
Definition at line 97 of file PATPhotonProducer.h.
|
private |
Definition at line 98 of file PATPhotonProducer.h.
|
private |
Definition at line 96 of file PATPhotonProducer.h.
|
private |
Definition at line 122 of file PATPhotonProducer.h.
|
explicit |
Definition at line 33 of file PATPhotonProducer.cc.
References addEfficiencies_, addGenMatch_, addPFClusterIso_, addPhotonID_, addPuppiIsolation_, addResolutions_, beamLineToken_, edm::EDConsumerBase::consumes(), edm::EDConsumerBase::consumesCollector(), ecalPFClusterIsoT_, efficiencyLoader_, electronToken_, embedBasicClusters_, embedGenMatch_, embedPreshowerClusters_, embedRecHits_, embedSeedCluster_, embedSuperCluster_, Exception, edm::ParameterSet::existsAs(), genMatchTokens_, edm::ParameterSet::getParameter(), edm::ParameterSet::getParameterNamesForType(), hcalPFClusterIsoT_, hConversionsToken_, isoDepositLabels_, isoDepositTokens_, isolationValueLabels_, isolationValueTokens_, cscdqm::h::names, photIDSrcs_, photIDTokens_, photonToken_, PUPPIIsolation_charged_hadrons_, PUPPIIsolation_neutral_hadrons_, PUPPIIsolation_photons_, readIsolationLabels(), reducedBarrelRecHitCollection_, reducedBarrelRecHitCollectionToken_, reducedEndcapRecHitCollection_, reducedEndcapRecHitCollectionToken_, resolutionLoader_, saveRegressionData_, GlobalPosition_Frontier_DevDB_cff::tag, userDataHelper_, useUserData_, and edm::vector_transform().
PATPhotonProducer::~PATPhotonProducer | ( | ) |
Definition at line 132 of file PATPhotonProducer.cc.
|
static |
Definition at line 449 of file PATPhotonProducer.cc.
References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), edm::ParameterSetDescription::addNode(), edm::ParameterSetDescription::addOptional(), DEFINE_FWK_MODULE, pat::helper::KinResolutionsLoader::fillDescription(), pat::PATUserDataHelper< ObjectType >::fillDescription(), edm::ParameterSetDescription::ifValue(), or, edm::ParameterSetDescription::setAllowAnything(), edm::ParameterSetDescription::setComment(), and edm::ParameterDescriptionNode::setComment().
|
overridevirtual |
Definition at line 135 of file PATPhotonProducer.cc.
References addGenMatch_, pat::PATObject< ObjectType >::addGenParticleRef(), addPFClusterIso_, addPhotonID_, addPuppiIsolation_, Reference_intrackfit_cff::barrel, beamLineToken_, pat::helper::MultiIsolator::beginEvent(), EcalRegressionData::C1, EcalRegressionData::C2, EcalRegressionData::C3, CandIsolatorFromDeposits_cfi::deposits, EcalRegressionData::e2nd(), EcalRegressionData::e3x3(), EcalRegressionData::eBottom(), DetId::Ecal, EcalBarrel, EcalEndcap, ecalGeometry_, ecalPFClusterIsoT_, ecalTopology_, efficiencyLoader_, electronToken_, EcalRegressionData::eLeft(), EcalRegressionData::eMax(), pat::Photon::embedBasicClusters(), embedBasicClusters_, embedGenMatch_, pat::PATObject< ObjectType >::embedGenParticle(), pat::Photon::embedPreshowerClusters(), embedPreshowerClusters_, pat::Photon::embedRecHits(), embedRecHits_, pat::Photon::embedSeedCluster(), embedSeedCluster_, pat::Photon::embedSuperCluster(), embedSuperCluster_, pat::helper::EfficiencyLoader::enabled(), pat::helper::KinResolutionsLoader::enabled(), pat::helper::MultiIsolator::enabled(), edm::SortedCollection< T, SORT >::end(), pat::helper::MultiIsolator::endEvent(), EcalRegressionData::eRight(), eTComparator_, EcalRegressionData::eTop(), pat::helper::MultiIsolator::fill(), EcalRegressionData::fill(), edm::SortedCollection< T, SORT >::find(), plotBeamSpotDB::first, genMatchTokens_, edm::EventSetup::get(), edm::Event::getByToken(), CaloTopology::getSubdetectorTopology(), CaloSubdetectorTopology::getWindow(), ConversionTools::hasMatchedPromptElectron(), reco::Photon::hasPixelSeed(), hcalPFClusterIsoT_, hConversionsToken_, mps_fire::i, electrons_cff::ids, training_settings::idx, isoDepositLabels_, isoDepositTokens_, isolationValueLabels_, electronProducer_cff::isolationValues, isolationValueTokens_, isolator_, isolatorTmpStorage_, edm::EventBase::isRealData(), edm::EDGetTokenT< T >::isUninitialized(), edm::HandleBase::isValid(), EcalRegressionData::maxSubClusDR(), EcalRegressionData::maxSubClusDRDEta(), EcalRegressionData::maxSubClusDRDPhi(), EcalRegressionData::maxSubClusDRRawEnergy(), eostools::move(), gen::n, pat::helper::EfficiencyLoader::newEvent(), pat::helper::KinResolutionsLoader::newEvent(), photIDSrcs_, photIDTokens_, nano_cff::photons, photonToken_, reco::BeamSpot::position(), edm::Handle< T >::product(), PUPPIIsolation_charged_hadrons_, PUPPIIsolation_neutral_hadrons_, PUPPIIsolation_photons_, edm::SortedCollection< T, SORT >::push_back(), edm::Event::put(), reducedBarrelRecHitCollectionToken_, reducedEndcapRecHitCollectionToken_, resolutionLoader_, saveRegressionData_, SurveyInfoScenario_cff::seed, EcalRegressionData::seedCrysEtaOrX(), EcalRegressionData::seedCrysIEtaOrIX(), EcalRegressionData::seedCrysIPhiOrIY(), EcalRegressionData::seedCrysPhiOrY(), pat::Photon::setCryEta(), pat::Photon::setCryPhi(), pat::Photon::setE2nd(), pat::Photon::setE3x3(), pat::Photon::setEBottom(), pat::Photon::setEcalPFClusterIso(), pat::helper::EfficiencyLoader::setEfficiencies(), pat::Photon::setELeft(), pat::Photon::setEMax(), pat::Photon::setERight(), pat::Photon::setETop(), pat::Photon::setHasPixelSeed(), pat::Photon::setHcalPFClusterIso(), pat::Photon::setIEta(), pat::Photon::setIPhi(), pat::Photon::setIsoDeposit(), pat::Photon::setIsolation(), pat::Photon::setIsolationPUPPI(), pat::Photon::setMaxDR(), pat::Photon::setMaxDRDEta(), pat::Photon::setMaxDRDPhi(), pat::Photon::setMaxDRRawEnergy(), pat::Photon::setPassElectronVeto(), pat::Photon::setPhotonIDs(), pat::helper::KinResolutionsLoader::setResolutions(), pat::Photon::setSee(), pat::Photon::setSeedEnergy(), pat::Photon::setSep(), pat::Photon::setSpp(), pat::Photon::setSubClusDEta1(), pat::Photon::setSubClusDEta2(), pat::Photon::setSubClusDEta3(), pat::Photon::setSubClusDPhi1(), pat::Photon::setSubClusDPhi2(), pat::Photon::setSubClusDPhi3(), pat::Photon::setSubClusRawE1(), pat::Photon::setSubClusRawE2(), pat::Photon::setSubClusRawE3(), EcalRegressionData::sigmaIEtaIEta(), EcalRegressionData::sigmaIEtaIPhi(), EcalRegressionData::sigmaIPhiIPhi(), edm::SortedCollection< T, SORT >::size(), edm::SortedCollection< T, SORT >::sort(), EcalRegressionData::subClusDEta(), EcalRegressionData::subClusDPhi(), EcalRegressionData::subClusRawEnergy(), reco::Photon::superCluster(), tier0::unique(), 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 146 of file PATPhotonProducer.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 PATPhotonProducer().
|
private |
Definition at line 115 of file PATPhotonProducer.h.
Referenced by PATPhotonProducer().
|
private |
Definition at line 88 of file PATPhotonProducer.h.
Referenced by PATPhotonProducer(), and produce().
|
private |
Definition at line 83 of file PATPhotonProducer.h.
Referenced by PATPhotonProducer(), and produce().
|
private |
Definition at line 121 of file PATPhotonProducer.h.
Referenced by PATPhotonProducer(), and produce().
|
private |
Definition at line 84 of file PATPhotonProducer.h.
Referenced by PATPhotonProducer(), and produce().
|
private |
Definition at line 118 of file PATPhotonProducer.h.
Referenced by PATPhotonProducer().
|
private |
Definition at line 70 of file PATPhotonProducer.h.
Referenced by PATPhotonProducer(), and produce().
|
private |
Definition at line 134 of file PATPhotonProducer.h.
Referenced by produce().
|
private |
Definition at line 85 of file PATPhotonProducer.h.
Referenced by PATPhotonProducer(), and produce().
|
private |
Definition at line 133 of file PATPhotonProducer.h.
Referenced by produce().
|
private |
Definition at line 135 of file PATPhotonProducer.h.
|
private |
Definition at line 116 of file PATPhotonProducer.h.
Referenced by PATPhotonProducer(), and produce().
|
private |
Definition at line 68 of file PATPhotonProducer.h.
Referenced by PATPhotonProducer(), and produce().
|
private |
Definition at line 74 of file PATPhotonProducer.h.
Referenced by PATPhotonProducer(), and produce().
|
private |
Definition at line 89 of file PATPhotonProducer.h.
Referenced by PATPhotonProducer(), and produce().
|
private |
Definition at line 75 of file PATPhotonProducer.h.
Referenced by PATPhotonProducer(), and produce().
|
private |
Definition at line 76 of file PATPhotonProducer.h.
Referenced by PATPhotonProducer(), and produce().
|
private |
Definition at line 73 of file PATPhotonProducer.h.
Referenced by PATPhotonProducer(), and produce().
|
private |
Definition at line 72 of file PATPhotonProducer.h.
Referenced by PATPhotonProducer(), and produce().
|
private |
Definition at line 93 of file PATPhotonProducer.h.
Referenced by produce().
|
private |
Definition at line 90 of file PATPhotonProducer.h.
Referenced by PATPhotonProducer(), and produce().
|
private |
Definition at line 86 of file PATPhotonProducer.h.
Referenced by PATPhotonProducer(), and produce().
|
private |
Definition at line 69 of file PATPhotonProducer.h.
Referenced by PATPhotonProducer(), and produce().
|
private |
Definition at line 105 of file PATPhotonProducer.h.
Referenced by PATPhotonProducer(), and produce().
|
private |
Definition at line 102 of file PATPhotonProducer.h.
Referenced by PATPhotonProducer(), and produce().
|
private |
Definition at line 106 of file PATPhotonProducer.h.
Referenced by PATPhotonProducer(), and produce().
|
private |
Definition at line 103 of file PATPhotonProducer.h.
Referenced by PATPhotonProducer(), and produce().
|
private |
Definition at line 100 of file PATPhotonProducer.h.
Referenced by produce().
|
private |
Definition at line 101 of file PATPhotonProducer.h.
Referenced by produce().
|
private |
Definition at line 123 of file PATPhotonProducer.h.
Referenced by PATPhotonProducer(), and produce().
|
private |
Definition at line 124 of file PATPhotonProducer.h.
Referenced by PATPhotonProducer(), and produce().
|
private |
Definition at line 67 of file PATPhotonProducer.h.
Referenced by PATPhotonProducer(), and produce().
|
private |
Definition at line 128 of file PATPhotonProducer.h.
Referenced by PATPhotonProducer(), and produce().
|
private |
Definition at line 129 of file PATPhotonProducer.h.
Referenced by PATPhotonProducer(), and produce().
|
private |
Definition at line 130 of file PATPhotonProducer.h.
Referenced by PATPhotonProducer(), and produce().
|
private |
Definition at line 78 of file PATPhotonProducer.h.
Referenced by PATPhotonProducer().
|
private |
Definition at line 79 of file PATPhotonProducer.h.
Referenced by PATPhotonProducer(), and produce().
|
private |
Definition at line 80 of file PATPhotonProducer.h.
Referenced by PATPhotonProducer().
|
private |
Definition at line 81 of file PATPhotonProducer.h.
Referenced by PATPhotonProducer(), and produce().
|
private |
Definition at line 119 of file PATPhotonProducer.h.
Referenced by PATPhotonProducer(), and produce().
|
private |
Definition at line 137 of file PATPhotonProducer.h.
Referenced by PATPhotonProducer(), and produce().
|
private |
Definition at line 131 of file PATPhotonProducer.h.
Referenced by PATPhotonProducer(), and produce().
|
private |
Definition at line 126 of file PATPhotonProducer.h.
Referenced by PATPhotonProducer(), and produce().