Public Member Functions | Private Member Functions | Private Attributes | List of all members
art::TriggerResultInserter Class Reference

#include <TriggerResultInserter.h>

Inheritance diagram for art::TriggerResultInserter:
art::ReplicatedProducer art::detail::Producer art::detail::EngineCreator art::Modifier art::ModuleBase art::ProductRegistryHelper

Public Member Functions

 TriggerResultInserter (fhicl::ParameterSet const &, ScheduleID const, HLTGlobalStatus &)
 
- Public Member Functions inherited from art::ReplicatedProducer
 ReplicatedProducer (fhicl::ParameterSet const &pset, ProcessingFrame const &frame)
 
template<typename Config >
 ReplicatedProducer (Table< Config > const &config, ProcessingFrame const &frame)
 
std::string workerType () const
 
- Public Member Functions inherited from art::detail::Producer
virtual ~Producer () noexcept
 
 Producer (fhicl::ParameterSet const &)
 
 Producer (Producer const &)=delete
 
 Producer (Producer &&)=delete
 
Produceroperator= (Producer const &)=delete
 
Produceroperator= (Producer &&)=delete
 
void doBeginJob (SharedResources const &resources)
 
void doEndJob ()
 
void doRespondToOpenInputFile (FileBlock const &fb)
 
void doRespondToCloseInputFile (FileBlock const &fb)
 
void doRespondToOpenOutputFiles (FileBlock const &fb)
 
void doRespondToCloseOutputFiles (FileBlock const &fb)
 
bool doBeginRun (RunPrincipal &rp, ModuleContext const &mc)
 
bool doEndRun (RunPrincipal &rp, ModuleContext const &mc)
 
bool doBeginSubRun (SubRunPrincipal &srp, ModuleContext const &mc)
 
bool doEndSubRun (SubRunPrincipal &srp, ModuleContext const &mc)
 
bool doEvent (EventPrincipal &ep, ModuleContext const &mc, std::atomic< std::size_t > &counts_run, std::atomic< std::size_t > &counts_passed, std::atomic< std::size_t > &counts_failed)
 
- Public Member Functions inherited from art::Modifier
 ~Modifier () noexcept
 
 Modifier ()
 
 Modifier (Modifier const &)=delete
 
 Modifier (Modifier &&)=delete
 
Modifieroperator= (Modifier const &)=delete
 
Modifieroperator= (Modifier &&)=delete
 
- Public Member Functions inherited from art::ModuleBase
virtual ~ModuleBase () noexcept
 
 ModuleBase ()
 
ModuleDescription const & moduleDescription () const
 
void setModuleDescription (ModuleDescription const &)
 
std::array< std::vector< ProductInfo >, NumBranchTypes > const & getConsumables () const
 
void sortConsumables (std::string const &current_process_name)
 
template<typename T , BranchType BT>
ViewToken< T > consumesView (InputTag const &tag)
 
template<typename T , BranchType BT>
ViewToken< T > mayConsumeView (InputTag const &tag)
 

Private Member Functions

void produce (Event &, ProcessingFrame const &) override
 

Private Attributes

fhicl::ParameterSetID pset_id_
 
cet::exempt_ptr< HLTGlobalStatustrptr_
 

Additional Inherited Members

- Public Types inherited from art::ReplicatedProducer
using ModuleType = ReplicatedProducer
 
using WorkerType = WorkerT< ReplicatedProducer >
 
- Public Types inherited from art::detail::Producer
template<typename UserConfig , typename KeysToIgnore = void>
using Table = Modifier::Table< UserConfig, KeysToIgnore >
 
- Public Types inherited from art::Modifier
template<typename UserConfig , typename UserKeysToIgnore = void>
using Table = ProducerTable< UserConfig, detail::ModuleConfig, UserKeysToIgnore >
 
- Protected Member Functions inherited from art::ModuleBase
ConsumesCollectorconsumesCollector ()
 
template<typename T , BranchType = InEvent>
ProductToken< T > consumes (InputTag const &)
 
template<typename Element , BranchType = InEvent>
ViewToken< Element > consumesView (InputTag const &)
 
template<typename T , BranchType = InEvent>
void consumesMany ()
 
template<typename T , BranchType = InEvent>
ProductToken< T > mayConsume (InputTag const &)
 
template<typename Element , BranchType = InEvent>
ViewToken< Element > mayConsumeView (InputTag const &)
 
template<typename T , BranchType = InEvent>
void mayConsumeMany ()
 

Detailed Description

Definition at line 20 of file TriggerResultInserter.h.

Constructor & Destructor Documentation

art::TriggerResultInserter::TriggerResultInserter ( fhicl::ParameterSet const &  pset,
ScheduleID const  sid,
HLTGlobalStatus pathResults 
)
explicit

Definition at line 15 of file TriggerResultInserter.cc.

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  }
QTextStream & hex(QTextStream &s)
ReplicatedProducer(fhicl::ParameterSet const &pset, ProcessingFrame const &frame)
#define TDEBUG_FUNC_SI(LEVEL, SI)
QTextStream & dec(QTextStream &s)
cet::exempt_ptr< HLTGlobalStatus > trptr_
fhicl::ParameterSetID pset_id_

Member Function Documentation

void art::TriggerResultInserter::produce ( Event e,
ProcessingFrame const &   
)
overrideprivatevirtual

Implements art::ReplicatedProducer.

Definition at line 27 of file TriggerResultInserter.cc.

28  {
29  auto tr = std::make_unique<TriggerResults>(*trptr_, pset_id_);
30  e.put(move(tr));
31  }
const double e
def move(depos, offset)
Definition: depos.py:107
cet::exempt_ptr< HLTGlobalStatus > trptr_
fhicl::ParameterSetID pset_id_

Member Data Documentation

fhicl::ParameterSetID art::TriggerResultInserter::pset_id_
private

Definition at line 30 of file TriggerResultInserter.h.

cet::exempt_ptr<HLTGlobalStatus> art::TriggerResultInserter::trptr_
private

Definition at line 31 of file TriggerResultInserter.h.


The documentation for this class was generated from the following files: