CMS 3D CMS Logo

TriggerResultInserter.cc
Go to the documentation of this file.
1 
6 
7 #include <memory>
8 
9 namespace edm {
10  TriggerResultInserter::TriggerResultInserter(const ParameterSet& pset, unsigned int iNStreams)
11  : resultsPerStream_(iNStreams), pset_id_(pset.id()), token_{produces<TriggerResults>()} {}
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
void produce(StreamID id, edm::Event &e, edm::EventSetup const &c) const final
TriggerResultInserter(edm::ParameterSet const &ps)
OrphanHandle< PROD > emplace(EDPutTokenT< PROD > token, Args &&...args)
puts a new product
Definition: Event.h:421
void setTrigResultForStream(unsigned int iStreamIndex, const TrigResPtr &trptr)
HLT enums.