CMS 3D CMS Logo

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)

Definition at line 27 of file RecoTauObjectEmbedderPlugin.cc.

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

Referenced by reco::tau::RecoTauObjectEmbedder< T >::operator()().

27  {
28  unsigned int output = 0;
29  for(auto const& cand : jet.getJetConstituents()) {
30  if (cand->charge())
31  ++output;
32  }
33  return output;
34 }
unsigned int reco::tau::helpers::nCharged ( const PFTau tau)

Definition at line 45 of file RecoTauObjectEmbedderPlugin.cc.

References reco::PFTau::signalChargedHadrCands().

45  {
46  return tau.signalChargedHadrCands().size();
47 }
unsigned int reco::tau::helpers::nGammas ( const GenJet jet)

Definition at line 36 of file RecoTauObjectEmbedderPlugin.cc.

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

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

36  {
37  unsigned int output = 0;
38  for(auto const& cand : jet.getJetConstituents()) {
39  if (cand->pdgId()==22)
40  ++output;
41  }
42  return output;
43 }
unsigned int reco::tau::helpers::nGammas ( const PFTau tau)

Definition at line 48 of file RecoTauObjectEmbedderPlugin.cc.

References reco::PFTau::signalPiZeroCandidates().

48  {
49  return tau.signalPiZeroCandidates().size();
50 }