Main Page
Namespaces
Classes
Package Documentation
HLTrigger
HLTfilters
plugins
HLTBool.cc
Go to the documentation of this file.
1
10
#include "
HLTBool.h
"
11
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
12
#include "
FWCore/ParameterSet/interface/ConfigurationDescriptions.h
"
13
#include "
FWCore/ParameterSet/interface/ParameterSetDescription.h
"
14
15
//
16
// constructors and destructor
17
//
18
HLTBool::HLTBool
(
const
edm::ParameterSet
& iConfig) : result_(iConfig.getParameter<
bool
>(
"result"
)) {
19
LogDebug
(
"HLTBool"
) <<
" configured result is: "
<<
result_
;
20
}
21
22
HLTBool::~HLTBool
() =
default
;
23
24
void
HLTBool::fillDescriptions
(
edm::ConfigurationDescriptions
& descriptions) {
25
edm::ParameterSetDescription
desc;
26
desc.
add
<
bool
>(
"result"
,
false
);
27
descriptions.
add
(
"hltBool"
, desc);
28
}
29
30
//
31
// member functions
32
//
33
34
// ------------ method called to produce the data ------------
35
bool
HLTBool::filter
(
edm::StreamID
,
edm::Event
&
event
,
edm::EventSetup
const
&
setup
)
const
{
return
result_
; }
LogDebug
#define LogDebug(id)
Definition:
MessageLogger.h:670
HLTBool::filter
bool filter(edm::StreamID, edm::Event &, edm::EventSetup const &) const final
Definition:
HLTBool.cc:35
MessageLogger.h
edm::StreamID
Definition:
StreamID.h:30
edm::ParameterSetDescription
Definition:
ParameterSetDescription.h:52
HLTBool.h
ParameterSetDescription.h
HLTBool::HLTBool
HLTBool(const edm::ParameterSet &)
Definition:
HLTBool.cc:18
HLTBool::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition:
HLTBool.cc:24
edm::EventSetup
Definition:
EventSetup.h:57
singleTopDQM_cfi.setup
setup
SETUP
Definition:
singleTopDQM_cfi.py:36
edm::ParameterSetDescription::add
ParameterDescriptionBase * add(U const &iLabel, T const &value)
Definition:
ParameterSetDescription.h:95
electrons_cff.bool
bool
Definition:
electrons_cff.py:371
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition:
ConfigurationDescriptions.cc:57
HLTBool::result_
bool result_
boolean result
Definition:
HLTBool.h:36
edm::ParameterSet
Definition:
ParameterSet.h:36
HLTBool::~HLTBool
~HLTBool() override
ConfigurationDescriptions.h
edm::Event
Definition:
Event.h:72
edm::ConfigurationDescriptions
Definition:
ConfigurationDescriptions.h:28
event
Definition:
event.py:1
Generated for CMSSW Reference Manual by
1.8.11