CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
PathStatusInserter.cc
Go to the documentation of this file.
1 
5 
6 #include <memory>
7 
8 namespace edm {
10  : hltPathStatus_(numberOfStreams), token_{produces()} {}
11 
12  void PathStatusInserter::setPathStatus(StreamID const& streamID, HLTPathStatus const& hltPathStatus) {
13  hltPathStatus_[streamID.value()] = hltPathStatus;
14  }
15 
17  event.emplace(token_, hltPathStatus_[streamID.value()]);
18  }
19 } // namespace edm
void setPathStatus(StreamID const &, HLTPathStatus const &)
PathStatusInserter(unsigned int numberOfStreams)
EDPutTokenT< HLTPathStatus > token_
unsigned int value() const
Definition: StreamID.h:43
std::vector< HLTPathStatus > hltPathStatus_
void produce(StreamID, Event &, EventSetup const &) const final