LDMX Software
|
The context for a specific geometry. More...
#include <CalibrationContext.h>
Public Member Functions | |
const Acts::CalibrationContext & | get () const |
get a reference to the actual geometry context ACTS object | |
Public Member Functions inherited from framework::ConditionsObject | |
ConditionsObject (const std::string &name) | |
Class constructor. | |
virtual | ~ConditionsObject () |
Destructor. | |
std::string | getName () const |
Get the name of this object. | |
Static Public Attributes | |
static const std::string | NAME = "TrackingCalibrationContext" |
Conditions object name. | |
Private Member Functions | |
CalibrationContext () | |
This constructor is where parameters would be passed into the Calibration context from the provider. | |
Private Attributes | |
Acts::CalibrationContext | calibration_context_ |
the actual geometry context we are wrapping | |
Friends | |
class | CalibrationContextProvider |
the provider is a friend and so it can make one | |
The context for a specific geometry.
This connects the Acts::CalibrationContext object to our conditions system so that it can be loaded from it. The CalibrationContext is what holds things like alignment constants within ACTS. Currently, we don't have any alignment constants so this just holds a default-constructed object for the entire run without doing anything else.
The context is both the object used as a condition and the provider of that condition. We could separate the two if a new context needs to be constructed when the conditions are updated but for now keeping them together reduces the amount of code needed.
Definition at line 29 of file CalibrationContext.h.
|
private |
This constructor is where parameters would be passed into the Calibration context from the provider.
Right now, there aren't any parameters to pass and so it is just default constructed. We still have it be private so that only the provider can make a new one.
Definition at line 11 of file CalibrationContext.cxx.
const Acts::CalibrationContext & tracking::geo::CalibrationContext::get | ( | ) | const |
get a reference to the actual geometry context ACTS object
Definition at line 13 of file CalibrationContext.cxx.
References calibration_context_.
|
friend |
the provider is a friend and so it can make one
Definition at line 45 of file CalibrationContext.h.
|
private |
the actual geometry context we are wrapping
For now, this is just a regular object but if we want to actually modify the geometry context by re-constructing it in the future, it may need to evolve into some smart pointer so that it can be reconstructed at need OR we separate the conditions object which would be recreated whenever this object needs to be recreated.
Definition at line 64 of file CalibrationContext.h.
Referenced by get().
|
static |
Conditions object name.
Definition at line 32 of file CalibrationContext.h.