ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
detray::material_validator::material_tracer< vector_t >::state Struct Reference

State used to collect material during propagation. More...

#include <detray/test/validation/material_validation_utils.hpp>

Public Member Functions

 state (vecmem::memory_resource &resource)
 Construct the vector containers with a given resource.
 state (vector_t< material_record_type > &&steps)
 Construct from externally provided vector for the steps.
const auto & get_material_steps () const
 Access to the recorded material steps along the track - const.
const auto & get_track_material () const
 Access to the total recorded material along the track - const.
auto && release_material_steps () &&
 Move the recorded material steps pout of the actor.
auto && release_track_material () &&
 Move the total recorded material out of the actor.

Detailed Description

template<template< typename... > class vector_t>
struct detray::material_validator::material_tracer< vector_t >::state

State used to collect material during propagation.

Constructor & Destructor Documentation

◆ state() [1/2]

template<template< typename... > class vector_t>
detray::material_validator::material_tracer< vector_t >::state::state ( vecmem::memory_resource & resource)
explicit

Construct the vector containers with a given resource.

Parameters
resourceMemory resource for the material steps.

◆ state() [2/2]

template<template< typename... > class vector_t>
detray::material_validator::material_tracer< vector_t >::state::state ( vector_t< material_record_type > && steps)
explicit

Construct from externally provided vector for the steps.

Parameters
stepsVector containing the material steps.

Member Function Documentation

◆ get_material_steps()

template<template< typename... > class vector_t>
const auto & detray::material_validator::material_tracer< vector_t >::state::get_material_steps ( ) const

Access to the recorded material steps along the track - const.

Returns
Recorded material steps.

◆ get_track_material()

template<template< typename... > class vector_t>
const auto & detray::material_validator::material_tracer< vector_t >::state::get_track_material ( ) const

Access to the total recorded material along the track - const.

Returns
Recorded track material.

◆ release_material_steps()

template<template< typename... > class vector_t>
auto && detray::material_validator::material_tracer< vector_t >::state::release_material_steps ( ) &&

Move the recorded material steps pout of the actor.

Returns
The moved material steps.

◆ release_track_material()

template<template< typename... > class vector_t>
auto && detray::material_validator::material_tracer< vector_t >::state::release_track_material ( ) &&

Move the total recorded material out of the actor.

Returns
The moved track material.