LDMX Software
ConditionsInterface.h
1
8#ifndef SIMCORE_CONDITIONSINTERFACE_H_
9#define SIMCORE_CONDITIONSINTERFACE_H_
10
11// LDMX
13
14namespace simcore {
15
22 public:
24
32 template <class T>
33 const T& getCondition(const std::string& condition_name) {
34 if (processor_ == 0) {
35 EXCEPTION_RAISE("ConditionUnavailableException",
36 "No conditions system object available in SimCore");
37 }
38 return processor_->getCondition<T>(condition_name);
39 }
40
41 private:
46};
47
48} // namespace simcore
49
50#endif // SIMCORE_CONDITIONSINTERFACE_H_
Base classes for all user event processing components to extend.
Base class for all event processing components.
const T & getCondition(const std::string &condition_name)
Access a conditions object for the current event.
Handle to the conditions system, provided at construction to classes which require it.
framework::EventProcessor * processor_
Pointer to the owner processor object.
const T & getCondition(const std::string &condition_name)
Primary request action for a conditions object If the object is in the cache and still valid (IOV),...