Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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
()} {}
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:33
edmPickEvents.event
tuple event
Definition:
edmPickEvents.py:273
edm::ProductRegistryHelper::produces
auto produces() noexcept
Definition:
ProductRegistryHelper.h:121
edm::StreamID
Definition:
StreamID.h:30
Event.h
edm::PathStatusInserter::setPathStatus
void setPathStatus(StreamID const &, HLTPathStatus const &)
Definition:
PathStatusInserter.cc:12
edm::PathStatusInserter::PathStatusInserter
PathStatusInserter(unsigned int numberOfStreams)
Definition:
PathStatusInserter.cc:9
StreamID.h
edm::EventSetup
Definition:
EventSetup.h:59
edm::PathStatusInserter::token_
EDPutTokenT< HLTPathStatus > token_
Definition:
PathStatusInserter.h:25
edm::StreamID::value
unsigned int value() const
Definition:
StreamID.h:43
visualization-live-secondInstance_cfg.numberOfStreams
tuple numberOfStreams
Definition:
visualization-live-secondInstance_cfg.py:96
edm::PathStatusInserter::hltPathStatus_
std::vector< HLTPathStatus > hltPathStatus_
Definition:
PathStatusInserter.h:24
PathStatusInserter.h
edm::PathStatusInserter::produce
void produce(StreamID, Event &, EventSetup const &) const final
Definition:
PathStatusInserter.cc:16
edm::Event
Definition:
Event.h:73
Generated for CMSSW Reference Manual by
1.8.5