CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
reco::tau::helpers Namespace Reference

Functions

unsigned int nCharged (const GenJet &jet)
 
unsigned int nCharged (const PFTau &tau)
 
unsigned int nGammas (const GenJet &jet)
 
unsigned int nGammas (const PFTau &tau)
 

Function Documentation

unsigned int reco::tau::helpers::nCharged ( const GenJet &  jet)
unsigned int reco::tau::helpers::nCharged ( const PFTau &  tau)

Definition at line 47 of file RecoTauObjectEmbedderPlugin.cc.

References reco::PFTau::signalPFChargedHadrCands().

47  {
48  return tau.signalPFChargedHadrCands().size();
49 }
unsigned int reco::tau::helpers::nGammas ( const GenJet &  jet)

Definition at line 38 of file RecoTauObjectEmbedderPlugin.cc.

References reco::Jet::getJetConstituents(), and convertSQLitetoXML_cfg::output.

Referenced by reco::RecoTauPiZero::numberOfGammas(), and reco::tau::RecoTauObjectEmbedder< T >::operator()().

38  {
39  unsigned int output = 0;
40  BOOST_FOREACH(const CandidatePtr &cand, jet.getJetConstituents()) {
41  if (cand->pdgId()==22)
42  ++output;
43  }
44  return output;
45 }
edm::Ptr< Candidate > CandidatePtr
persistent reference to an object in a collection of Candidate objects
Definition: CandidateFwd.h:25
unsigned int reco::tau::helpers::nGammas ( const PFTau &  tau)

Definition at line 50 of file RecoTauObjectEmbedderPlugin.cc.

References reco::PFTau::signalPiZeroCandidates().

50  {
51  return tau.signalPiZeroCandidates().size();
52 }