DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dunedaq::dfmodules Namespace Reference

An ERS Issue for DataStore creation failure. More...

Namespaces

namespace  opmon
 

Classes

class  DataStore
 comment More...
 
class  TriggerInhibitAgent
 

Functions

std::shared_ptr< DataStoremake_data_store (const std::string &type, const std::string &name, std::shared_ptr< dunedaq::appfwk::ConfigurationManager > mcfg, const std::string &writer_identifier)
 Load a DataSrore plugin and return a unique_ptr to the contained DAQModule class.
 

Detailed Description

An ERS Issue for DataStore creation failure.

An ERS Issue for DataStore problems in which it is reasonable to retry the operation.

An ERS Issue for DataStore problems in which it is reasonable to skip any warning or error message.

An ERS Issue for DataStore problems in which it is not clear whether retrying the operation might succeed or not.

Function Documentation

◆ make_data_store()

std::shared_ptr< DataStore > dunedaq::dfmodules::make_data_store ( const std::string & type,
const std::string & name,
std::shared_ptr< dunedaq::appfwk::ConfigurationManager > mcfg,
const std::string & writer_identifier )
inline

Load a DataSrore plugin and return a unique_ptr to the contained DAQModule class.

Parameters
plugin_nameName of the plugin, e.g. HDF5DataStore
jsonconfiguration for the DataStore
Returns
unique_ptr to created DataStore instance

Definition at line 164 of file DataStore.hpp.

168{
169 static cet::BasicPluginFactory bpf("duneDataStore", "make"); // NOLINT
170
171 std::shared_ptr<DataStore> ds;
172 try {
173 ds = bpf.makePlugin<std::shared_ptr<DataStore>>(type, name, mcfg, writer_identifier);
174 } catch (const cet::exception& cexpt) {
175 throw DataStoreCreationFailed(ERS_HERE, type, name, cexpt);
176 }
177
178 return ds;
179}
#define ERS_HERE