LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
TriggerResultInserter.cc
Go to the documentation of this file.
2 
6 
7 #include <memory>
8 
11 
12 TriggerResultInserter::TriggerResultInserter(ParameterSet const& pset,
13  HLTGlobalStatus& pathResults)
14  : trptr_{&pathResults}, pset_id_{pset.id()}
15 {
16  produces<TriggerResults>();
17 }
18 
19 void
21 {
22  // No Event::get* calls should be made here! The TriggerResults
23  // object is self-contained, and it should have no parentage, which
24  // an Event::get* call will introduce.
25  e.put(std::make_unique<TriggerResults>(*trptr_, pset_id_));
26 }
void produce(art::Event &e) override
ProductID put(std::unique_ptr< PROD > &&product)
Definition: Event.h:102
Float_t e
Definition: plot.C:34
fhicl::ParameterSetID pset_id_