PhysicsTools
PatAlgos
plugins
PATTriggerMatchSelector.h
Go to the documentation of this file.
1
#ifndef PhysicsTools_PatAlgos_PATTriggerMatchSelector_h
2
#define PhysicsTools_PatAlgos_PATTriggerMatchSelector_h
3
4
// -*- C++ -*-
5
//
6
// Package: PatAlgos
7
// Class: PATTriggerMatchSelector
8
//
18
//
19
//
20
21
#include <string>
22
#include <vector>
23
#include <map>
24
25
#include "
CommonTools/Utils/interface/StringCutObjectSelector.h
"
26
27
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
28
29
namespace
pat
{
30
31
template
<
typename
T1,
typename
T2>
32
class
PATTriggerMatchSelector
:
public
StringCutObjectSelector
<T2> {
33
public
:
34
PATTriggerMatchSelector
(
const
edm::ParameterSet
& iConfig)
35
:
StringCutObjectSelector
<T2>(iConfig.getParameter<
std
::
string
>(
"matchedCuts"
)) {}
36
37
bool
operator()
(
const
T1& patObj,
const
T2& trigObj)
const
{
38
return
StringCutObjectSelector<T2>::operator()
(trigObj);
39
}
40
};
41
42
}
// namespace pat
43
44
#endif
pat::PATTriggerMatchSelector
Definition:
PATTriggerMatchSelector.h:32
pat::PATTriggerMatchSelector::PATTriggerMatchSelector
PATTriggerMatchSelector(const edm::ParameterSet &iConfig)
Definition:
PATTriggerMatchSelector.h:34
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition:
ParameterSet.h:47
StringCutObjectSelector::operator()
bool operator()(const T &t) const
Definition:
StringCutObjectSelector.h:23
pat
Definition:
HeavyIon.h:7
std
Definition:
JetResolutionObject.h:76
StringCutObjectSelector.h
StringCutObjectSelector
Definition:
StringCutObjectSelector.h:16
ParameterSet.h
pat::PATTriggerMatchSelector::operator()
bool operator()(const T1 &patObj, const T2 &trigObj) const
Definition:
PATTriggerMatchSelector.h:37
Generated for CMSSW Reference Manual by
1.8.16