1 #ifndef art_Framework_Core_ResultsProducer_h 2 #define art_Framework_Core_ResultsProducer_h 82 #include "cetlib/PluginTypeDeducer.h" 83 #include "cetlib/ProvideFilePathMacro.h" 84 #include "cetlib/compiler_macros.h" 101 template <
typename UserConfig,
typename KeysToIgnore =
void>
124 void produces(std::string
const& instanceName = {});
132 virtual void clear() = 0;
152 ProductRegistryHelper::produces<P, InResults>(instanceName);
162 #define DEFINE_ART_RESULTS_PLUGIN(klass) \ 163 EXTERN_C_FUNC_DECLARE_START \ 164 CET_PROVIDE_FILE_PATH() \ 165 FHICL_PROVIDE_ALLOWED_CONFIGURATION(klass) \ 166 DEFINE_BASIC_PLUGINTYPE_FUNC(art::ResultsProducer) \ 167 std::unique_ptr<art::RPWorker> makeRP(art::RPParams const& rpParams, \ 168 fhicl::ParameterSet const& ps) \ 170 return std::make_unique<art::RPWorkerT<klass>>(rpParams, ps); \ 172 EXTERN_C_FUNC_DECLARE_END virtual void beginSubRun(SubRun const &)
void registerProducts(ProductDescriptions &producedProducts, ModuleDescription const &md)
static std::string const value
void doEvent(EventPrincipal const &)
void doBeginSubRun(SubRunPrincipal const &)
void doWriteResults(ResultsPrincipal &)
void doReadResults(ResultsPrincipal const &)
ResultsProducer() noexcept(false)
std::vector< BranchDescription > ProductDescriptions
void doEndRun(RunPrincipal const &)
virtual void writeResults(Results &)=0
virtual void endSubRun(SubRun const &)
void doBeginRun(RunPrincipal const &)
virtual void event(Event const &)
void doEndSubRun(SubRunPrincipal const &)
std::unique_ptr< Worker > doMakeWorker(WorkerParams const &wp) final
virtual ~ResultsProducer() noexcept=default
virtual void readResults(Results const &)
void produces(std::string const &instanceName={})
virtual void beginRun(Run const &)
virtual void endRun(Run const &)