CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Attributes
reco::tau::RecoTauBuilderPlugin Class Referenceabstract

#include <RecoTauBuilderPlugins.h>

Inheritance diagram for reco::tau::RecoTauBuilderPlugin:
reco::tau::RecoTauEventHolderPlugin reco::tau::RecoTauNamedPlugin reco::tau::RecoTauBuilderCombinatoricPlugin reco::tau::RecoTauBuilderConePlugin

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. More...
 
virtual return_type operator() (const reco::PFJetRef &jet, const std::vector< reco::RecoTauPiZero > &piZeros, const std::vector< PFCandidatePtr > &regionalExtras) const =0
 
reco::VertexRef primaryVertex (const reco::PFJetRef &jet) const
 Get primary vertex associated to this jet. More...
 
 RecoTauBuilderPlugin (const edm::ParameterSet &pset)
 
virtual ~RecoTauBuilderPlugin ()
 
- Public Member Functions inherited from reco::tau::RecoTauEventHolderPlugin
const edm::Eventevt () const
 
const edm::EventSetupevtSetup () const
 
 RecoTauEventHolderPlugin (const edm::ParameterSet &pset)
 
void setup (const edm::Event &, const edm::EventSetup &)
 
virtual ~RecoTauEventHolderPlugin ()
 
- Public Member Functions inherited from reco::tau::RecoTauNamedPlugin
const std::string & name () const
 
 RecoTauNamedPlugin (const edm::ParameterSet &pset)
 
virtual ~RecoTauNamedPlugin ()
 

Private Attributes

edm::Handle
< PFCandidateCollection
pfCands_
 
edm::InputTag pfCandSrc_
 
reco::tau::RecoTauVertexAssociator vertexAssociator_
 

Detailed Description

Definition at line 53 of file RecoTauBuilderPlugins.h.

Member Typedef Documentation

Definition at line 55 of file RecoTauBuilderPlugins.h.

Definition at line 56 of file RecoTauBuilderPlugins.h.

Constructor & Destructor Documentation

reco::tau::RecoTauBuilderPlugin::RecoTauBuilderPlugin ( const edm::ParameterSet pset)
inlineexplicit

Definition at line 58 of file RecoTauBuilderPlugins.h.

References edm::ParameterSet::getParameter(), and pfCandSrc_.

58  :
60  // The vertex association configuration is specified with the
61  // quality cuts.
62  vertexAssociator_(pset.getParameter<edm::ParameterSet>("qualityCuts")) {
63  pfCandSrc_ = pset.getParameter<edm::InputTag>("pfCandSrc");
64  };
T getParameter(std::string const &) const
RecoTauEventHolderPlugin(const edm::ParameterSet &pset)
reco::tau::RecoTauVertexAssociator vertexAssociator_
virtual reco::tau::RecoTauBuilderPlugin::~RecoTauBuilderPlugin ( )
inlinevirtual

Definition at line 66 of file RecoTauBuilderPlugins.h.

66 {}

Member Function Documentation

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_.

9  {
12 }
edm::Handle< PFCandidateCollection > pfCands_
void setEvent(const edm::Event &evt)
Load the vertices from the event.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:356
reco::tau::RecoTauVertexAssociator vertexAssociator_
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()().

76  {
77  return pfCands_; };
edm::Handle< PFCandidateCollection > 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

Implemented in reco::tau::RecoTauBuilderConePlugin, and reco::tau::RecoTauBuilderCombinatoricPlugin.

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()().

80  {
82  }
reco::VertexRef associatedVertex(const PFJet &tau) const
reco::tau::RecoTauVertexAssociator vertexAssociator_

Member Data Documentation

edm::Handle<PFCandidateCollection> reco::tau::RecoTauBuilderPlugin::pfCands_
private

Definition at line 91 of file RecoTauBuilderPlugins.h.

Referenced by beginEvent(), and getPFCands().

edm::InputTag reco::tau::RecoTauBuilderPlugin::pfCandSrc_
private

Definition at line 89 of file RecoTauBuilderPlugins.h.

Referenced by beginEvent(), and RecoTauBuilderPlugin().

reco::tau::RecoTauVertexAssociator reco::tau::RecoTauBuilderPlugin::vertexAssociator_
private

Definition at line 92 of file RecoTauBuilderPlugins.h.

Referenced by beginEvent(), and primaryVertex().