LDMX Software
Classes | Typedefs | Functions
tracking::geo Namespace Reference

Visualization. More...

Classes

class  CalibrationContext
 The context for a specific geometry. More...
 
class  CalibrationContextProvider
 
class  DetectorElement
 
class  EcalTrackingGeometry
 
class  GeometryContext
 The context for a specific geometry. More...
 
class  GeometryContextProvider
 
class  MagneticFieldContext
 The context for a specific geometry. More...
 
class  MagneticFieldContextProvider
 
class  Ring
 
class  SilentG4
 This class throws away all of the messages from Geant4. More...
 
class  TrackersTrackingGeometry
 
class  TrackersTrackingGeometryProvider
 The provider of a tracking geometry. More...
 
class  TrackingGeometry
 This class is a abstract base class (ABC) doing common tasks that tracking geometries need done. More...
 

Typedefs

using tgSurfMap = std::unordered_map< unsigned int, const Acts::Surface * >
 

Functions

unsigned int unpackGeometryIdentifier (const Acts::GeometryIdentifier &geoId)
 The geometry identifier will return vol=0 and lay=0 when it is not valid.
 
Acts::RotationMatrix3 deltaRot (const Acts::Vector3 &deltaR)
 

Detailed Description

Visualization.

Typedef Documentation

◆ tgSurfMap

using tracking::geo::tgSurfMap = typedef std::unordered_map<unsigned int, const Acts::Surface*>

Definition at line 12 of file GeometryContext.h.

Function Documentation

◆ deltaRot()

Acts::RotationMatrix3 tracking::geo::deltaRot ( const Acts::Vector3 &  deltaR)

Definition at line 14 of file GeoUtils.cxx.

14 {
15 // This is fine because RotationMatrix3 doesn't need to be symmetric
16 Acts::RotationMatrix3 rot = Acts::RotationMatrix3::Identity();
17 rot(0, 1) = -deltaR(2);
18 rot(0, 2) = deltaR(1);
19 rot(1, 2) = -deltaR(0);
20
21 rot(1, 0) = -rot(0, 1);
22 rot(2, 0) = -rot(0, 2);
23 rot(2, 1) = -rot(1, 2);
24
25 return rot;
26}

◆ unpackGeometryIdentifier()

unsigned int tracking::geo::unpackGeometryIdentifier ( const Acts::GeometryIdentifier &  geoId)

The geometry identifier will return vol=0 and lay=0 when it is not valid.

The geometry identifier is only valid after building the tracking geometry.

Definition at line 5 of file GeoUtils.cxx.

5 {
6 unsigned int volumeId = geoId.volume();
7 unsigned int layerId = geoId.layer() / 2;
8 unsigned int sensorId = geoId.sensitive() - 1;
9 unsigned int surfaceId = volumeId * 1000 + layerId * 100 + sensorId;
10
11 return surfaceId;
12}