ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
Acts::ISurfaceMaterialAccumulater Class Referenceabstract

Interface for the material mapping, this is the accumulation step. More...

#include <Acts/Material/interface/ISurfaceMaterialAccumulater.hpp>

Inheritance diagram for Acts::ISurfaceMaterialAccumulater:
[legend]

Classes

class  State
 The state of the material accumulater, this is used to cache information across tracks/events. More...

Public Member Functions

virtual ~ISurfaceMaterialAccumulater ()=default
 Virtual destructor.
virtual void accumulate (State &state, const std::vector< MaterialInteraction > &interactions, const std::vector< IAssignmentFinder::SurfaceAssignment > &surfacesWithoutAssignment) const =0
 Accumulate the material interaction on the surface.
virtual std::unique_ptr< StatecreateState () const =0
 Factory for creating the state.
virtual std::map< GeometryIdentifier, std::shared_ptr< const ISurfaceMaterial > > finalizeMaterial (State &state) const =0
 Finalize the surface material maps.

Detailed Description

Interface for the material mapping, this is the accumulation step.

Constructor & Destructor Documentation

◆ ~ISurfaceMaterialAccumulater()

virtual Acts::ISurfaceMaterialAccumulater::~ISurfaceMaterialAccumulater ( )
virtualdefault

Virtual destructor.

Member Function Documentation

◆ accumulate()

virtual void Acts::ISurfaceMaterialAccumulater::accumulate ( State & state,
const std::vector< MaterialInteraction > & interactions,
const std::vector< IAssignmentFinder::SurfaceAssignment > & surfacesWithoutAssignment ) const
pure virtual

Accumulate the material interaction on the surface.

Parameters
stateis the state of the accumulater
interactionsis the material interactions, with assigned surfaces
surfacesWithoutAssignmentare the surfaces without assignment
Note
this the track average over the binned material

Implemented in Acts::BinnedSurfaceMaterialAccumulater.

◆ createState()

virtual std::unique_ptr< State > Acts::ISurfaceMaterialAccumulater::createState ( ) const
pure virtual

Factory for creating the state.

Returns
Unique pointer to a new state object for material accumulation

Implemented in Acts::BinnedSurfaceMaterialAccumulater.

◆ finalizeMaterial()

virtual std::map< GeometryIdentifier, std::shared_ptr< const ISurfaceMaterial > > Acts::ISurfaceMaterialAccumulater::finalizeMaterial ( State & state) const
pure virtual

Finalize the surface material maps.

Parameters
statethe state of the accumulator
Note
this does the run average over the (binned) material
Returns
Map of geometry IDs to finalized surface material objects

Implemented in Acts::BinnedSurfaceMaterialAccumulater.