ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
Acts::InteractionVolume Struct Reference

The Material interaction volume struct. More...

#include <Acts/Material/MaterialInteraction.hpp>

Collaboration diagram for Acts::InteractionVolume:
[legend]

Public Member Functions

 InteractionVolume ()=default
 Empty constructor.
 InteractionVolume (const TrackingVolume *tv)
 Constructor from tracking volume.
bool empty () const
 Check if the volume is valid.
GeometryIdentifier geometryId () const
 Forward the geometry identifier.

Public Attributes

const TrackingVolumetrackingVolume = nullptr
 The tracking volume.

Detailed Description

The Material interaction volume struct.

It acts as a switch between detector and tracking volume as long as those co-exist alongside

Constructor & Destructor Documentation

◆ InteractionVolume() [1/2]

Acts::InteractionVolume::InteractionVolume ( )
default

Empty constructor.

◆ InteractionVolume() [2/2]

Acts::InteractionVolume::InteractionVolume ( const TrackingVolume * tv)
explicit

Constructor from tracking volume.

Parameters
tvThe tracking volume

Member Function Documentation

◆ empty()

bool Acts::InteractionVolume::empty ( ) const

Check if the volume is valid.

Returns
True if both tracking volume and detector volume pointers are null

◆ geometryId()

GeometryIdentifier Acts::InteractionVolume::geometryId ( ) const

Forward the geometry identifier.

Returns
The geometry identifier from the contained volume, or invalid ID if empty

Member Data Documentation

◆ trackingVolume

const TrackingVolume* Acts::InteractionVolume::trackingVolume = nullptr

The tracking volume.