LDMX Software
Public Member Functions | List of all members
tracking::geo::GeometryContextProvider Class Reference

Public Member Functions

 GeometryContextProvider (const std::string &name, const std::string &tagname, const framework::config::Parameters &parameters, framework::Process &process)
 Create the context conditions object.
 
std::pair< const framework::ConditionsObject *, framework::ConditionsIOVgetCondition (const ldmx::EventHeader &context) final override
 Get the context as a conditions object.
 
- Public Member Functions inherited from framework::ConditionsObjectProvider
 ConditionsObjectProvider (const std::string &objname, const std::string &tagname, const framework::config::Parameters &parameters, Process &process)
 Class constructor.
 
virtual ~ConditionsObjectProvider ()
 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.
 

Additional Inherited Members

- Static Public Member Functions inherited from framework::ConditionsObjectProvider
static void declare (const std::string &classname, ConditionsObjectProviderMaker *)
 Internal function which is part of the PluginFactory machinery.
 
- Static Public Attributes inherited from framework::ConditionsObjectProvider
static const int CLASSTYPE {10}
 Constant used to types by the PluginFactory.
 
- Protected Member Functions inherited from framework::ConditionsObjectProvider
std::pair< const ConditionsObject *, ConditionsIOVrequestParentCondition (const std::string &name, const ldmx::EventHeader &context)
 Request another condition needed to construct this condition.
 
const Processprocess () const
 Get the process handle.
 
- Protected Attributes inherited from framework::ConditionsObjectProvider
logging::logger theLog_
 The logger for this ConditionsObjectProvider.
 

Detailed Description

Definition at line 68 of file GeometryContext.cxx.

Constructor & Destructor Documentation

◆ GeometryContextProvider()

tracking::geo::GeometryContextProvider::GeometryContextProvider ( const std::string &  name,
const std::string &  tagname,
const framework::config::Parameters parameters,
framework::Process process 
)
inline

Create the context conditions object.

Parameters
[in]namethe name of this provider
[in]tagnamethe name of the tag generation of this condition
[in]parametersconfiguration parameters from python
[in]processreference to the running process object

Definition at line 78 of file GeometryContext.cxx.

82 parameters, process) {}
Base class for all providers of conditions objects.
const Process & process() const
Get the process handle.
static const std::string NAME
Conditions object name.

Member Function Documentation

◆ getCondition()

std::pair< const framework::ConditionsObject *, framework::ConditionsIOV > tracking::geo::GeometryContextProvider::getCondition ( const ldmx::EventHeader context)
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]contextEventHeader for the event context
Returns
new context and unlimited interval of validity

Implements framework::ConditionsObjectProvider.

Definition at line 94 of file GeometryContext.cxx.

94 {
95 return std::make_pair<const framework::ConditionsObject*,
97 new GeometryContext(), framework::ConditionsIOV(true, true));
98 }
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: