Functions | |
unsigned int | nCharged (const GenJet &jet) |
unsigned int | nCharged (const PFTau &tau) |
unsigned int | nGammas (const PFTau &tau) |
unsigned int | nGammas (const GenJet &jet) |
unsigned int reco::tau::helpers::nCharged | ( | const GenJet & | jet | ) |
Definition at line 29 of file RecoTauObjectEmbedderPlugin.cc.
References reco::Jet::getJetConstituents(), and convertSQLitetoXML_cfg::output.
Referenced by PFRootEventManager::countChargedAndPhotons(), reco::PFTau::decayMode(), reco::tau::RecoTauObjectEmbedder< T >::operator()(), PFRecoTauDiscriminationByInvMass::PFRecoTauDiscriminationByInvMass(), reco::PFTauDecayMode::PFTauDecayMode(), GenHIEventProducer::produce(), reco::tau::RecoTauDiscriminantInvariantWidth::RecoTauDiscriminantInvariantWidth(), RecoTauMVADiscriminator::RecoTauMVADiscriminator(), and RecoTauMVATransform::RecoTauMVATransform().
{ unsigned int output = 0; BOOST_FOREACH(const CandidatePtr &cand, jet.getJetConstituents()) { if (cand->charge()) ++output; } return output; }
unsigned int reco::tau::helpers::nCharged | ( | const PFTau & | tau | ) |
Definition at line 47 of file RecoTauObjectEmbedderPlugin.cc.
References reco::PFTau::signalPFChargedHadrCands(), and edm::RefVector< C, T, F >::size().
{ return tau.signalPFChargedHadrCands().size(); }
unsigned int reco::tau::helpers::nGammas | ( | const PFTau & | tau | ) |
Definition at line 50 of file RecoTauObjectEmbedderPlugin.cc.
References reco::PFTau::signalPiZeroCandidates().
{ return tau.signalPiZeroCandidates().size(); }
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 PFTauQualityCutWrapper::isolationGammaObjects(), reco::RecoTauPiZero::numberOfGammas(), reco::tau::RecoTauObjectEmbedder< T >::operator()(), and PFTauQualityCutWrapper::signalGammaObjects().
{ unsigned int output = 0; BOOST_FOREACH(const CandidatePtr &cand, jet.getJetConstituents()) { if (cand->pdgId()==22) ++output; } return output; }