LDMX Software
GeometryContext.h
1#pragma once
2
3#include <Acts/Geometry/TrackingGeometry.hpp>
4
5#include "Acts/Definitions/Algebra.hpp"
7
8namespace tracking::geo {
9
10using tgSurfMap = std::unordered_map<unsigned int, const Acts::Surface*>;
11
13class GeometryContextProvider;
14
25 public:
36
37 void loadTransformations(const tgSurfMap& surf_map);
38
56 void addAlignCorrection(unsigned int sensorId, const Acts::Vector3 deltaT,
57 const Acts::Vector3 deltaR, const bool active = true);
58
59 // This holds all the transformations of the Tracking Geometry and
60 // the alignment corrections already applied
61
62 std::unordered_map<unsigned int, Acts::Transform3> alignment_map_;
63
65 static const std::string NAME;
75 const Acts::GeometryContext& get() const;
76
77 private:
80
85 Acts::GeometryContext acts_gc_;
86};
87
88} // namespace tracking::geo
Base class for conditions information like pedestals, gains, electronics maps, etc.
Base class for all conditions objects, very simple.
The context for a specific geometry.
static const std::string NAME
Conditions object name.
const Acts::GeometryContext & get() const
get an Acts::GeometryContext wrapping the pointer to the instance of this GeometryContext
Acts::GeometryContext acts_gc_
Wrap this instance in an Acts::GeometryContext any object for passing it down to the various acts too...
GeometryContext()
TODO it should be private == KEEPING IT PUBLIC FOR TESTING PURPOSE.
void addAlignCorrection(unsigned int sensorId, const Acts::Vector3 deltaT, const Acts::Vector3 deltaR, const bool active=true)
Fill an internal map holding the alignment transformations sensorId : id of the alignable element in ...
Visualization.