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
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::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:12
edm::PathStatusInserter::produce
void produce(StreamID, Event &, EventSetup const &) const final
Definition:
PathStatusInserter.cc:16
edm::PathStatusInserter::PathStatusInserter
PathStatusInserter(unsigned int numberOfStreams)
Definition:
PathStatusInserter.cc:9
StreamID.h
edm::EventSetup
Definition:
EventSetup.h:57
edm::PathStatusInserter::token_
EDPutTokenT< HLTPathStatus > token_
Definition:
PathStatusInserter.h:25
edm::StreamID::value
unsigned int value() const
Definition:
StreamID.h:42
edm
HLT enums.
Definition:
AlignableModifier.h:17
edm::PathStatusInserter::hltPathStatus_
std::vector< HLTPathStatus > hltPathStatus_
Definition:
PathStatusInserter.h:24
PathStatusInserter.h
edm::Event
Definition:
Event.h:71
event
Definition:
event.py:1
Generated for CMSSW Reference Manual by
1.8.11