|
| | MagneticFieldContextProvider (const std::string &name, const std::string &tagname, const framework::config::Parameters ¶meters, framework::Process &process) |
| | Create the context conditions object.
|
| |
| std::pair< const framework::ConditionsObject *, framework::ConditionsIOV > | getCondition (const ldmx::EventHeader &context) final override |
| | Get the context as a conditions object.
|
| |
|
| 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 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.
|
| |
Definition at line 18 of file MagneticFieldContext.cxx.
◆ MagneticFieldContextProvider()
Create the context conditions object.
- Parameters
-
| [in] | name | the name of this provider |
| [in] | tagname | the name of the tag generation of this condition |
| [in] | parameters | configuration parameters from python |
| [in] | process | reference to the running process object |
Definition at line 29 of file MagneticFieldContext.cxx.
Base class for all providers of conditions objects.
const Process & process() const
Get the process handle.
static const std::string NAME
Conditions object name.
◆ getCondition()
|
|
inlinefinaloverridevirtual |
Get the context as a conditions object.
We just create a new context without any parameters and return the unlimited interval of validity.
- Parameters
-
| [in] | context | EventHeader for the event context |
- Returns
- new context and unlimited interval of validity
Implements framework::ConditionsObjectProvider.
Definition at line 46 of file MagneticFieldContext.cxx.
46 {
50 }
Class which defines the run/event/type range for which a given condition is valid,...
Base class for all conditions objects, very simple.
The documentation for this class was generated from the following file: