1 |
//
|
2 |
// $Id: PATTrigMatcher.cc,v 1.3 2008/10/09 12:32:30 adamwo Exp $
|
3 |
//
|
4 |
#include "PhysicsTools/PatAlgos/plugins/PATTrigMatchSelector.h"
|
5 |
#include "PhysicsTools/UtilAlgos/interface/PhysObjectMatcher.h"
|
6 |
#include "PhysicsTools/UtilAlgos/interface/MatchByDRDPt.h"
|
7 |
#include "PhysicsTools/UtilAlgos/interface/MatchLessByDPt.h"
|
8 |
|
9 |
#include "DataFormats/Candidate/interface/Candidate.h"
|
10 |
#include "DataFormats/PatCandidates/interface/TriggerPrimitive.h"
|
11 |
|
12 |
|
13 |
// using namespace pat;
|
14 |
// using namespace reco;
|
15 |
|
16 |
|
17 |
/// Match by deltaR and deltaPt, ranking by deltaR (default)
|
18 |
typedef reco::PhysObjectMatcher<
|
19 |
reco::CandidateView,
|
20 |
pat::TriggerPrimitiveCollection,
|
21 |
pat::PATTrigMatchSelector<reco::CandidateView::value_type,
|
22 |
pat::TriggerPrimitiveCollection::value_type>,
|
23 |
reco::MatchByDRDPt<reco::CandidateView::value_type,
|
24 |
pat::TriggerPrimitiveCollection::value_type>
|
25 |
> PATTrigMatcher;
|
26 |
|
27 |
/// Alternative: match by deltaR and deltaPt, ranking by deltaPt
|
28 |
typedef reco::PhysObjectMatcher<
|
29 |
reco::CandidateView,
|
30 |
pat::TriggerPrimitiveCollection,
|
31 |
pat::PATTrigMatchSelector<reco::CandidateView::value_type,
|
32 |
pat::TriggerPrimitiveCollection::value_type>,
|
33 |
reco::MatchByDRDPt<reco::CandidateView::value_type,
|
34 |
pat::TriggerPrimitiveCollection::value_type>,
|
35 |
reco::MatchLessByDPt<reco::CandidateView,
|
36 |
pat::TriggerPrimitiveCollection >
|
37 |
> PATTrigMatcherByPt;
|
38 |
|
39 |
|
40 |
#include "FWCore/Framework/interface/MakerMacros.h"
|
41 |
DEFINE_FWK_MODULE( PATTrigMatcher );
|
42 |
DEFINE_FWK_MODULE( PATTrigMatcherByPt );
|
43 |
|