CMS 3D CMS Logo

TriggerResultInserter.cc
Go to the documentation of this file.
1 
6 
7 #include <memory>
8 
9 namespace edm {
11  : resultsPerStream_(iNStreams), pset_id_(pset.id()), token_{produces()} {}
12 
13  void TriggerResultInserter::setTrigResultForStream(unsigned int iStreamIndex, const TrigResPtr& trptr) {
14  resultsPerStream_[iStreamIndex] = trptr;
15  }
16 
18  e.emplace(token_, *resultsPerStream_[id.value()], pset_id_);
19  }
20 } // namespace edm
std::shared_ptr< HLTGlobalStatus > TrigResPtr
TriggerResultInserter(edm::ParameterSet const &ps)
void produce(StreamID id, edm::Event &e, edm::EventSetup const &c) const final
void setTrigResultForStream(unsigned int iStreamIndex, const TrigResPtr &trptr)
EDPutTokenT< TriggerResults > token_
HLT enums.
std::vector< edm::propagate_const< TrigResPtr > > resultsPerStream_