LDMX Software
|
The provider of a tracking geometry. More...
Public Member Functions | |
TrackersTrackingGeometryProvider (const std::string &name, const std::string &tag_name, const framework::config::Parameters ¶meters, framework::Process &process) | |
std::pair< const framework::ConditionsObject *, framework::ConditionsIOV > | getCondition (const ldmx::EventHeader &context) final override |
create the tracking geometry as configured by the input parameters, using the input context to update any run-dependent constants | |
Public Member Functions inherited from framework::ConditionsObjectProvider | |
ConditionsObjectProvider (const std::string &objname, const std::string &tagname, const framework::config::Parameters ¶meters, 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. | |
Private Attributes | |
std::string | detector_ |
the path to the detector we will use for tracking | |
bool | debug_ |
whether to have debug information or not | |
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 *, 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 inherited from framework::ConditionsObjectProvider | |
logging::logger | theLog_ |
The logger for this ConditionsObjectProvider. | |
The provider of a tracking geometry.
Definition at line 14 of file TrackersTrackingGeometryProvider.cxx.
tracking::geo::TrackersTrackingGeometryProvider::TrackersTrackingGeometryProvider | ( | const std::string & | name, |
const std::string & | tag_name, | ||
const framework::config::Parameters & | parameters, | ||
framework::Process & | process | ||
) |
Definition at line 39 of file TrackersTrackingGeometryProvider.cxx.
|
finaloverridevirtual |
create the tracking geometry as configured by the input parameters, using the input context to update any run-dependent constants
[in] | context | EventHeader with contextual information to pull from |
For now, the tracking geometry is assumed to be accurate for the entire IOV of the GeometryContext.
we need the context for this geometry so we request the parent condition
return a new trackers tracking geometry, the conditions system handles cleaning up with the realeaseConditionsObject
function which - by default
Implements framework::ConditionsObjectProvider.
Definition at line 49 of file TrackersTrackingGeometryProvider.cxx.
References debug_, detector_, tracking::geo::GeometryContext::NAME, and framework::ConditionsObjectProvider::requestParentCondition().
|
private |
whether to have debug information or not
Definition at line 36 of file TrackersTrackingGeometryProvider.cxx.
Referenced by getCondition().
|
private |
the path to the detector we will use for tracking
Definition at line 34 of file TrackersTrackingGeometryProvider.cxx.
Referenced by getCondition().