CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

reco::tau::RecoTauBuilderPlugin Class Reference

#include <RecoTauBuilderPlugins.h>

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

List of all members.

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 > &regionalExtras) const =0
const reco::VertexRefprimaryVertex () const
 Get primary vertex associated to this event.
 RecoTauBuilderPlugin (const edm::ParameterSet &pset)
virtual ~RecoTauBuilderPlugin ()

Private Attributes

edm::Handle
< PFCandidateCollection
pfCands_
edm::InputTag pfCandSrc_
reco::VertexRef pv_
edm::InputTag pvSrc_

Detailed Description

Definition at line 52 of file RecoTauBuilderPlugins.h.


Member Typedef Documentation

Definition at line 54 of file RecoTauBuilderPlugins.h.

Definition at line 55 of file RecoTauBuilderPlugins.h.


Constructor & Destructor Documentation

reco::tau::RecoTauBuilderPlugin::RecoTauBuilderPlugin ( const edm::ParameterSet pset) [inline, explicit]

Definition at line 57 of file RecoTauBuilderPlugins.h.

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

                                                              :
      RecoTauEventHolderPlugin(pset){
        pfCandSrc_ = pset.getParameter<edm::InputTag>("pfCandSrc");
        pvSrc_ = pset.getParameter<edm::InputTag>("primaryVertexSrc");
      };
virtual reco::tau::RecoTauBuilderPlugin::~RecoTauBuilderPlugin ( ) [inline, virtual]

Definition at line 63 of file RecoTauBuilderPlugins.h.

{}

Member Function Documentation

void reco::tau::RecoTauBuilderPlugin::beginEvent ( ) [virtual]

Reimplemented from reco::tau::RecoTauEventHolderPlugin.

Definition at line 8 of file RecoTauBuilderPlugins.cc.

References reco::tau::RecoTauEventHolderPlugin::evt(), edm::Event::getByLabel(), pfCands_, pfCandSrc_, pv_, and pvSrc_.

                                      {
  evt()->getByLabel(pfCandSrc_, pfCands_);

  edm::Handle<reco::VertexCollection> pvHandle;
  evt()->getByLabel(pvSrc_, pvHandle);
  // Update the primary vertex
  if (pvHandle->size()) {
    pv_ = reco::VertexRef(pvHandle, 0);
  } else {
    edm::LogError("NoPrimaryVertex") << "No primary vertex found in the event!";
  }
}
const edm::Handle<PFCandidateCollection>& reco::tau::RecoTauBuilderPlugin::getPFCands ( ) const [inline]

Hack to be able to convert Ptrs to Refs.

Definition at line 73 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

const reco::VertexRef& reco::tau::RecoTauBuilderPlugin::primaryVertex ( ) const [inline]

Get primary vertex associated to this event.

Definition at line 77 of file RecoTauBuilderPlugins.h.

References pv_.

Referenced by reco::tau::RecoTauBuilderCombinatoricPlugin::operator()(), and reco::tau::RecoTauBuilderConePlugin::operator()().

{ return pv_; }

Member Data Documentation

Definition at line 89 of file RecoTauBuilderPlugins.h.

Referenced by beginEvent(), and getPFCands().

Definition at line 87 of file RecoTauBuilderPlugins.h.

Referenced by beginEvent(), and RecoTauBuilderPlugin().

Definition at line 85 of file RecoTauBuilderPlugins.h.

Referenced by beginEvent(), and primaryVertex().

Definition at line 84 of file RecoTauBuilderPlugins.h.

Referenced by beginEvent(), and RecoTauBuilderPlugin().