CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
reco::tau::RecoTauPiZeroTrivialPlugin Class Reference
Inheritance diagram for reco::tau::RecoTauPiZeroTrivialPlugin:
reco::tau::RecoTauPiZeroBuilderPlugin reco::tau::RecoTauEventHolderPlugin reco::tau::RecoTauNamedPlugin

Public Member Functions

return_type operator() (const reco::PFJet &jet) const override
 Build a collection of piZeros from objects in the input jet. More...
 
 RecoTauPiZeroTrivialPlugin (const edm::ParameterSet &pset, edm::ConsumesCollector &&iC)
 
 ~RecoTauPiZeroTrivialPlugin ()
 
- Public Member Functions inherited from reco::tau::RecoTauPiZeroBuilderPlugin
virtual void beginEvent ()
 Hook called at the beginning of the event. More...
 
 RecoTauPiZeroBuilderPlugin (const edm::ParameterSet &pset, edm::ConsumesCollector &&iC)
 
virtual ~RecoTauPiZeroBuilderPlugin ()
 
- Public Member Functions inherited from reco::tau::RecoTauEventHolderPlugin
const edm::Eventevt () const
 
edm::Eventevt ()
 
const edm::EventSetupevtSetup () const
 
 RecoTauEventHolderPlugin (const edm::ParameterSet &pset)
 
void setup (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

RecoTauQualityCuts qcuts_
 

Additional Inherited Members

- Public Types inherited from reco::tau::RecoTauPiZeroBuilderPlugin
typedef boost::ptr_vector< RecoTauPiZeroPiZeroVector
 
typedef std::auto_ptr< PiZeroVectorreturn_type
 

Detailed Description

Definition at line 26 of file RecoTauPiZeroTrivialPlugin.cc.

Constructor & Destructor Documentation

reco::tau::RecoTauPiZeroTrivialPlugin::RecoTauPiZeroTrivialPlugin ( const edm::ParameterSet pset,
edm::ConsumesCollector &&  iC 
)
explicit

Definition at line 35 of file RecoTauPiZeroTrivialPlugin.cc.

38  "qualityCuts").getParameterSet("signalQualityCuts")) {}
RecoTauPiZeroBuilderPlugin(const edm::ParameterSet &pset, edm::ConsumesCollector &&iC)
ParameterSet const & getParameterSet(std::string const &) const
def move(src, dest)
Definition: eostools.py:510
reco::tau::RecoTauPiZeroTrivialPlugin::~RecoTauPiZeroTrivialPlugin ( )
inline

Definition at line 29 of file RecoTauPiZeroTrivialPlugin.cc.

References metsig::jet, and operator()().

29 {}

Member Function Documentation

RecoTauPiZeroBuilderPlugin::return_type reco::tau::RecoTauPiZeroTrivialPlugin::operator() ( const reco::PFJet ) const
overridevirtual

Build a collection of piZeros from objects in the input jet.

Implements reco::tau::RecoTauPiZeroBuilderPlugin.

Definition at line 40 of file RecoTauPiZeroTrivialPlugin.cc.

References DEFINE_EDM_PLUGIN, reco::tau::RecoTauQualityCuts::filterCandRefs(), CustomPhysics_cfi::gamma, reco::RecoTauPiZero::kTrivial, convertSQLitetoXML_cfg::output, reco::tau::pfGammas(), and qcuts_.

Referenced by ~RecoTauPiZeroTrivialPlugin().

41  {
42  std::vector<PFCandidatePtr> pfGammaCands = qcuts_.filterCandRefs(pfGammas(jet));
44  output.reserve(pfGammaCands.size());
45 
46  BOOST_FOREACH(const PFCandidatePtr& gamma, pfGammaCands) {
47  std::auto_ptr<RecoTauPiZero> piZero(new RecoTauPiZero(
48  0, (*gamma).p4(), (*gamma).vertex(), 22, 1000, true,
50  piZero->addDaughter(gamma);
51  output.push_back(piZero);
52  }
53  return output.release();
54 }
Coll filterCandRefs(const Coll &refcoll, bool invert=false) const
Filter a ref vector of PFCandidates.
std::vector< PFCandidatePtr > pfGammas(const PFJet &jet, bool sort=true)
Extract all pfGammas from a PFJet.
boost::ptr_vector< RecoTauPiZero > PiZeroVector
edm::Ptr< PFCandidate > PFCandidatePtr
persistent Ptr to a PFCandidate

Member Data Documentation

RecoTauQualityCuts reco::tau::RecoTauPiZeroTrivialPlugin::qcuts_
private

Definition at line 32 of file RecoTauPiZeroTrivialPlugin.cc.

Referenced by operator()().