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

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

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

Inheritance diagram for Acts::ISurfaceMaterialAccumulator:
[legend]

Classes

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

Public Member Functions

virtual ~ISurfaceMaterialAccumulator ()=default
 Virtual destructor.
virtual void accumulate (State &state, const GeometryContext &gctx, 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 GeometryContext &gctx) const =0
 Factory for creating the state.
virtual std::map< GeometryIdentifier, std::shared_ptr< const ISurfaceMaterial > > finalizeMaterial (State &state, const GeometryContext &gctx) const =0
 Finalize the surface material maps.

Detailed Description

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

Member Function Documentation

◆ accumulate()

virtual void Acts::ISurfaceMaterialAccumulator::accumulate ( State & state,
const GeometryContext & gctx,
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 accumulator
gctxthe geometry context
interactionsis the material interactions, with assigned surfaces
surfacesWithoutAssignmentare the surfaces without assignment
Note
this the track average over the binned material

Implemented in Acts::BinnedSurfaceMaterialAccumulator.

◆ createState()

virtual std::unique_ptr< State > Acts::ISurfaceMaterialAccumulator::createState ( const GeometryContext & gctx) const
pure virtual

Factory for creating the state.

Parameters
gctxthe geometry context
Returns
Unique pointer to a new state object for material accumulation

Implemented in Acts::BinnedSurfaceMaterialAccumulator.

◆ finalizeMaterial()

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

Finalize the surface material maps.

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

Implemented in Acts::BinnedSurfaceMaterialAccumulator.