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 nGammas (const GenJet &jet)
 

Function Documentation

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

Definition at line 28 of file RecoTauTruthEmbedderPlugin.cc.

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

Referenced by PFRootEventManager::countChargedAndPhotons(), reco::PFTau::decayMode(), reco::tau::RecoTauTruthEmbedder::operator()(), PFRecoTauDiscriminationByInvMass::PFRecoTauDiscriminationByInvMass(), reco::PFTauDecayMode::PFTauDecayMode(), GenHIEventProducer::produce(), RecoTauMVADiscriminator::RecoTauMVADiscriminator(), and RecoTauMVATransform::RecoTauMVATransform().

28  {
29  unsigned int output = 0;
30  BOOST_FOREACH(const CandidatePtr &cand, jet.getJetConstituents()) {
31  if (cand->charge())
32  ++output;
33  }
34  return output;
35 }
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 GenJet &  jet)

Definition at line 37 of file RecoTauTruthEmbedderPlugin.cc.

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

Referenced by PFTauQualityCutWrapper::isolationGammaObjects(), reco::RecoTauPiZero::numberOfGammas(), reco::tau::RecoTauTruthEmbedder::operator()(), and PFTauQualityCutWrapper::signalGammaObjects().

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