LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
TriggerResultInserter.cc
Go to the documentation of this file.
1
#include "
art/Framework/Core/TriggerResultInserter.h
"
2
3
#include "
art/Framework/Principal/Event.h
"
4
#include "
canvas/Persistency/Common/TriggerResults.h
"
5
#include "
fhiclcpp/ParameterSet.h
"
6
7
#include <memory>
8
9
using
art::TriggerResultInserter
;
10
using
fhicl::ParameterSet
;
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
20
TriggerResultInserter::produce
(
art::Event
&
e
)
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
}
art::TriggerResultInserter::produce
void produce(art::Event &e) override
Definition:
TriggerResultInserter.cc:20
TriggerResults.h
ParameterSet.h
art::HLTGlobalStatus
Definition:
HLTGlobalStatus.h:25
Event.h
art::Event::put
ProductID put(std::unique_ptr< PROD > &&product)
Definition:
Event.h:102
TriggerResultInserter.h
art::TriggerResultInserter
Definition:
TriggerResultInserter.h:25
art::Event
Definition:
Event.h:42
art::TriggerResultInserter::trptr_
TrigResPtr trptr_
Definition:
TriggerResultInserter.h:39
e
Float_t e
Definition:
plot.C:34
fhicl::ParameterSet
Definition:
ParameterSet.h:34
art::TriggerResultInserter::pset_id_
fhicl::ParameterSetID pset_id_
Definition:
TriggerResultInserter.h:40
art
Framework
Core
TriggerResultInserter.cc
Generated on Thu Jul 26 2018 13:09:40 for LArSoft by
1.8.11