CMS 3D CMS Logo

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

List of all members.

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_

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.

                                :RecoTauPiZeroBuilderPlugin(pset),
    qcuts_(pset.getParameterSet(
          "qualityCuts").getParameterSet("signalQualityCuts")) {}
reco::tau::RecoTauPiZeroTrivialPlugin::~RecoTauPiZeroTrivialPlugin ( ) [inline]

Definition at line 30 of file RecoTauPiZeroTrivialPlugin.cc.

{}

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_.

                                {
  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();
}

Member Data Documentation

Definition at line 33 of file RecoTauPiZeroTrivialPlugin.cc.

Referenced by operator()().