CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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  std::unique_ptr<TriggerResults>
27 
28  e.put(std::move(results));
29  }
30 }
std::shared_ptr< HLTGlobalStatus > TrigResPtr
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
Definition: Event.h:120
def move
Definition: eostools.py:510
TriggerResultInserter(edm::ParameterSet const &ps)
void setTrigResultForStream(unsigned int iStreamIndex, const TrigResPtr &trptr)
void produce(StreamID id, edm::Event &e, edm::EventSetup const &c) const overridefinal
std::vector< TrigResPtr > resultsPerStream_