ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
Acts::VolumeMaterialMapper Class Reference

VolumeMaterialMapper. More...

#include <Acts/Material/VolumeMaterialMapper.hpp>

Classes

struct  Config
 Nested Configuration struct for the material mapper. More...
struct  State
 Nested State struct which is used for the mapping prococess. More...

Public Types

using StraightLinePropagator = Propagator<StraightLineStepper, Navigator>
 Type alias for straight line propagator used in material mapping.

Public Member Functions

 VolumeMaterialMapper ()=delete
 Delete the Default constructor.
 VolumeMaterialMapper (const Config &cfg, StraightLinePropagator propagator, std::unique_ptr< const Logger > slogger=getDefaultLogger("VolumeMaterialMapper", Logging::INFO))
 Constructor with config object.
State createState (const GeometryContext &gctx, const MagneticFieldContext &mctx, const TrackingGeometry &tGeometry) const
 helper method that creates the cache for the mapping
void finalizeMaps (State &mState) const
 Method to finalize the maps.
void mapMaterialTrack (State &mState, RecordedMaterialTrack &mTrack) const
 Process/map a single track.

Detailed Description

VolumeMaterialMapper.

This is the main feature tool to map material information from a 3D geometry onto the TrackingGeometry with its surface material description.

The process runs as such:

1) TrackingGeometry is parsed and for each Volume with ProtoVolumeMaterial a local store is initialized the identification is done hereby through the Volume::GeometryIdentifier

2) A number of N material tracks is read in, each track has : origin, direction, material steps (< position, step length, x0, l0, a, z, rho >, thichness)

for each track: volume along the origin/direction path are collected. the step are then associated to volume inside which they are. Additional step are created along the track direction.

3) Each 'hit' bin per event is counted and averaged at the end of the run

Member Typedef Documentation

◆ StraightLinePropagator

Type alias for straight line propagator used in material mapping.

Constructor & Destructor Documentation

◆ VolumeMaterialMapper() [1/2]

Acts::VolumeMaterialMapper::VolumeMaterialMapper ( )
delete

Delete the Default constructor.

◆ VolumeMaterialMapper() [2/2]

Acts::VolumeMaterialMapper::VolumeMaterialMapper ( const Config & cfg,
StraightLinePropagator propagator,
std::unique_ptr< const Logger > slogger = getDefaultLogger("VolumeMaterialMapper", Logging::INFO) )

Constructor with config object.

Parameters
cfgConfiguration struct
propagatorThe straight line propagator
sloggerThe logger

Member Function Documentation

◆ createState()

State Acts::VolumeMaterialMapper::createState ( const GeometryContext & gctx,
const MagneticFieldContext & mctx,
const TrackingGeometry & tGeometry ) const

helper method that creates the cache for the mapping

Parameters
[in]gctxThe geometry context to use
[in]mctxThe magnetic field context to use
[in]tGeometryThe geometry which should be mapped

This method takes a TrackingGeometry, finds all surfaces with material proxis and returns you a Cache object tO be used

Returns
State object configured for volume material mapping

◆ finalizeMaps()

void Acts::VolumeMaterialMapper::finalizeMaps ( State & mState) const

Method to finalize the maps.

It calls the final run averaging and then transforms the Homogeneous material into HomogeneousVolumeMaterial and the 2D and 3D grid into a InterpolatedMaterialMap

Parameters
mState

◆ mapMaterialTrack()

void Acts::VolumeMaterialMapper::mapMaterialTrack ( State & mState,
RecordedMaterialTrack & mTrack ) const

Process/map a single track.

Parameters
mStateThe current state map
mTrackThe material track to be mapped
Note
the RecordedMaterialSlab of the track are assumed to be ordered from the starting position along the starting direction