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) |
Private Attributes | |
bool | addEfficiencies_ |
bool | addGenMatch_ |
bool | addPhotonID_ |
bool | addResolutions_ |
pat::helper::EfficiencyLoader | efficiencyLoader_ |
bool | embedGenMatch_ |
bool | embedSuperCluster_ |
GreaterByEt< Photon > | eTComparator_ |
std::vector< edm::EDGetTokenT < edm::Association < reco::GenParticleCollection > > > | genMatchTokens_ |
IsolationLabels | isoDepositLabels_ |
std::vector< edm::EDGetTokenT < edm::ValueMap< IsoDeposit > > > | isoDepositTokens_ |
IsolationLabels | isolationValueLabels_ |
std::vector< edm::EDGetTokenT < edm::ValueMap< double > > > | isolationValueTokens_ |
pat::helper::MultiIsolator | isolator_ |
pat::helper::MultiIsolator::IsolationValuePairs | isolatorTmpStorage_ |
std::vector< NameTag > | photIDSrcs_ |
std::vector< edm::EDGetTokenT < edm::ValueMap< Bool_t > > > | photIDTokens_ |
edm::EDGetTokenT< edm::View < reco::Photon > > | photonToken_ |
pat::helper::KinResolutionsLoader | resolutionLoader_ |
pat::PATUserDataHelper < pat::Photon > | userDataHelper_ |
bool | useUserData_ |
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 37 of file PATPhotonProducer.h.
|
private |
Definition at line 61 of file PATPhotonProducer.h.
|
private |
Definition at line 63 of file PATPhotonProducer.h.
|
private |
Definition at line 64 of file PATPhotonProducer.h.
|
private |
Definition at line 62 of file PATPhotonProducer.h.
|
private |
Definition at line 88 of file PATPhotonProducer.h.
|
explicit |
Definition at line 17 of file PATPhotonProducer.cc.
References addGenMatch_, edm::EDConsumerBase::consumes(), embedGenMatch_, embedSuperCluster_, edm::ParameterSet::existsAs(), genMatchTokens_, edm::ParameterSet::getParameter(), photonToken_, GlobalPosition_Frontier_DevDB_cff::tag, and edm::vector_transform().
PATPhotonProducer::~PATPhotonProducer | ( | ) |
Definition at line 88 of file PATPhotonProducer.cc.
|
static |
Definition at line 212 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 91 of file PATPhotonProducer.cc.
References addGenMatch_, pat::PATObject< ObjectType >::addGenParticleRef(), addPhotonID_, pat::helper::MultiIsolator::beginEvent(), efficiencyLoader_, embedGenMatch_, pat::PATObject< ObjectType >::embedGenParticle(), pat::Photon::embedSuperCluster(), embedSuperCluster_, pat::helper::EfficiencyLoader::enabled(), pat::helper::KinResolutionsLoader::enabled(), pat::helper::MultiIsolator::enabled(), pat::helper::MultiIsolator::endEvent(), eTComparator_, pat::helper::MultiIsolator::fill(), first, genMatchTokens_, edm::Event::getByToken(), i, customizeTrackingMonitorSeedNumber::idx, isoDepositLabels_, isoDepositTokens_, isolationValueLabels_, isolationValueTokens_, isolator_, isolatorTmpStorage_, edm::EventBase::isRealData(), j, n, pat::helper::EfficiencyLoader::newEvent(), pat::helper::KinResolutionsLoader::newEvent(), photIDSrcs_, photIDTokens_, interactiveExample::photons, photonToken_, edm::Event::put(), resolutionLoader_, pat::helper::EfficiencyLoader::setEfficiencies(), pat::Photon::setIsoDeposit(), pat::Photon::setIsolation(), pat::Photon::setPhotonIDs(), pat::helper::KinResolutionsLoader::setResolutions(), python.multivaluedict::sort(), 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 103 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 81 of file PATPhotonProducer.h.
|
private |
Definition at line 54 of file PATPhotonProducer.h.
Referenced by PATPhotonProducer(), and produce().
|
private |
Definition at line 87 of file PATPhotonProducer.h.
Referenced by produce().
|
private |
Definition at line 84 of file PATPhotonProducer.h.
|
private |
Definition at line 82 of file PATPhotonProducer.h.
Referenced by produce().
|
private |
Definition at line 55 of file PATPhotonProducer.h.
Referenced by PATPhotonProducer(), and produce().
|
private |
Definition at line 52 of file PATPhotonProducer.h.
Referenced by PATPhotonProducer(), and produce().
|
private |
Definition at line 59 of file PATPhotonProducer.h.
Referenced by produce().
|
private |
Definition at line 56 of file PATPhotonProducer.h.
Referenced by PATPhotonProducer(), and produce().
|
private |
Definition at line 71 of file PATPhotonProducer.h.
Referenced by produce().
|
private |
Definition at line 68 of file PATPhotonProducer.h.
Referenced by produce().
|
private |
Definition at line 72 of file PATPhotonProducer.h.
Referenced by produce().
|
private |
Definition at line 69 of file PATPhotonProducer.h.
Referenced by produce().
|
private |
Definition at line 66 of file PATPhotonProducer.h.
Referenced by produce().
|
private |
Definition at line 67 of file PATPhotonProducer.h.
Referenced by produce().
|
private |
Definition at line 89 of file PATPhotonProducer.h.
Referenced by produce().
|
private |
Definition at line 90 of file PATPhotonProducer.h.
Referenced by produce().
|
private |
Definition at line 51 of file PATPhotonProducer.h.
Referenced by PATPhotonProducer(), and produce().
|
private |
Definition at line 85 of file PATPhotonProducer.h.
Referenced by produce().
|
private |
Definition at line 93 of file PATPhotonProducer.h.
Referenced by produce().
|
private |
Definition at line 92 of file PATPhotonProducer.h.
Referenced by produce().