LDMX Software
ConditionsObjectProvider.cxx
2
3// LDMX
4#include "Framework/Process.h"
5
6namespace framework {
7
9 const std::string& objname, const std::string& tagname,
10 const framework::config::Parameters& params, Process& process)
11 : the_log_{logging::makeLogger(objname)},
12 process_{process},
13 object_name_{objname},
14 tagname_{tagname} {}
15
16std::pair<const ConditionsObject*, ConditionsIOV>
18 const std::string& name, const ldmx::EventHeader& context) {
21 return std::make_pair(obj, iov);
22}
23
25
26} // namespace framework
Base class for provider of conditions information like pedestals, gains, electronics maps,...
#define DEFINE_FACTORY(classtype)
This should go into an implementation file for your prototype class.
Definition Factory.h:411
Class which represents the process under execution.
Class which defines the run/event/type range for which a given condition is valid,...
Base class for all providers of conditions objects.
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.
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.
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:29
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.