FWCore
Framework
src
PathStatusInserter.cc
Go to the documentation of this file.
1
2
#include "
FWCore/Framework/src/PathStatusInserter.h
"
3
#include "
FWCore/Framework/interface/Event.h
"
4
#include "
FWCore/Utilities/interface/StreamID.h
"
5
6
#include <memory>
7
8
namespace
edm
{
9
PathStatusInserter::PathStatusInserter
(
unsigned
int
numberOfStreams
)
10
: hltPathStatus_(
numberOfStreams
), token_{produces<HLTPathStatus>()} {}
11
12
void
PathStatusInserter::setPathStatus
(
StreamID
const
& streamID,
HLTPathStatus
const
& hltPathStatus) {
13
hltPathStatus_
[streamID.
value
()] = hltPathStatus;
14
}
15
16
void
PathStatusInserter::produce
(
StreamID
streamID,
edm::Event
&
event
,
edm::EventSetup
const
&)
const
{
17
event
.emplace(
token_
,
hltPathStatus_
[streamID.
value
()]);
18
}
19
}
// namespace edm
edm::StreamID
Definition:
StreamID.h:30
edm
HLT enums.
Definition:
AlignableModifier.h:19
edm::StreamID::value
unsigned int value() const
Definition:
StreamID.h:43
edm::PathStatusInserter::setPathStatus
void setPathStatus(StreamID const &, HLTPathStatus const &)
Definition:
PathStatusInserter.cc:12
edm::PathStatusInserter::PathStatusInserter
PathStatusInserter(unsigned int numberOfStreams)
Definition:
PathStatusInserter.cc:9
Event.h
edm::PathStatusInserter::produce
void produce(StreamID, Event &, EventSetup const &) const final
Definition:
PathStatusInserter.cc:16
edm::HLTPathStatus
Definition:
HLTPathStatus.h:33
edm::EventSetup
Definition:
EventSetup.h:57
PathStatusInserter.h
visualization-live-secondInstance_cfg.numberOfStreams
numberOfStreams
Definition:
visualization-live-secondInstance_cfg.py:89
event
Definition:
event.py:1
edm::Event
Definition:
Event.h:73
StreamID.h
edm::PathStatusInserter::hltPathStatus_
std::vector< HLTPathStatus > hltPathStatus_
Definition:
PathStatusInserter.h:24
edm::PathStatusInserter::token_
EDPutTokenT< HLTPathStatus > token_
Definition:
PathStatusInserter.h:25
Generated for CMSSW Reference Manual by
1.8.16