|
LDMX Software
|
Base class for all providers of conditions objects. More...
#include <ConditionsObjectProvider.h>
Public Member Functions | |
| DECLARE_FACTORY (ConditionsObjectProvider, std::shared_ptr< ConditionsObjectProvider >, const std::string &, const std::string &, const framework::config::Parameters &, Process &) | |
| declare that we have a factory for these types of classes | |
| ConditionsObjectProvider (const std::string &objname, const std::string &tagname, const framework::config::Parameters ¶meters, Process &process) | |
| Class constructor. | |
| virtual | ~ConditionsObjectProvider ()=default |
| Class destructor. | |
| virtual std::pair< const ConditionsObject *, ConditionsIOV > | getCondition (const ldmx::EventHeader &context)=0 |
| Pure virtual getCondition function. | |
| virtual void | releaseConditionsObject (const ConditionsObject *co) |
| Called by conditions system when done with a conditions object, appropriate point for cleanup. | |
| virtual void | onProcessStart () |
| Callback for the ConditionsObjectProvider to take any necessary action when the processing of events starts. | |
| virtual void | onProcessEnd () |
| Callback for the ConditionsObjectProvider to take any necessary action when the processing of events finishes, such as closing database connections. | |
| virtual void | onNewRun (ldmx::RunHeader &) |
| Callback for the ConditionsObjectProvider to take any necessary action when the processing of events starts for a given run. | |
| const std::string & | getConditionObjectName () const |
| Get the list of conditions objects available from this provider. | |
| const std::string & | getTagName () const |
| Access the tag name. | |
Protected Member Functions | |
| std::pair< const ConditionsObject *, ConditionsIOV > | requestParentCondition (const std::string &name, const ldmx::EventHeader &context) |
| Request another condition needed to construct this condition. | |
| const Process & | process () const |
| Get the process handle. | |
Protected Attributes | |
| logging::logger | the_log_ |
| The logger for this ConditionsObjectProvider. | |
Private Attributes | |
| Process & | process_ |
| Handle to the Process. | |
| std::string | object_name_ |
| The name of the object provided by this provider. | |
| std::string | tagname_ |
| The tag name for the ConditionsObjectProvider. | |
Base class for all providers of conditions objects.
Definition at line 44 of file ConditionsObjectProvider.h.
| ConditionsObjectProvider::ConditionsObjectProvider | ( | const std::string & | objname, |
| const std::string & | tagname, | ||
| const framework::config::Parameters & | parameters, | ||
| Process & | process ) |
Class constructor.
| name | Name for this instance of the class. |
| tagName | The tag for the database entry (should not include whitespace) |
| process | The Process class associated with ConditionsObjectProvider, provided by the framework. |
Definition at line 8 of file ConditionsObjectProvider.cxx.
|
pure virtual |
Pure virtual getCondition function.
Must be implemented by any Conditions providers.
Implemented in conditions::SimpleCSVTableProvider, ecal::EcalDetectorMapLoader, ecal::EcalGeometryProvider, ecal::EcalTriggerGeometryProvider, framework::RandomNumberSeedService, hcal::HcalDetectorMapLoader, hcal::HcalGeometryProvider, hcal::HcalReconConditionsProvider, hcal::HcalTriggerGeometryProvider, tracking::geo::CalibrationContextProvider, tracking::geo::GeometryContextProvider, tracking::geo::MagneticFieldContextProvider, and tracking::geo::TrackersTrackingGeometryProvider.
|
inline |
Get the list of conditions objects available from this provider.
Definition at line 114 of file ConditionsObjectProvider.h.
References object_name_.
|
inline |
Access the tag name.
Definition at line 119 of file ConditionsObjectProvider.h.
References tagname_.
|
inlinevirtual |
Callback for the ConditionsObjectProvider to take any necessary action when the processing of events starts for a given run.
Reimplemented in ecal::EcalGeometryProvider, framework::RandomNumberSeedService, and hcal::HcalGeometryProvider.
Definition at line 109 of file ConditionsObjectProvider.h.
|
inlinevirtual |
Callback for the ConditionsObjectProvider to take any necessary action when the processing of events finishes, such as closing database connections.
Definition at line 103 of file ConditionsObjectProvider.h.
|
inlinevirtual |
Callback for the ConditionsObjectProvider to take any necessary action when the processing of events starts.
Definition at line 96 of file ConditionsObjectProvider.h.
|
inlineprotected |
Get the process handle.
Definition at line 130 of file ConditionsObjectProvider.h.
References process_.
Referenced by framework::RandomNumberSeedService::onNewRun().
|
inlinevirtual |
Called by conditions system when done with a conditions object, appropriate point for cleanup.
Reimplemented in ecal::EcalDetectorMapLoader, ecal::EcalGeometryProvider, ecal::EcalTriggerGeometryProvider, framework::RandomNumberSeedService, hcal::HcalDetectorMapLoader, hcal::HcalGeometryProvider, and hcal::HcalTriggerGeometryProvider.
Definition at line 88 of file ConditionsObjectProvider.h.
|
protected |
Request another condition needed to construct this condition.
Definition at line 17 of file ConditionsObjectProvider.cxx.
References framework::Conditions::getConditionIOV(), framework::Conditions::getConditionPtr(), framework::Process::getConditions(), and process_.
Referenced by ecal::EcalTriggerGeometryProvider::getCondition(), hcal::HcalReconConditionsProvider::getCondition(), and tracking::geo::TrackersTrackingGeometryProvider::getCondition().
|
private |
The name of the object provided by this provider.
Definition at line 137 of file ConditionsObjectProvider.h.
Referenced by getConditionObjectName().
|
private |
Handle to the Process.
Definition at line 134 of file ConditionsObjectProvider.h.
Referenced by process(), and requestParentCondition().
|
private |
The tag name for the ConditionsObjectProvider.
Definition at line 140 of file ConditionsObjectProvider.h.
Referenced by getTagName().
|
protected |
The logger for this ConditionsObjectProvider.
Definition at line 127 of file ConditionsObjectProvider.h.