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<TriggerResults>()} {}
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::StreamID
Definition:
StreamID.h:30
edm::TriggerResultInserter::resultsPerStream_
std::vector< edm::propagate_const< TrigResPtr > > resultsPerStream_
Definition:
TriggerResultInserter.h:44
TriggerResults.h
edm
HLT enums.
Definition:
AlignableModifier.h:19
edm::TriggerResultInserter::produce
void produce(StreamID id, edm::Event &e, edm::EventSetup const &c) const final
Definition:
TriggerResultInserter.cc:17
edm::ParameterSet
Definition:
ParameterSet.h:47
Event.h
edm::TriggerResultInserter::token_
EDPutTokenT< TriggerResults > token_
Definition:
TriggerResultInserter.h:47
TriggerResultInserter.h
edm::EventSetup
Definition:
EventSetup.h:57
edm::TriggerResultInserter::pset_id_
ParameterSetID pset_id_
Definition:
TriggerResultInserter.h:46
edm::TriggerResultInserter::TriggerResultInserter
TriggerResultInserter(edm::ParameterSet const &ps)
triggerObjects_cff.id
id
Definition:
triggerObjects_cff.py:31
relativeConstraints.value
value
Definition:
relativeConstraints.py:53
edm::TriggerResultInserter::TrigResPtr
std::shared_ptr< HLTGlobalStatus > TrigResPtr
Definition:
TriggerResultInserter.h:32
edm::TriggerResultInserter::setTrigResultForStream
void setTrigResultForStream(unsigned int iStreamIndex, const TrigResPtr &trptr)
Definition:
TriggerResultInserter.cc:13
ParameterSet.h
edm::Event
Definition:
Event.h:73
muonDTDigis_cfi.pset
pset
Definition:
muonDTDigis_cfi.py:27
MillePedeFileConverter_cfg.e
e
Definition:
MillePedeFileConverter_cfg.py:37
Generated for CMSSW Reference Manual by
1.8.16