src
FWCore
Framework
src
TriggerResultInserter.cc
Go to the documentation of this file.
1
2
#include "
FWCore/Framework/src/TriggerResultInserter.h
"
3
#include "
DataFormats/Common/interface/TriggerResults.h
"
4
#include "
FWCore/Framework/interface/Event.h
"
5
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
6
7
#include <memory>
8
9
namespace
edm
{
10
TriggerResultInserter::TriggerResultInserter
(
const
ParameterSet
&
pset
,
unsigned
int
iNStreams)
11
: resultsPerStream_(iNStreams), pset_id_(
pset
.
id
()), token_{
produces
()} {}
12
13
void
TriggerResultInserter::setTrigResultForStream
(
unsigned
int
iStreamIndex,
const
TrigResPtr
& trptr) {
14
resultsPerStream_
[iStreamIndex] = trptr;
15
}
16
17
void
TriggerResultInserter::produce
(
StreamID
id
,
edm::Event
&
e
,
edm::EventSetup
const
&)
const
{
18
e
.emplace(
token_
, *
resultsPerStream_
[
id
.
value
()],
pset_id_
);
19
}
20
}
// namespace edm
edm::TriggerResultInserter::TrigResPtr
std::shared_ptr< HLTGlobalStatus > TrigResPtr
Definition:
TriggerResultInserter.h:32
edm::ProductRegistryHelper::produces
auto produces() noexcept
Definition:
ProductRegistryHelper.h:123
edm::StreamID
Definition:
StreamID.h:30
Event.h
TriggerResults.h
muonDTDigis_cfi.pset
pset
Definition:
muonDTDigis_cfi.py:27
MillePedeFileConverter_cfg.e
e
Definition:
MillePedeFileConverter_cfg.py:37
l1ctLayer2EG_cff.id
id
Definition:
l1ctLayer2EG_cff.py:86
ParameterSet.h
TriggerResultInserter.h
edm::TriggerResultInserter::pset_id_
ParameterSetID pset_id_
Definition:
TriggerResultInserter.h:46
edm::EventSetup
Definition:
EventSetup.h:56
edm::TriggerResultInserter::TriggerResultInserter
TriggerResultInserter(edm::ParameterSet const &ps)
relativeConstraints.value
value
Definition:
relativeConstraints.py:53
edm::TriggerResultInserter::produce
void produce(StreamID id, edm::Event &e, edm::EventSetup const &c) const final
Definition:
TriggerResultInserter.cc:17
edm::TriggerResultInserter::setTrigResultForStream
void setTrigResultForStream(unsigned int iStreamIndex, const TrigResPtr &trptr)
Definition:
TriggerResultInserter.cc:13
edm::TriggerResultInserter::token_
EDPutTokenT< TriggerResults > token_
Definition:
TriggerResultInserter.h:47
edm
HLT enums.
Definition:
AlignableModifier.h:19
edm::ParameterSet
Definition:
ParameterSet.h:48
edm::Event
Definition:
Event.h:73
edm::TriggerResultInserter::resultsPerStream_
std::vector< edm::propagate_const< TrigResPtr > > resultsPerStream_
Definition:
TriggerResultInserter.h:44
Generated for CMSSW Reference Manual by
1.8.14