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

Class that implements the material mapping procedure. More...

#include <Acts/Material/MaterialMapper.hpp>

Classes

struct  Config
 nested configuration struct More...
struct  Options
 nested options struct holds some options for the delegated calls More...
struct  State
 nested state struct More...

Public Member Functions

 MaterialMapper (const Config &cfg, std::unique_ptr< const Logger > mlogger=getDefaultLogger("BinnedSurfaceMaterialAccumulater", Logging::INFO))
 MaterialMapper constructor.
std::unique_ptr< StatecreateState () const
 Factory for creating the state.
TrackingGeometryMaterial finalizeMaps (const State &state) const
 Finalize the maps.
std::pair< RecordedMaterialTrack, RecordedMaterialTrackmapMaterial (State &state, const GeometryContext &gctx, const MagneticFieldContext &mctx, const RecordedMaterialTrack &rmTrack, const Options &options=Options{}) const
 Map the material interactions to the surfaces.

Detailed Description

Class that implements the material mapping procedure.

Constructor & Destructor Documentation

◆ MaterialMapper()

Acts::MaterialMapper::MaterialMapper ( const Config & cfg,
std::unique_ptr< const Logger > mlogger = getDefaultLogger("BinnedSurfaceMaterialAccumulater", Logging::INFO) )
explicit

MaterialMapper constructor.

Parameters
cfgthe configuration struct
mloggerthe logger instance

Member Function Documentation

◆ createState()

std::unique_ptr< State > Acts::MaterialMapper::createState ( ) const

Factory for creating the state.

Returns
Unique pointer to a new material mapping state object

◆ finalizeMaps()

TrackingGeometryMaterial Acts::MaterialMapper::finalizeMaps ( const State & state) const

Finalize the maps.

Parameters
stateMaterial mapping state containing collected data
Returns
Tracking geometry material map with finalized surface and volume materials

◆ mapMaterial()

std::pair< RecordedMaterialTrack, RecordedMaterialTrack > Acts::MaterialMapper::mapMaterial ( State & state,
const GeometryContext & gctx,
const MagneticFieldContext & mctx,
const RecordedMaterialTrack & rmTrack,
const Options & options = Options{} ) const

Map the material interactions to the surfaces.

Parameters
statethe state object holding the sub states
gctxthe geometry context
mctxthe magnetic field context
rmTrackthe recorded material track
optionsthe call options (see above)
Returns
the mapped and unmapped material tracks