src
HLTrigger
HLTfilters
plugins
HLTSmartSinglet.h
Go to the documentation of this file.
1
#ifndef HLTSmartSinglet_h
2
#define HLTSmartSinglet_h
3
18
#include "
HLTrigger/HLTcore/interface/HLTFilter.h
"
19
#include "
FWCore/ParameterSet/interface/ConfigurationDescriptions.h
"
20
#include <vector>
21
22
#include "
CommonTools/Utils/interface/StringCutObjectSelector.h
"
23
#include <string>
24
25
//
26
// class declaration
27
//
28
29
template
<
typename
T>
30
class
HLTSmartSinglet
:
public
HLTFilter
{
31
public
:
32
explicit
HLTSmartSinglet
(
const
edm::ParameterSet
&);
33
~HLTSmartSinglet
()
override
;
34
static
void
fillDescriptions
(
edm::ConfigurationDescriptions
& descriptions);
35
bool
hltFilter
(
edm::Event
&,
36
const
edm::EventSetup
&,
37
trigger::TriggerFilterObjectWithRefs
& filterproduct)
const override
;
38
39
private
:
40
edm::InputTag
inputTag_
;
// input tag identifying product
41
edm::EDGetTokenT<std::vector<T>
>
inputToken_
;
// token identifying product
42
int
triggerType_
;
// triggerType
43
std::string
cut_
;
// smart cut
44
int
min_N_
;
// number of objects passing cuts required
45
46
StringCutObjectSelector<T, true>
select_
;
// smart selector
47
};
48
49
#endif //HLTSmartSinglet_h
HLTSmartSinglet::HLTSmartSinglet
HLTSmartSinglet(const edm::ParameterSet &)
Definition:
HLTSmartSinglet.cc:26
HLTFilter.h
StringCutObjectSelector< T, true >
trigger::TriggerFilterObjectWithRefs
Definition:
TriggerFilterObjectWithRefs.h:35
HLTSmartSinglet
Definition:
HLTSmartSinglet.h:30
HLTSmartSinglet::hltFilter
bool hltFilter(edm::Event &, const edm::EventSetup &, trigger::TriggerFilterObjectWithRefs &filterproduct) const override
Definition:
HLTSmartSinglet.cc:57
HLTSmartSinglet::triggerType_
int triggerType_
Definition:
HLTSmartSinglet.h:42
HLTSmartSinglet::inputTag_
edm::InputTag inputTag_
Definition:
HLTSmartSinglet.h:40
edm::EDGetTokenT
Definition:
EDGetToken.h:37
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
StringCutObjectSelector.h
HLTSmartSinglet::cut_
std::string cut_
Definition:
HLTSmartSinglet.h:43
HLTFilter
Definition:
HLTFilter.h:28
HLTSmartSinglet::~HLTSmartSinglet
~HLTSmartSinglet() override
HLTSmartSinglet::min_N_
int min_N_
Definition:
HLTSmartSinglet.h:44
edm::EventSetup
Definition:
EventSetup.h:56
HLTSmartSinglet::inputToken_
edm::EDGetTokenT< std::vector< T > > inputToken_
Definition:
HLTSmartSinglet.h:41
edm::InputTag
Definition:
InputTag.h:15
edm::ParameterSet
Definition:
ParameterSet.h:47
ConfigurationDescriptions.h
edm::Event
Definition:
Event.h:73
HLTSmartSinglet::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition:
HLTSmartSinglet.cc:41
HLTSmartSinglet::select_
StringCutObjectSelector< T, true > select_
Definition:
HLTSmartSinglet.h:46
edm::ConfigurationDescriptions
Definition:
ConfigurationDescriptions.h:28
Generated for CMSSW Reference Manual by
1.8.14