LDMX Software
CalibrationContext.cxx
1#include "Tracking/geo/CalibrationContext.h"
2
4#include "Framework/Configure/Parameters.h"
5
6namespace tracking::geo {
7
8const std::string CalibrationContext::NAME = "TrackingCalibrationContext";
9
11
12const Acts::CalibrationContext& CalibrationContext::get() const {
14}
15
17 public:
26 CalibrationContextProvider(const std::string& name,
27 const std::string& tagname,
28 const framework::config::Parameters& parameters,
31 parameters, process) {}
32
42 std::pair<const framework::ConditionsObject*, framework::ConditionsIOV>
43 getCondition(const ldmx::EventHeader& context) final override {
44 return std::make_pair<const framework::ConditionsObject*,
47 }
48};
49
50} // namespace tracking::geo
51
Base class for provider of conditions information like pedestals, gains, electronics maps,...
#define DECLARE_CONDITIONS_PROVIDER(CLASS)
Macro which allows the framework to construct a producer given its name during configuration.
be configured to load conditions objects from CSV files.
Class which defines the run/event/type range for which a given condition is valid,...
Base class for all providers of conditions objects.
const Process & process() const
Get the process handle.
Base class for all conditions objects, very simple.
Class which represents the process under execution.
Definition Process.h:34
Class encapsulating parameters for configuring a processor.
Definition Parameters.h:26
Provides header information an event such as event number and timestamp.
Definition EventHeader.h:44
CalibrationContextProvider(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::ConditionsIOV > getCondition(const ldmx::EventHeader &context) final override
Get the context as a conditions object.
The context for a specific geometry.
static const std::string NAME
Conditions object name.
Acts::CalibrationContext calibration_context_
the actual geometry context we are wrapping
CalibrationContext()
This constructor is where parameters would be passed into the Calibration context from the provider.
const Acts::CalibrationContext & get() const
get a reference to the actual geometry context ACTS object
All classes in the ldmx-sw project use this namespace.
Visualization.