#include <RecoTauBuilderPlugins.h>
Public Types | |
typedef boost::ptr_vector< reco::PFTau > | output_type |
typedef std::auto_ptr< output_type > | return_type |
Public Member Functions | |
void | beginEvent () override |
const edm::Handle< PFCandidateCollection > & | getPFCands () const |
Hack to be able to convert Ptrs to Refs. More... | |
virtual return_type | operator() (const reco::PFJetRef &, const std::vector< reco::PFRecoTauChargedHadron > &, const std::vector< reco::RecoTauPiZero > &, const std::vector< PFCandidatePtr > &) const =0 |
reco::VertexRef | primaryVertex (const reco::PFJetRef &jet) const |
Get primary vertex associated to this jet. More... | |
reco::VertexRef | primaryVertex (const reco::PFTau &tau, bool useJet=false) const |
Get primary vertex associated to this tau. More... | |
RecoTauBuilderPlugin (const edm::ParameterSet &pset, edm::ConsumesCollector &&iC) | |
~RecoTauBuilderPlugin () override | |
Public Member Functions inherited from reco::tau::RecoTauEventHolderPlugin | |
const edm::Event * | evt () const |
edm::Event * | evt () |
const edm::EventSetup * | evtSetup () const |
RecoTauEventHolderPlugin (const edm::ParameterSet &pset) | |
void | setup (edm::Event &, const edm::EventSetup &) |
~RecoTauEventHolderPlugin () override | |
Public Member Functions inherited from reco::tau::RecoTauNamedPlugin | |
const std::string & | name () const |
RecoTauNamedPlugin (const edm::ParameterSet &pset) | |
virtual | ~RecoTauNamedPlugin () |
Private Attributes | |
edm::EDGetTokenT< PFCandidateCollection > | pfCand_token |
edm::Handle< PFCandidateCollection > | pfCands_ |
edm::InputTag | pfCandSrc_ |
reco::tau::RecoTauVertexAssociator | vertexAssociator_ |
Definition at line 55 of file RecoTauBuilderPlugins.h.
typedef boost::ptr_vector<reco::PFTau> reco::tau::RecoTauBuilderPlugin::output_type |
Definition at line 58 of file RecoTauBuilderPlugins.h.
typedef std::auto_ptr<output_type> reco::tau::RecoTauBuilderPlugin::return_type |
Definition at line 59 of file RecoTauBuilderPlugins.h.
|
inlineexplicit |
Definition at line 61 of file RecoTauBuilderPlugins.h.
References edm::ParameterSet::getParameter(), pfCand_token, and pfCandSrc_.
|
inlineoverride |
|
overridevirtual |
Reimplemented from reco::tau::RecoTauEventHolderPlugin.
Definition at line 9 of file RecoTauBuilderPlugins.cc.
References EDM_REGISTER_PLUGINFACTORY, reco::tau::RecoTauEventHolderPlugin::evt(), edm::Event::getByToken(), pfCand_token, pfCands_, reco::tau::RecoTauVertexAssociator::setEvent(), and vertexAssociator_.
Referenced by primaryVertex().
|
inline |
Hack to be able to convert Ptrs to Refs.
Definition at line 82 of file RecoTauBuilderPlugins.h.
References pfCands_.
Referenced by reco::tau::RecoTauBuilderCombinatoricPlugin::operator()(), and reco::tau::RecoTauBuilderConePlugin::operator()().
|
pure virtual |
Construct one or more PFTaus from the a PFJet and its asscociated reconstructed PiZeros and regional extras i.e. objects in a 0.8 cone about the jet
Implemented in reco::tau::RecoTauBuilderConePlugin, and reco::tau::RecoTauBuilderCombinatoricPlugin.
Referenced by ~RecoTauBuilderPlugin(), reco::tau::RecoTauCleanerPlugin::~RecoTauCleanerPlugin(), and reco::tau::RecoTauModifierPlugin::~RecoTauModifierPlugin().
|
inline |
Get primary vertex associated to this jet.
Definition at line 85 of file RecoTauBuilderPlugins.h.
References reco::tau::RecoTauVertexAssociator::associatedVertex(), and vertexAssociator_.
Referenced by reco::tau::RecoTauBuilderCombinatoricPlugin::operator()(), and reco::tau::RecoTauBuilderConePlugin::operator()().
|
inline |
Get primary vertex associated to this tau.
Definition at line 87 of file RecoTauBuilderPlugins.h.
References reco::tau::RecoTauVertexAssociator::associatedVertex(), beginEvent(), and vertexAssociator_.
|
private |
Definition at line 98 of file RecoTauBuilderPlugins.h.
Referenced by beginEvent(), and RecoTauBuilderPlugin().
|
private |
Definition at line 96 of file RecoTauBuilderPlugins.h.
Referenced by beginEvent(), and getPFCands().
|
private |
Definition at line 94 of file RecoTauBuilderPlugins.h.
Referenced by RecoTauBuilderPlugin().
|
private |
Definition at line 97 of file RecoTauBuilderPlugins.h.
Referenced by beginEvent(), and primaryVertex().