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

Accumulate and average volume-based material properties. More...

#include <Acts/Material/AccumulatedVolumeMaterial.hpp>

Public Member Functions

void accumulate (const MaterialSlab &mat)
 Add one entry with the given material properties.
const Materialaverage ()
 Compute the average material collected so far.

Detailed Description

Accumulate and average volume-based material properties.

This class is intended to be used during the mapping process.

Member Function Documentation

◆ accumulate()

void Acts::AccumulatedVolumeMaterial::accumulate ( const MaterialSlab & mat)

Add one entry with the given material properties.

Parameters
matThe material slab to accumulate

◆ average()

const Material & Acts::AccumulatedVolumeMaterial::average ( )

Compute the average material collected so far.

Returns
Vacuum properties if no matter has been accumulated yet.