Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
art
art
Framework
Core
TriggerResultInserter.cc
Go to the documentation of this file.
1
#include "
art/Framework/Core/TriggerResultInserter.h
"
2
// vim: set sw=2 expandtab :
3
4
#include "
art/Framework/Principal/Event.h
"
5
#include "
art/Utilities/TaskDebugMacros.h
"
6
#include "
canvas/Persistency/Common/TriggerResults.h
"
7
#include "
fhiclcpp/ParameterSet.h
"
8
9
#include <memory>
10
#include <sstream>
11
#include <utility>
12
13
namespace
art
{
14
15
TriggerResultInserter::TriggerResultInserter
(
fhicl::ParameterSet
const
& pset,
16
ScheduleID
const
sid,
17
HLTGlobalStatus
& pathResults)
18
:
ReplicatedProducer
{pset,
ProcessingFrame
{sid}}
19
,
pset_id_
{pset.id()}
20
,
trptr_
{&pathResults}
21
{
22
TDEBUG_FUNC_SI
(5, sid) <<
std::hex
<<
this
<<
std::dec
;
23
produces<TriggerResults>();
24
}
25
26
void
27
TriggerResultInserter::produce
(
Event
&
e
,
ProcessingFrame
const
&)
28
{
29
auto
tr = std::make_unique<TriggerResults>(*
trptr_
,
pset_id_
);
30
e.
put
(
move
(tr));
31
}
32
33
}
// namespace art
TriggerResults.h
hex
QTextStream & hex(QTextStream &s)
Definition:
qtextstream.cpp:2024
ParameterSet.h
art::HLTGlobalStatus
Definition:
HLTGlobalStatus.h:13
e
const double e
Definition:
gUpMuFluxGen.cxx:165
TriggerResultInserter.h
wirecell.gen.depos.move
def move(depos, offset)
Definition:
depos.py:107
art::ProcessingFrame
Definition:
ProcessingFrame.h:8
art::DataViewImpl::put
ProductID put(std::unique_ptr< PROD > &&edp, std::string const &instance={})
Definition:
DataViewImpl.h:686
TDEBUG_FUNC_SI
#define TDEBUG_FUNC_SI(LEVEL, SI)
Definition:
TaskDebugMacros.h:68
dec
QTextStream & dec(QTextStream &s)
Definition:
qtextstream.cpp:2018
art::TriggerResultInserter::trptr_
cet::exempt_ptr< HLTGlobalStatus > trptr_
Definition:
TriggerResultInserter.h:31
art::Event
Definition:
Event.h:22
TaskDebugMacros.h
art::TriggerResultInserter::TriggerResultInserter
TriggerResultInserter(fhicl::ParameterSet const &, ScheduleID const, HLTGlobalStatus &)
Definition:
TriggerResultInserter.cc:15
art::TriggerResultInserter::produce
void produce(Event &, ProcessingFrame const &) override
Definition:
TriggerResultInserter.cc:27
art::ReplicatedProducer
Definition:
ReplicatedProducer.h:19
art
Definition:
BasicOptionsHandler.h:9
art::ScheduleID
Definition:
ScheduleID.h:17
Event.h
fhicl::ParameterSet
Definition:
ParameterSet.h:36
art::TriggerResultInserter::pset_id_
fhicl::ParameterSetID pset_id_
Definition:
TriggerResultInserter.h:30
Generated by
1.8.11