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

The material validater is a tool that allows to record the material seen by a ray through a set of material surfaces. More...

#include <Acts/Material/MaterialValidater.hpp>

Classes

struct  Config
 Nested configuration struct. More...

Public Member Functions

 MaterialValidater (const Config &cfg, std::unique_ptr< const Logger > mlogger=getDefaultLogger("MaterialValidater", Logging::INFO))
 Constructor.
RecordedMaterialTrack recordMaterial (const GeometryContext &gctx, const MagneticFieldContext &mctx, const Vector3 &position, const Vector3 &direction) const
 Method to record the material along a ray.

Detailed Description

The material validater is a tool that allows to record the material seen by a ray through a set of material surfaces.

It does uses a material assigner that can be either done using the propagator or a more sinmple trial and error intersection;

Constructor & Destructor Documentation

◆ MaterialValidater()

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

Constructor.

Parameters
cfgThe configuration struct carrying the used tools
mloggerThe logging object

Member Function Documentation

◆ recordMaterial()

RecordedMaterialTrack Acts::MaterialValidater::recordMaterial ( const GeometryContext & gctx,
const MagneticFieldContext & mctx,
const Vector3 & position,
const Vector3 & direction ) const

Method to record the material along a ray.

Parameters
gctxthe geometry context
mctxthe magnetic field context
positionthe starting position of the ray
directionthe direction of the ray (unit vector)
Returns
a rerorded material track