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::EDProducer | |
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::EDProducer | |
typedef EDProducer | ModuleType |
Public Types inherited from edm::ProducerBase | |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Protected Member Functions inherited from edm::ProducerBase | |
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
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 90 of file PATPhotonProducer.h.
|
private |
Definition at line 92 of file PATPhotonProducer.h.
|
private |
Definition at line 93 of file PATPhotonProducer.h.
|
private |
Definition at line 91 of file PATPhotonProducer.h.
|
private |
Definition at line 117 of file PATPhotonProducer.h.
|
explicit |
Definition at line 30 of file PATPhotonProducer.cc.
References addGenMatch_, beamLineToken_, edm::EDConsumerBase::consumes(), electronToken_, embedBasicClusters_, embedGenMatch_, embedPreshowerClusters_, embedRecHits_, embedSeedCluster_, embedSuperCluster_, edm::ParameterSet::existsAs(), genMatchTokens_, edm::ParameterSet::getParameter(), hConversionsToken_, photonToken_, reducedBarrelRecHitCollection_, reducedBarrelRecHitCollectionToken_, reducedEndcapRecHitCollection_, reducedEndcapRecHitCollectionToken_, GlobalPosition_Frontier_DevDB_cff::tag, and edm::vector_transform().
PATPhotonProducer::~PATPhotonProducer | ( | ) |
Definition at line 112 of file PATPhotonProducer.cc.
|
static |
Definition at line 405 of file PATPhotonProducer.cc.
References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), edm::ParameterSetDescription::addNode(), edm::ParameterSetDescription::addOptional(), pat::helper::KinResolutionsLoader::fillDescription(), pat::PATUserDataHelper< ObjectType >::fillDescription(), edm::ParameterSetDescription::setAllowAnything(), edm::ParameterSetDescription::setComment(), and edm::ParameterDescriptionNode::setComment().
|
overridevirtual |
Implements edm::EDProducer.
Definition at line 115 of file PATPhotonProducer.cc.
References addGenMatch_, pat::PATObject< ObjectType >::addGenParticleRef(), addPhotonID_, Reference_intrackfit_cff::barrel, beamLineToken_, pat::helper::MultiIsolator::beginEvent(), DetId::Ecal, EcalBarrel, EcalEndcap, ecalGeometry_, ecalTopology_, ecl_, efficiencyLoader_, electronToken_, 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(), eTComparator_, f, pat::helper::MultiIsolator::fill(), edm::SortedCollection< T, SORT >::find(), first, genMatchTokens_, edm::EventSetup::get(), edm::Event::getByToken(), CaloTopology::getSubdetectorTopology(), CaloSubdetectorTopology::getWindow(), ConversionTools::hasMatchedPromptElectron(), reco::Photon::hasPixelSeed(), hConversionsToken_, i, customizeTrackingMonitorSeedNumber::idx, edm::detail::isnan(), isoDepositLabels_, isoDepositTokens_, isolationValueLabels_, isolationValueTokens_, isolator_, isolatorTmpStorage_, edm::EventBase::isRealData(), edm::HandleBase::isValid(), j, EcalClusterLocal::localCoordsEB(), n, pat::helper::EfficiencyLoader::newEvent(), pat::helper::KinResolutionsLoader::newEvent(), Phi_mpi_pi(), photIDSrcs_, photIDTokens_, interactiveExample::photons, photonToken_, edm::SortedCollection< T, SORT >::push_back(), edm::Event::put(), reducedBarrelRecHitCollectionToken_, reducedEndcapRecHitCollectionToken_, resolutionLoader_, fileCollector::seed, cmsHarvester::sep, pat::Photon::setCryEta(), pat::Photon::setCryPhi(), pat::Photon::setE2nd(), pat::Photon::setE3x3(), pat::Photon::setEBottom(), pat::helper::EfficiencyLoader::setEfficiencies(), pat::Photon::setELeft(), pat::Photon::setEMax(), pat::Photon::setERight(), pat::Photon::setETop(), pat::Photon::setHasPixelSeed(), pat::Photon::setIEta(), pat::Photon::setIPhi(), pat::Photon::setIsoDeposit(), pat::Photon::setIsolation(), 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(), edm::SortedCollection< T, SORT >::size(), edm::SortedCollection< T, SORT >::sort(), python.multivaluedict::sort(), mathSSE::sqrt(), reco::Photon::superCluster(), 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 137 of file PATPhotonProducer.h.
References pat::EcalIso, edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), pat::HcalIso, combine::key, diffTwoXMLs::label, pat::PfAllParticleIso, pat::PfChargedAllIso, pat::PfChargedHadronIso, pat::PfGammaIso, pat::PfNeutralHadronIso, pat::PfPUChargedHadronIso, pat::TrackIso, pat::UserBaseIso, and edm::vector_transform().
|
private |
Definition at line 110 of file PATPhotonProducer.h.
|
private |
Definition at line 83 of file PATPhotonProducer.h.
Referenced by PATPhotonProducer(), and produce().
|
private |
Definition at line 116 of file PATPhotonProducer.h.
Referenced by produce().
|
private |
Definition at line 113 of file PATPhotonProducer.h.
|
private |
Definition at line 70 of file PATPhotonProducer.h.
Referenced by PATPhotonProducer(), and produce().
|
private |
Definition at line 125 of file PATPhotonProducer.h.
Referenced by produce().
|
private |
Definition at line 124 of file PATPhotonProducer.h.
Referenced by produce().
|
private |
Definition at line 126 of file PATPhotonProducer.h.
Referenced by produce().
|
private |
Definition at line 111 of file PATPhotonProducer.h.
Referenced by 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 84 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 88 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 69 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 97 of file PATPhotonProducer.h.
Referenced by produce().
|
private |
Definition at line 101 of file PATPhotonProducer.h.
Referenced by produce().
|
private |
Definition at line 98 of file PATPhotonProducer.h.
Referenced by produce().
|
private |
Definition at line 95 of file PATPhotonProducer.h.
Referenced by produce().
|
private |
Definition at line 96 of file PATPhotonProducer.h.
Referenced by produce().
|
private |
Definition at line 118 of file PATPhotonProducer.h.
Referenced by produce().
|
private |
Definition at line 119 of file PATPhotonProducer.h.
Referenced by produce().
|
private |
Definition at line 67 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 114 of file PATPhotonProducer.h.
Referenced by produce().
|
private |
Definition at line 122 of file PATPhotonProducer.h.
Referenced by produce().
|
private |
Definition at line 121 of file PATPhotonProducer.h.
Referenced by produce().