LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "RPManager.h"
Public Types | |
using | RPPath_t = std::vector< std::unique_ptr< art::RPWorker >> |
using | RPMap_t = std::map< std::string, RPPath_t > |
template<typename RET , typename... ARGS> | |
using | invoke_function_t = RET(art::ResultsProducer::*)(ARGS...) |
using | on_rpworker_t = std::function< void(art::RPWorker &)> |
Public Member Functions | |
RPManager (fhicl::ParameterSet const &ps) | |
std::size_t | size () const |
bool | empty () const |
template<typename... ARGS> | |
void | invoke (invoke_function_t< void, ARGS... > mfunc, ARGS &&...args) |
void | for_each_RPWorker (on_rpworker_t wfunc) |
Private Member Functions | |
RPMap_t | makeRPs_ (fhicl::ParameterSet const &ps) |
Private Attributes | |
cet::BasicPluginFactory | pf_ |
RPMap_t | rpmap_ |
std::size_t | size_ |
Definition at line 24 of file RPManager.h.
using art::RPManager::invoke_function_t = RET (art::ResultsProducer::*)(ARGS...) |
Definition at line 30 of file RPManager.h.
using art::RPManager::on_rpworker_t = std::function<void(art::RPWorker&)> |
Definition at line 32 of file RPManager.h.
using art::RPManager::RPMap_t = std::map<std::string, RPPath_t> |
Definition at line 27 of file RPManager.h.
using art::RPManager::RPPath_t = std::vector<std::unique_ptr<art::RPWorker>> |
Definition at line 26 of file RPManager.h.
art::RPManager::RPManager | ( | fhicl::ParameterSet const & | ps | ) |
Definition at line 21 of file RPManager.cc.
References fhicl::ParameterSet::get(), fhicl::ParameterSet::id(), art::plugin, and cet::PluginTypeDeducer< art::ResultsProducer >::value.
|
inline |
Definition at line 59 of file RPManager.h.
References size_.
void art::RPManager::for_each_RPWorker | ( | on_rpworker_t | wfunc | ) |
Definition at line 76 of file RPManager.h.
Referenced by art::RootOutput::beginRun(), art::RootOutput::beginSubRun(), art::RootOutput::doRegisterProducts(), art::RootOutput::endRun(), art::RootOutput::endSubRun(), art::RootOutput::event(), art::RootOutput::readResults(), and art::RootOutput::startEndFile().
void art::RPManager::invoke | ( | invoke_function_t< void, ARGS... > | mfunc, |
ARGS &&... | args | ||
) |
Definition at line 66 of file RPManager.h.
Referenced by art::RootOutput::beginJob(), art::RootOutput::endJob(), and art::RootOutput::finishEndFile().
|
private |
Definition at line 54 of file RPManager.cc.
References art::errors::Configuration, fhicl::ParameterSet::get(), pf_, rpmap_, and util::flags::to_string().
|
inline |
Definition at line 53 of file RPManager.h.
References size_.
|
private |
Definition at line 45 of file RPManager.h.
Referenced by makeRPs_().
|
private |
Definition at line 46 of file RPManager.h.
Referenced by for_each_RPWorker(), invoke(), and makeRPs_().
|
private |
Definition at line 47 of file RPManager.h.