Skip to content

Commit

Permalink
Make CandMatcher and NewCandMatcher aliases and not derived classes
Browse files Browse the repository at this point in the history
  • Loading branch information
guitargeek committed Sep 14, 2021
1 parent d62d750 commit f076690
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 24 deletions.
17 changes: 4 additions & 13 deletions CommonTools/CandAlgos/interface/CandMatcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,8 @@
#include "DataFormats/Candidate/interface/Candidate.h"
#include "CommonTools/CandUtils/interface/CandMapTrait.h"

namespace reco {
namespace modules {
template <typename S, typename Collection = CandidateCollection, typename D = DeltaR<reco::Candidate> >
class CandMatcher
: public Matcher<Collection, Collection, S, D, typename reco::helper::CandMapTrait<Collection>::type> {
public:
CandMatcher(const edm::ParameterSet& cfg)
: Matcher<Collection, Collection, S, D, typename reco::helper::CandMapTrait<Collection>::type>(cfg) {}
~CandMatcher() override {}
};

} // namespace modules
} // namespace reco
namespace reco::modules {
template <typename S, typename Collection = CandidateCollection, typename D = DeltaR<reco::Candidate> >
using CandMatcher = Matcher<Collection, Collection, S, D, typename reco::helper::CandMapTrait<Collection>::type>;
} // namespace reco::modules
#endif
15 changes: 4 additions & 11 deletions CommonTools/CandAlgos/interface/NewCandMatcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,8 @@
#include "CommonTools/UtilAlgos/interface/NewMatcher.h"
#include "DataFormats/Candidate/interface/Candidate.h"

namespace reco {
namespace modulesNew {
template <typename S, typename C1, typename C2, typename D = DeltaR<reco::Candidate> >
class CandMatcher : public Matcher<C1, C2, S, D> {
public:
CandMatcher(const edm::ParameterSet& cfg) : Matcher<C1, C2, S, D>(cfg) {}
~CandMatcher() override {}
};

} // namespace modulesNew
} // namespace reco
namespace reco::modulesNew {
template <typename S, typename C1, typename C2, typename D = DeltaR<reco::Candidate> >
using CandMatcher = Matcher<C1, C2, S, D>;
} // namespace reco::modulesNew
#endif

0 comments on commit f076690

Please sign in to comment.