15 #include <boost/foreach.hpp> 26 namespace reco {
namespace tau {
41 if (cand->pdgId()==22)
60 jetMatchSrc_(pset.getParameter<
edm::InputTag>(
"jetTruthMatch")) {}
62 void operator()(
PFTau&)
const override;
63 void beginEvent()
override;
72 evt()->getByLabel(jetMatchSrc_, jetMatch_);
98 "RecoTauTruthEmbedder");
102 "RecoTauPFTauEmbedder");
unsigned int nGammas(const GenJet &jet)
bool isNonnull() const
Checks for non-null.
const PFJetRef & jetRef() const
void beginEvent() override
PFTau::hadronicDecayMode translateDecayMode(unsigned int nCharged, unsigned int nPiZero)
virtual Constituents getJetConstituents() const
list of constituents
const std::vector< RecoTauPiZero > & signalPiZeroCandidates() const
Retrieve the association of signal region gamma candidates into candidate PiZeros.
void setalternatLorentzVect(const math::XYZTLorentzVector &)
~RecoTauObjectEmbedder() override
Jets made from MC generator particles.
edm::InputTag jetMatchSrc_
void setbremsRecoveryEOverPLead(const float &)
void operator()(PFTau &) const override
unsigned int nCharged(const GenJet &jet)
edm::Handle< edm::Association< T > > jetMatch_
RecoTauObjectEmbedder(const edm::ParameterSet &pset, edm::ConsumesCollector &&iC)
#define DEFINE_EDM_PLUGIN(factory, type, name)
const std::vector< reco::PFCandidatePtr > & signalPFChargedHadrCands() const
Charged hadrons in signal region.