#include <RecoTauBuilderPlugins.h>
Public Types | |
typedef boost::ptr_vector < reco::PFTau > | output_type |
typedef std::auto_ptr < output_type > | return_type |
Public Member Functions | |
virtual void | beginEvent () |
const edm::Handle < PFCandidateCollection > & | getPFCands () const |
Hack to be able to convert Ptrs to Refs. | |
virtual return_type | operator() (const reco::PFJetRef &jet, const std::vector< reco::RecoTauPiZero > &piZeros, const std::vector< PFCandidatePtr > ®ionalExtras) const =0 |
reco::VertexRef | primaryVertex (const reco::PFJetRef &jet) const |
Get primary vertex associated to this jet. | |
RecoTauBuilderPlugin (const edm::ParameterSet &pset) | |
virtual | ~RecoTauBuilderPlugin () |
Private Attributes | |
edm::Handle < PFCandidateCollection > | pfCands_ |
edm::InputTag | pfCandSrc_ |
reco::tau::RecoTauVertexAssociator | vertexAssociator_ |
Definition at line 53 of file RecoTauBuilderPlugins.h.
typedef boost::ptr_vector<reco::PFTau> reco::tau::RecoTauBuilderPlugin::output_type |
Definition at line 55 of file RecoTauBuilderPlugins.h.
typedef std::auto_ptr<output_type> reco::tau::RecoTauBuilderPlugin::return_type |
Definition at line 56 of file RecoTauBuilderPlugins.h.
reco::tau::RecoTauBuilderPlugin::RecoTauBuilderPlugin | ( | const edm::ParameterSet & | pset | ) | [inline, explicit] |
Definition at line 58 of file RecoTauBuilderPlugins.h.
References edm::ParameterSet::getParameter(), and pfCandSrc_.
: RecoTauEventHolderPlugin(pset), // The vertex association configuration is specified with the // quality cuts. vertexAssociator_(pset.getParameter<edm::ParameterSet>("qualityCuts")) { pfCandSrc_ = pset.getParameter<edm::InputTag>("pfCandSrc"); };
virtual reco::tau::RecoTauBuilderPlugin::~RecoTauBuilderPlugin | ( | ) | [inline, virtual] |
Definition at line 66 of file RecoTauBuilderPlugins.h.
{}
void reco::tau::RecoTauBuilderPlugin::beginEvent | ( | ) | [virtual] |
Reimplemented from reco::tau::RecoTauEventHolderPlugin.
Definition at line 9 of file RecoTauBuilderPlugins.cc.
References reco::tau::RecoTauEventHolderPlugin::evt(), edm::Event::getByLabel(), pfCands_, pfCandSrc_, reco::tau::RecoTauVertexAssociator::setEvent(), and vertexAssociator_.
{ vertexAssociator_.setEvent(*evt()); evt()->getByLabel(pfCandSrc_, pfCands_); }
const edm::Handle<PFCandidateCollection>& reco::tau::RecoTauBuilderPlugin::getPFCands | ( | ) | const [inline] |
Hack to be able to convert Ptrs to Refs.
Definition at line 76 of file RecoTauBuilderPlugins.h.
References pfCands_.
Referenced by reco::tau::RecoTauBuilderCombinatoricPlugin::operator()(), and reco::tau::RecoTauBuilderConePlugin::operator()().
{ return pfCands_; };
virtual return_type reco::tau::RecoTauBuilderPlugin::operator() | ( | const reco::PFJetRef & | jet, |
const std::vector< reco::RecoTauPiZero > & | piZeros, | ||
const std::vector< PFCandidatePtr > & | regionalExtras | ||
) | const [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
reco::VertexRef reco::tau::RecoTauBuilderPlugin::primaryVertex | ( | const reco::PFJetRef & | jet | ) | const [inline] |
Get primary vertex associated to this jet.
Definition at line 80 of file RecoTauBuilderPlugins.h.
References reco::tau::RecoTauVertexAssociator::associatedVertex(), and vertexAssociator_.
Referenced by reco::tau::RecoTauBuilderCombinatoricPlugin::operator()(), and reco::tau::RecoTauBuilderConePlugin::operator()().
{ return vertexAssociator_.associatedVertex(*jet); }
Definition at line 91 of file RecoTauBuilderPlugins.h.
Referenced by beginEvent(), and getPFCands().
Definition at line 89 of file RecoTauBuilderPlugins.h.
Referenced by beginEvent(), and RecoTauBuilderPlugin().
Definition at line 92 of file RecoTauBuilderPlugins.h.
Referenced by beginEvent(), and primaryVertex().