LDMX Software
ConditionsObjectProvider.cxx
2
3// LDMX
5#include "Framework/Process.h"
6
7namespace framework {
8
10 const std::string& objname, const std::string& tagname,
11 const framework::config::Parameters& params, Process& process)
12 : theLog_{logging::makeLogger(objname)},
13 process_{process},
14 objectName_{objname},
15 tagname_{tagname} {}
16
17std::pair<const ConditionsObject*, ConditionsIOV>
19 const std::string& name, const ldmx::EventHeader& context) {
22 return std::make_pair(obj, iov);
23}
24
30
31} // namespace framework
Base class for provider of conditions information like pedestals, gains, electronics maps,...
Class which provides a singleton module factory that creates EventProcessor objects.
Class which represents the process under execution.
Class which defines the run/event/type range for which a given condition is valid,...
static const int CLASSTYPE
Constant used to types by the PluginFactory.
std::pair< const ConditionsObject *, ConditionsIOV > requestParentCondition(const std::string &name, const ldmx::EventHeader &context)
Request another condition needed to construct this condition.
ConditionsObjectProvider(const std::string &objname, const std::string &tagname, const framework::config::Parameters &parameters, Process &process)
Class constructor.
static void declare(const std::string &classname, ConditionsObjectProviderMaker *)
Internal function which is part of the PluginFactory machinery.
Process & process_
Handle to the Process.
Base class for all conditions objects, very simple.
const ConditionsObject * getConditionPtr(const std::string &condition_name)
Primary request action for a conditions object If the object is in the cache and still valid (IOV),...
ConditionsIOV getConditionIOV(const std::string &condition_name) const
Access the IOV for the given condition.
void registerConditionsObjectProvider(const std::string &classname, int classtype, ConditionsObjectProviderMaker *maker)
Register a conditions object provider.
static PluginFactory & getInstance()
Get the factory instance.
Class which represents the process under execution.
Definition Process.h:36
Conditions & getConditions()
Get a reference to the conditions system.
Definition Process.h:78
Class encapsulating parameters for configuring a processor.
Definition Parameters.h:27
Provides header information an event such as event number and timestamp.
Definition EventHeader.h:44
All classes in the ldmx-sw project use this namespace.
Definition PerfDict.cxx:45
ConditionsObjectProvider * ConditionsObjectProviderMaker(const std::string &objname, const std::string &tagname, const framework::config::Parameters &params, Process &process)
Typedef for PluginFactory use.