CMS 3D CMS Logo

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::PFTauoutput_type
 
typedef std::unique_ptr< output_typereturn_type
 

Public Member Functions

void beginEvent () override
 
const edm::Handle< edm::View< reco::Candidate > > & getPFCands () const
 Hack to be able to convert Ptrs to Refs. More...
 
virtual return_type operator() (const reco::JetBaseRef &, const std::vector< reco::PFRecoTauChargedHadron > &, const std::vector< reco::RecoTauPiZero > &, const std::vector< CandidatePtr > &) const =0
 
reco::VertexRef primaryVertex (const reco::JetBaseRef &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
edm::Eventevt ()
 
const edm::Eventevt () const
 
const edm::EventSetupevtSetup () 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< edm::View< reco::Candidate > > pfCand_token
 
edm::Handle< edm::View< reco::Candidate > > pfCands_
 
edm::InputTag pfCandSrc_
 
reco::tau::RecoTauVertexAssociator vertexAssociator_
 

Detailed Description

Definition at line 56 of file RecoTauBuilderPlugins.h.

Member Typedef Documentation

◆ output_type

Definition at line 58 of file RecoTauBuilderPlugins.h.

◆ return_type

Definition at line 59 of file RecoTauBuilderPlugins.h.

Constructor & Destructor Documentation

◆ RecoTauBuilderPlugin()

reco::tau::RecoTauBuilderPlugin::RecoTauBuilderPlugin ( const edm::ParameterSet pset,
edm::ConsumesCollector &&  iC 
)
inlineexplicit

Definition at line 61 of file RecoTauBuilderPlugins.h.

63  // The vertex association configuration is specified with the quality cuts.
64  vertexAssociator_(pset.getParameter<edm::ParameterSet>("qualityCuts"), std::move(iC)) {
65  pfCandSrc_ = pset.getParameter<edm::InputTag>("pfCandSrc");
67  };

References pfCand_token, pfCandSrc_, and muonDTDigis_cfi::pset.

◆ ~RecoTauBuilderPlugin()

reco::tau::RecoTauBuilderPlugin::~RecoTauBuilderPlugin ( )
inlineoverride

Definition at line 69 of file RecoTauBuilderPlugins.h.

69 {}

Member Function Documentation

◆ beginEvent()

void reco::tau::RecoTauBuilderPlugin::beginEvent ( )
overridevirtual

◆ getPFCands()

const edm::Handle<edm::View<reco::Candidate> >& reco::tau::RecoTauBuilderPlugin::getPFCands ( ) const
inline

Hack to be able to convert Ptrs to Refs.

Definition at line 80 of file RecoTauBuilderPlugins.h.

80 { return pfCands_; };

References pfCands_.

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

◆ operator()()

virtual return_type reco::tau::RecoTauBuilderPlugin::operator() ( const reco::JetBaseRef ,
const std::vector< reco::PFRecoTauChargedHadron > &  ,
const std::vector< reco::RecoTauPiZero > &  ,
const std::vector< CandidatePtr > &   
) 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.

◆ primaryVertex() [1/2]

reco::VertexRef reco::tau::RecoTauBuilderPlugin::primaryVertex ( const reco::JetBaseRef jet) const
inline

◆ primaryVertex() [2/2]

reco::VertexRef reco::tau::RecoTauBuilderPlugin::primaryVertex ( const reco::PFTau tau,
bool  useJet = false 
) const
inline

Get primary vertex associated to this tau.

Definition at line 87 of file RecoTauBuilderPlugins.h.

87  {
88  return vertexAssociator_.associatedVertex(tau, useJet);
89  }

References reco::tau::RecoTauVertexAssociator::associatedVertex(), metsig::tau, and vertexAssociator_.

Member Data Documentation

◆ pfCand_token

edm::EDGetTokenT<edm::View<reco::Candidate> > reco::tau::RecoTauBuilderPlugin::pfCand_token
private

Definition at line 100 of file RecoTauBuilderPlugins.h.

Referenced by beginEvent(), and RecoTauBuilderPlugin().

◆ pfCands_

edm::Handle<edm::View<reco::Candidate> > reco::tau::RecoTauBuilderPlugin::pfCands_
private

Definition at line 98 of file RecoTauBuilderPlugins.h.

Referenced by beginEvent(), and getPFCands().

◆ pfCandSrc_

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

Definition at line 96 of file RecoTauBuilderPlugins.h.

Referenced by RecoTauBuilderPlugin().

◆ vertexAssociator_

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

Definition at line 99 of file RecoTauBuilderPlugins.h.

Referenced by beginEvent(), and primaryVertex().

reco::tau::RecoTauEventHolderPlugin::evt
const edm::Event * evt() const
Definition: RecoTauPluginsCommon.cc:16
metsig::tau
Definition: SignAlgoResolutions.h:49
reco::tau::RecoTauBuilderPlugin::pfCand_token
edm::EDGetTokenT< edm::View< reco::Candidate > > pfCand_token
Definition: RecoTauBuilderPlugins.h:100
edm::ConsumesCollector::consumes
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
Definition: ConsumesCollector.h:55
edm::Event::getByToken
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:535
edm::View
Definition: CaloClusterFwd.h:14
reco::tau::RecoTauVertexAssociator::associatedVertex
reco::VertexRef associatedVertex(const Jet &jet) const
Definition: RecoTauVertexAssociator.cc:378
edm::ParameterSet
Definition: ParameterSet.h:47
reco::tau::RecoTauVertexAssociator::setEvent
void setEvent(const edm::Event &evt)
Load the vertices from the event.
Definition: RecoTauVertexAssociator.cc:242
reco::tau::RecoTauBuilderPlugin::vertexAssociator_
reco::tau::RecoTauVertexAssociator vertexAssociator_
Definition: RecoTauBuilderPlugins.h:99
eostools.move
def move(src, dest)
Definition: eostools.py:511
metsig::jet
Definition: SignAlgoResolutions.h:47
reco::tau::RecoTauBuilderPlugin::pfCandSrc_
edm::InputTag pfCandSrc_
Definition: RecoTauBuilderPlugins.h:96
reco::tau::RecoTauEventHolderPlugin::RecoTauEventHolderPlugin
RecoTauEventHolderPlugin(const edm::ParameterSet &pset)
Definition: RecoTauPluginsCommon.cc:13
edm::InputTag
Definition: InputTag.h:15
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27
reco::tau::RecoTauBuilderPlugin::pfCands_
edm::Handle< edm::View< reco::Candidate > > pfCands_
Definition: RecoTauBuilderPlugins.h:98