LDMX Software
CalibrationContext.cxx
1#include "Tracking/geo/CalibrationContext.h"
2
4#include "Framework/Configure/Parameters.h"
5#include "Framework/Exception/Exception.h"
6
7namespace tracking::geo {
8
9const std::string CalibrationContext::NAME = "TrackingCalibrationContext";
10
12
13const Acts::CalibrationContext& CalibrationContext::get() const {
15}
16
18 public:
27 CalibrationContextProvider(const std::string& name,
28 const std::string& tagname,
29 const framework::config::Parameters& parameters,
32 parameters, process) {}
33
43 std::pair<const framework::ConditionsObject*, framework::ConditionsIOV>
44 getCondition(const ldmx::EventHeader& context) final override {
45 return std::make_pair<const framework::ConditionsObject*,
48 }
49};
50
51} // namespace tracking::geo
52
53DECLARE_CONDITIONS_PROVIDER_NS(tracking::geo, CalibrationContextProvider)
Base class for provider of conditions information like pedestals, gains, electronics maps,...
#define DECLARE_CONDITIONS_PROVIDER_NS(NS, 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:36
Class encapsulating parameters for configuring a processor.
Definition Parameters.h:27
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.
Definition PerfDict.cxx:45
Visualization.