Public Member Functions | |
virtual void | beginEvent () |
virtual void | operator() (PFTau &) const |
RecoTauObjectEmbedder (const edm::ParameterSet &pset) | |
virtual | ~RecoTauObjectEmbedder () |
Private Attributes | |
edm::Handle< edm::Association < T > > | jetMatch_ |
edm::InputTag | jetMatchSrc_ |
Definition at line 56 of file RecoTauObjectEmbedderPlugin.cc.
reco::tau::RecoTauObjectEmbedder< T >::RecoTauObjectEmbedder | ( | const edm::ParameterSet & | pset | ) | [inline, explicit] |
Definition at line 58 of file RecoTauObjectEmbedderPlugin.cc.
:RecoTauModifierPlugin(pset), jetMatchSrc_(pset.getParameter<edm::InputTag>("jetTruthMatch")) {}
virtual reco::tau::RecoTauObjectEmbedder< T >::~RecoTauObjectEmbedder | ( | ) | [inline, virtual] |
Definition at line 61 of file RecoTauObjectEmbedderPlugin.cc.
{}
void reco::tau::RecoTauObjectEmbedder< T >::beginEvent | ( | ) | [virtual] |
Reimplemented from reco::tau::RecoTauModifierPlugin.
Definition at line 71 of file RecoTauObjectEmbedderPlugin.cc.
{ evt()->getByLabel(jetMatchSrc_, jetMatch_); }
void reco::tau::RecoTauObjectEmbedder< T >::operator() | ( | PFTau & | tau | ) | const [virtual] |
Implements reco::tau::RecoTauModifierPlugin.
Definition at line 76 of file RecoTauObjectEmbedderPlugin.cc.
References edm::Ref< C, T, F >::isNonnull(), reco::PFTau::jetRef(), reco::tau::helpers::nCharged(), reco::tau::helpers::nGammas(), reco::BaseTau::setalternatLorentzVect(), reco::PFTau::setbremsRecoveryEOverPLead(), and reco::tau::translateDecayMode().
{ // Get the matched object that is matched to the same jet as the current tau, // if it exists edm::Ref<T> matchedObject = (*jetMatch_)[tau.jetRef()]; if (matchedObject.isNonnull()) { // Store our matched object information tau.setalternatLorentzVect(matchedObject->p4()); // Store our generator decay mode tau.setbremsRecoveryEOverPLead( reco::tau::translateDecayMode( helpers::nCharged(*matchedObject), helpers::nGammas(*matchedObject)/2) ); } else { tau.setbremsRecoveryEOverPLead(-10); } }
edm::Handle<edm::Association<T> > reco::tau::RecoTauObjectEmbedder< T >::jetMatch_ [private] |
Definition at line 66 of file RecoTauObjectEmbedderPlugin.cc.
edm::InputTag reco::tau::RecoTauObjectEmbedder< T >::jetMatchSrc_ [private] |
Definition at line 65 of file RecoTauObjectEmbedderPlugin.cc.