Main Page
Namespaces
Classes
Package Documentation
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
{
10
PathStatusInserter::PathStatusInserter
(
unsigned
int
numberOfStreams) :
11
hltPathStatus_(numberOfStreams),
12
token_{produces<HLTPathStatus>()}
13
{
14
}
15
16
void
17
PathStatusInserter::setPathStatus
(
StreamID
const
& streamID,
18
HLTPathStatus
const
& hltPathStatus) {
19
hltPathStatus_
[streamID.
value
()] = hltPathStatus;
20
}
21
22
void
23
PathStatusInserter::produce
(
StreamID
streamID,
edm::Event
&
event
,
edm::EventSetup
const
&)
const
24
{
25
event
.emplace(
token_
,
hltPathStatus_
[streamID.
value
()]);
26
}
27
}
edm::HLTPathStatus
Definition:
HLTPathStatus.h:34
edm::StreamID
Definition:
StreamID.h:30
Event.h
edm::PathStatusInserter::setPathStatus
void setPathStatus(StreamID const &, HLTPathStatus const &)
Definition:
PathStatusInserter.cc:17
edm::PathStatusInserter::produce
void produce(StreamID, Event &, EventSetup const &) const final
Definition:
PathStatusInserter.cc:23
edm::PathStatusInserter::PathStatusInserter
PathStatusInserter(unsigned int numberOfStreams)
Definition:
PathStatusInserter.cc:10
StreamID.h
edm::EventSetup
Definition:
EventSetup.h:51
edm::PathStatusInserter::token_
EDPutTokenT< HLTPathStatus > token_
Definition:
PathStatusInserter.h:27
edm::StreamID::value
unsigned int value() const
Definition:
StreamID.h:46
edm
HLT enums.
Definition:
AlignableModifier.h:17
edm::PathStatusInserter::hltPathStatus_
std::vector< HLTPathStatus > hltPathStatus_
Definition:
PathStatusInserter.h:26
PathStatusInserter.h
edm::Event
Definition:
Event.h:70
event
Definition:
event.py:1
Generated for CMSSW Reference Manual by
1.8.11