CMS 3D CMS Logo

PathStatusInserter.cc
Go to the documentation of this file.
1 
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
18  HLTPathStatus const& hltPathStatus) {
19  hltPathStatus_[streamID.value()] = hltPathStatus;
20  }
21 
22  void
24  {
25  event.emplace(token_,hltPathStatus_[streamID.value()]);
26  }
27 }
void setPathStatus(StreamID const &, HLTPathStatus const &)
void produce(StreamID, Event &, EventSetup const &) const final
PathStatusInserter(unsigned int numberOfStreams)
EDPutTokenT< HLTPathStatus > token_
unsigned int value() const
Definition: StreamID.h:46
HLT enums.
std::vector< HLTPathStatus > hltPathStatus_
Definition: event.py:1