CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
 Build a collection of piZeros from objects in the input jet. More...
 
 RecoTauPiZeroTrivialPlugin (const edm::ParameterSet &pset)
 
 ~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)
 
virtual ~RecoTauPiZeroBuilderPlugin ()
 
- 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

RecoTauQualityCuts qcuts_
 

Additional Inherited Members

- Public Types inherited from reco::tau::RecoTauPiZeroBuilderPlugin
typedef boost::ptr_vector
< RecoTauPiZero
PiZeroVector
 
typedef std::auto_ptr
< PiZeroVector
return_type
 

Detailed Description

Definition at line 27 of file RecoTauPiZeroTrivialPlugin.cc.

Constructor & Destructor Documentation

reco::tau::RecoTauPiZeroTrivialPlugin::RecoTauPiZeroTrivialPlugin ( const edm::ParameterSet pset)
explicit

Definition at line 36 of file RecoTauPiZeroTrivialPlugin.cc.

39  "qualityCuts").getParameterSet("signalQualityCuts")) {}
ParameterSet const & getParameterSet(std::string const &) const
RecoTauPiZeroBuilderPlugin(const edm::ParameterSet &pset)
reco::tau::RecoTauPiZeroTrivialPlugin::~RecoTauPiZeroTrivialPlugin ( )
inline

Definition at line 30 of file RecoTauPiZeroTrivialPlugin.cc.

30 {}

Member Function Documentation

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

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

Implements reco::tau::RecoTauPiZeroBuilderPlugin.

Definition at line 41 of file RecoTauPiZeroTrivialPlugin.cc.

References reco::tau::RecoTauQualityCuts::filterRefs(), reco::RecoTauPiZero::kTrivial, convertSQLitetoXML_cfg::output, reco::tau::pfGammas(), and qcuts_.

42  {
43  std::vector<PFCandidatePtr> pfGammaCands = qcuts_.filterRefs(pfGammas(jet));
45  output.reserve(pfGammaCands.size());
46 
47  BOOST_FOREACH(const PFCandidatePtr& gamma, pfGammaCands) {
48  std::auto_ptr<RecoTauPiZero> piZero(new RecoTauPiZero(
49  0, (*gamma).p4(), (*gamma).vertex(), 22, 1000, true,
51  piZero->addDaughter(gamma);
52  output.push_back(piZero);
53  }
54  return output.release();
55 }
Coll filterRefs(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 33 of file RecoTauPiZeroTrivialPlugin.cc.

Referenced by operator()().