Public Member Functions | |
return_type | operator() (const reco::PFJet &jet) const |
Build a collection of piZeros from objects in the input jet. | |
RecoTauPiZeroTrivialPlugin (const edm::ParameterSet &pset) | |
~RecoTauPiZeroTrivialPlugin () | |
Private Attributes | |
RecoTauQualityCuts | qcuts_ |
Definition at line 27 of file RecoTauPiZeroTrivialPlugin.cc.
reco::tau::RecoTauPiZeroTrivialPlugin::RecoTauPiZeroTrivialPlugin | ( | const edm::ParameterSet & | pset | ) | [explicit] |
Definition at line 36 of file RecoTauPiZeroTrivialPlugin.cc.
:RecoTauPiZeroBuilderPlugin(pset), qcuts_(pset.getParameterSet( "qualityCuts").getParameterSet("signalQualityCuts")) {}
reco::tau::RecoTauPiZeroTrivialPlugin::~RecoTauPiZeroTrivialPlugin | ( | ) | [inline] |
Definition at line 30 of file RecoTauPiZeroTrivialPlugin.cc.
{}
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_.
{ std::vector<PFCandidatePtr> pfGammaCands = qcuts_.filterRefs(pfGammas(jet)); PiZeroVector output; output.reserve(pfGammaCands.size()); BOOST_FOREACH(const PFCandidatePtr& gamma, pfGammaCands) { std::auto_ptr<RecoTauPiZero> piZero(new RecoTauPiZero( 0, (*gamma).p4(), (*gamma).vertex(), 22, 1000, true, RecoTauPiZero::kTrivial)); piZero->addDaughter(gamma); output.push_back(piZero); } return output.release(); }
Definition at line 33 of file RecoTauPiZeroTrivialPlugin.cc.
Referenced by operator()().