|
ACTS
Experiment-independent tracking
|
A class representing the geometric extent of an object in its possible dimensions, these can be all dimensions that are described as AxisDirections. More...
#include <Acts/Geometry/Extent.hpp>
Public Member Functions | |
| Extent (const ExtentEnvelope &envelope=ExtentEnvelope::Zero()) | |
| Constructor with (optional). | |
| void | addConstrain (const Extent &rhs, const ExtentEnvelope &envelope=ExtentEnvelope::Zero()) |
| Constrain an extent by another one, this is. | |
| bool | constrains () const |
| Check if this object constrains any direction. | |
| bool | constrains (AxisDirection aDir) const |
| Check if this object constrains a given direction. | |
| bool | contains (const Extent &rhs, std::optional< AxisDirection > aDir=std::nullopt) const |
| Contains check. | |
| bool | contains (const Vector3 &vtx) const |
| Contains check for a single point. | |
| ExtentEnvelope & | envelope () |
| Return the envelope - non-const access. | |
| const ExtentEnvelope & | envelope () const |
| Return the envelope - const access. | |
| void | extend (const Extent &rhs, const std::vector< AxisDirection > &aDirs=allAxisDirections(), bool applyEnv=true) |
| Extend with another geometric extent, usually pushes the current range to the boundaries of the rhs extent, unless the current extent is already bigger. | |
| void | extend (const Vector3 &vtx, const std::vector< AxisDirection > &aDirs=allAxisDirections(), bool applyEnv=true, bool fillHistograms=false) |
| Extend with a position vertex. | |
| template<typename vector_iterator_t> | |
| void | extend (const vector_iterator_t &start, const vector_iterator_t &end, const std::vector< AxisDirection > &aDirs=allAxisDirections(), bool applyEnv=true, bool fillHistograms=false) |
| Extend with a set of vectors by iterators. | |
| bool | intersects (const Extent &rhs, std::optional< AxisDirection > aDir=std::nullopt) const |
| Intersection checks. | |
| double | interval (AxisDirection aDir) const |
| Access the parameter interval (i.e. | |
| double | max (AxisDirection aDir) const |
| Access the maximum parameter. | |
| double | medium (AxisDirection aDir) const |
| Access the midpoint. | |
| double | min (AxisDirection aDir) const |
| Access the minimum parameter. | |
| bool | operator== (const Extent &e) const |
| Define a comparison operator. | |
| const RangeXD< numAxisDirections(), double > & | range () const |
| Return the N-dimension range. | |
| auto | range (AxisDirection aDir) |
| Return the individual 1-dimensional range. | |
| Range1D< double > | range (AxisDirection aDir) const |
| Return the individual 1-dimensional range. | |
| template<unsigned int kSUBDIM> | |
| RangeXD< kSUBDIM, double > | range (const std::array< AxisDirection, kSUBDIM > &axisDirections) const |
| Return an D-dimensional sub range according to the the given binvalues. | |
| void | set (AxisDirection aDir, double min, double max) |
| Set a range for a dedicated binning value. | |
| void | setEnvelope (const ExtentEnvelope &envelope=ExtentEnvelope::Zero()) |
| (re-)Set the envelope | |
| void | setMax (AxisDirection aDir, double max) |
| Set a max value for a dedicated binning value. | |
| void | setMin (AxisDirection aDir, double min) |
| Set a min value for a dedicated binning value. | |
| std::string | toString (const std::string &indent="") const |
| Convert to output stream for screen output. | |
| const std::array< std::vector< double >, numAxisDirections()> & | valueHistograms () const |
| Return the histogram store. | |
A class representing the geometric extent of an object in its possible dimensions, these can be all dimensions that are described as AxisDirections.
The extent object can have an optional envelope in all of those values
|
explicit |
Constructor with (optional).
| envelope |
| void Acts::Extent::addConstrain | ( | const Extent & | rhs, |
| const ExtentEnvelope & | envelope = ExtentEnvelope::Zero() ) |
Constrain an extent by another one, this is.
| rhs | are not touched |
| envelope | an envelope applied to the constrained value |
| bool Acts::Extent::constrains | ( | ) | const |
Check if this object constrains any direction.
| bool Acts::Extent::constrains | ( | AxisDirection | aDir | ) | const |
Check if this object constrains a given direction.
| aDir | is the axis direction |
| bool Acts::Extent::contains | ( | const Extent & | rhs, |
| std::optional< AxisDirection > | aDir = std::nullopt ) const |
Contains check.
| rhs | the extent that is check if it is contained |
| aDir | is the axis direction, if set to nullopt the check on all is done |
| bool Acts::Extent::contains | ( | const Vector3 & | vtx | ) | const |
Contains check for a single point.
| vtx | the point that is check if it is contained |
| ExtentEnvelope & Acts::Extent::envelope | ( | ) |
Return the envelope - non-const access.
| const ExtentEnvelope & Acts::Extent::envelope | ( | ) | const |
Return the envelope - const access.
| void Acts::Extent::extend | ( | const Extent & | rhs, |
| const std::vector< AxisDirection > & | aDirs = allAxisDirections(), | ||
| bool | applyEnv = true ) |
Extend with another geometric extent, usually pushes the current range to the boundaries of the rhs extent, unless the current extent is already bigger.
| rhs | is the other source Extent |
| aDirs | the axis directions |
| applyEnv | boolean to steer if envelope should be applied on the constraint values, if only an envelope is given but the value not constraint, then it is always applied |
| void Acts::Extent::extend | ( | const Vector3 & | vtx, |
| const std::vector< AxisDirection > & | aDirs = allAxisDirections(), | ||
| bool | applyEnv = true, | ||
| bool | fillHistograms = false ) |
Extend with a position vertex.
| vtx | the vertex to be used for extending |
| aDirs | the axis directions |
| applyEnv | boolean to steer if envelope should be applied |
| fillHistograms | is a boolean flag to steer whether the values to fill this extent should be stored |
| void Acts::Extent::extend | ( | const vector_iterator_t & | start, |
| const vector_iterator_t & | end, | ||
| const std::vector< AxisDirection > & | aDirs = allAxisDirections(), | ||
| bool | applyEnv = true, | ||
| bool | fillHistograms = false ) |
Extend with a set of vectors by iterators.
| start | the start iterator of the loop |
| end | the end iterator of the loop |
| aDirs | the axis directions |
| applyEnv | boolean to steer if envelope should be applied |
| fillHistograms | is a boolean flag to steer whether the values to fill this extent should be stored |
| bool Acts::Extent::intersects | ( | const Extent & | rhs, |
| std::optional< AxisDirection > | aDir = std::nullopt ) const |
Intersection checks.
| rhs | the extent that is check for intersection |
| aDir | is the axis direction, if set to nulloptr the check on all is done |
| double Acts::Extent::interval | ( | AxisDirection | aDir | ) | const |
Access the parameter interval (i.e.
the range span)
| aDir | the axis direction |
| double Acts::Extent::max | ( | AxisDirection | aDir | ) | const |
Access the maximum parameter.
| aDir | the axis direction |
| double Acts::Extent::medium | ( | AxisDirection | aDir | ) | const |
Access the midpoint.
| aDir | the axis direction |
| double Acts::Extent::min | ( | AxisDirection | aDir | ) | const |
Access the minimum parameter.
| aDir | the axis direction |
| bool Acts::Extent::operator== | ( | const Extent & | e | ) | const |
Define a comparison operator.
| e | The extent to compare with |
| const RangeXD< numAxisDirections(), double > & Acts::Extent::range | ( | ) | const |
Return the N-dimension range.
| auto Acts::Extent::range | ( | AxisDirection | aDir | ) |
Return the individual 1-dimensional range.
| aDir | is the axis direction to be returned |
| Range1D< double > Acts::Extent::range | ( | AxisDirection | aDir | ) | const |
Return the individual 1-dimensional range.
| aDir | is the axis direction to be returned |
| RangeXD< kSUBDIM, double > Acts::Extent::range | ( | const std::array< AxisDirection, kSUBDIM > & | axisDirections | ) | const |
Return an D-dimensional sub range according to the the given binvalues.
| kSUBDIM | the number of sub dimensions |
| axisDirections | the axis directions |
| void Acts::Extent::set | ( | AxisDirection | aDir, |
| double | min, | ||
| double | max ) |
Set a range for a dedicated binning value.
| aDir | the axis direction |
| min | the minimum parameter |
| max | the maximum parameter |
| void Acts::Extent::setEnvelope | ( | const ExtentEnvelope & | envelope = ExtentEnvelope::Zero() | ) |
(re-)Set the envelope
| envelope | new envelope to be set |
| void Acts::Extent::setMax | ( | AxisDirection | aDir, |
| double | max ) |
Set a max value for a dedicated binning value.
| aDir | the axis direction |
| max | the maximum parameter |
| void Acts::Extent::setMin | ( | AxisDirection | aDir, |
| double | min ) |
Set a min value for a dedicated binning value.
| aDir | the axis direction |
| min | the minimum parameter |
| std::string Acts::Extent::toString | ( | const std::string & | indent = "" | ) | const |
Convert to output stream for screen output.
| indent | indentation for the screen display |
| const std::array< std::vector< double >, numAxisDirections()> & Acts::Extent::valueHistograms | ( | ) | const |
Return the histogram store.
Return the value histograms.
The histogram store can be used for automated binning detection