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

Simple struct to select volumes. More...

#include <Acts/Propagator/VolumeCollector.hpp>

Public Member Functions

 VolumeSelector (bool sMaterial=true, bool sLayer=false, bool sPassive=false)
 VolumeSelector with options.
bool operator() (const Acts::TrackingVolume &volume) const
 Call operator to check if a volume should be selected.

Public Attributes

bool selectLayer = false
 Flag indicating whether to select volumes with layers.
bool selectMaterial = true
 Flag indicating whether to select volumes with material.
bool selectPassive = false
 Flag indicating whether to select passive volumes.

Detailed Description

Simple struct to select volumes.

Constructor & Destructor Documentation

◆ VolumeSelector()

Acts::VolumeSelector::VolumeSelector ( bool sMaterial = true,
bool sLayer = false,
bool sPassive = false )
explicit

VolumeSelector with options.

Parameters
sMaterialis the directive to select material volumes
sLayeris the directive to select volumes with layers
sPassiveis the directive to select passive volumes

Member Function Documentation

◆ operator()()

bool Acts::VolumeSelector::operator() ( const Acts::TrackingVolume & volume) const

Call operator to check if a volume should be selected.

Parameters
volumeis the test volume
Returns
true if volume meets selection criteria

Member Data Documentation

◆ selectLayer

bool Acts::VolumeSelector::selectLayer = false

Flag indicating whether to select volumes with layers.

◆ selectMaterial

bool Acts::VolumeSelector::selectMaterial = true

Flag indicating whether to select volumes with material.

◆ selectPassive

bool Acts::VolumeSelector::selectPassive = false

Flag indicating whether to select passive volumes.