Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extension of electron matching in nanoAOD (backport) #33347

Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 25 additions & 23 deletions PhysicsTools/HepMCCandAlgos/plugins/MCTruthMatchers.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,37 +10,39 @@

// Match by deltaR and deltaPt, ranking by deltaR (default)
typedef reco::PhysObjectMatcher<
reco::CandidateView,
reco::GenParticleCollection,
reco::MCMatchSelector<reco::CandidateView::value_type,
reco::GenParticleCollection::value_type>,
reco::MatchByDRDPt<reco::CandidateView::value_type,
reco::GenParticleCollection::value_type>
> MCMatcher;
reco::CandidateView,
reco::GenParticleCollection,
reco::MCMatchSelector<reco::CandidateView::value_type, reco::GenParticleCollection::value_type>,
reco::MatchByDRDPt<reco::CandidateView::value_type, reco::GenParticleCollection::value_type> >
MCMatcher;

// Alternative: match by deltaR and deltaPt, ranking by deltaPt
typedef reco::PhysObjectMatcher<
reco::CandidateView,
reco::GenParticleCollection,
reco::MCMatchSelector<reco::CandidateView::value_type,
reco::GenParticleCollection::value_type>,
reco::MatchByDRDPt<reco::CandidateView::value_type,
reco::GenParticleCollection::value_type>,
reco::MatchLessByDPt<reco::CandidateView,
reco::GenParticleCollection>
> MCMatcherByPt;
reco::CandidateView,
reco::GenParticleCollection,
reco::MCMatchSelector<reco::CandidateView::value_type, reco::GenParticleCollection::value_type>,
reco::MatchByDRDPt<reco::CandidateView::value_type, reco::GenParticleCollection::value_type>,
reco::MatchLessByDPt<reco::CandidateView, reco::GenParticleCollection> >
MCMatcherByPt;

// JET Match by deltaR, ranking by deltaR (default)
typedef reco::PhysObjectMatcher<
reco::CandidateView,
reco::GenJetCollection,
reco::MCMatchSelector<reco::CandidateView::value_type,
reco::GenJetCollection::value_type>,
reco::MatchByDR<reco::CandidateView::value_type,
reco::CandidateView::value_type>
> GenJetMatcher;
reco::CandidateView,
reco::GenJetCollection,
reco::MCMatchSelector<reco::CandidateView::value_type, reco::GenJetCollection::value_type>,
reco::MatchByDR<reco::CandidateView::value_type, reco::CandidateView::value_type> >
GenJetMatcher;

// JET Match by deltaR and dPt, ranking by deltaR
typedef reco::PhysObjectMatcher<
reco::CandidateView,
reco::GenJetCollection,
reco::MCMatchSelector<reco::CandidateView::value_type, reco::GenJetCollection::value_type>,
reco::MatchByDRDPt<reco::CandidateView::value_type, reco::GenJetCollection::value_type> >
GenJetMatcherDRPtByDR;

#include "FWCore/Framework/interface/MakerMacros.h"
DEFINE_FWK_MODULE(MCMatcher);
DEFINE_FWK_MODULE(MCMatcherByPt);
DEFINE_FWK_MODULE(GenJetMatcher);
DEFINE_FWK_MODULE(GenJetMatcherDRPtByDR);
Loading