CMS 3D CMS Logo

TriggerResultInserter.cc
Go to the documentation of this file.
1 
6 
7 #include <memory>
8 
9 namespace edm
10 {
11  TriggerResultInserter::TriggerResultInserter(const ParameterSet& pset, unsigned int iNStreams) :
12  resultsPerStream_(iNStreams),
13  pset_id_(pset.id())
14  {
15  produces<TriggerResults>();
16  }
17 
18  void
19  TriggerResultInserter::setTrigResultForStream(unsigned int iStreamIndex, const TrigResPtr& trptr) {
20  resultsPerStream_[iStreamIndex] =trptr;
21  }
22 
24  {
25  e.put(std::make_unique<TriggerResults>(*resultsPerStream_[id.value()], pset_id_));
26  }
27 }
std::shared_ptr< HLTGlobalStatus > TrigResPtr
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
Definition: Event.h:137
void produce(StreamID id, edm::Event &e, edm::EventSetup const &c) const final
TriggerResultInserter(edm::ParameterSet const &ps)
void setTrigResultForStream(unsigned int iStreamIndex, const TrigResPtr &trptr)
HLT enums.