|
ACTS
Experiment-independent tracking
|
This class is a pure run-time placeholder for the axis definition. More...
#include <Acts/Utilities/ProtoAxis.hpp>
Public Member Functions | |
| ProtoAxis (Acts::AxisBoundaryType abType, const std::vector< double > &edges) | |
| Convenience constructors - for variable binning. | |
| ProtoAxis (AxisBoundaryType abType, double minE, double maxE, std::size_t nbins) | |
| Convenience constructors - for equidistant binning. | |
| ProtoAxis (AxisBoundaryType abType, std::size_t nbins) | |
| Placeholder constructor for auto-range binning. | |
| ProtoAxis (const ProtoAxis &other) | |
| Custom copy constructor. | |
| ProtoAxis (ProtoAxis &&)=default | |
| Move constructor. | |
| ~ProtoAxis ()=default | |
| const IAxis & | getAxis () const |
| Return the IAxis representation. | |
| bool | isAutorange () const |
| check if this is an auto-range binning | |
| ProtoAxis & | operator= (const ProtoAxis &other) |
| Custom assignment operator. | |
| ProtoAxis & | operator= (ProtoAxis &&)=default |
| Move assignment operator. | |
| void | setRange (double minE, double maxE) |
| Set the range, in case of autorange, this will toggle the autorange flag to false. | |
| std::string | toString () const |
| Dump into a string. | |
Protected Attributes | |
| bool | m_autorange = false |
| Indicate if this is a place holder auto-range binning. | |
| std::unique_ptr< IAxis > | m_axis = nullptr |
| The axis representation. | |
This class is a pure run-time placeholder for the axis definition.
The IAxis allows via the visitor pattern to access the actual axis type which helps to create grid creation code by the compiler as done in the makeGrid helper functions.
In addition to a simple axis definitions, it holds also a description of the axis direction.
| Acts::ProtoAxis::ProtoAxis | ( | Acts::AxisBoundaryType | abType, |
| const std::vector< double > & | edges ) |
Convenience constructors - for variable binning.
| abType | the axis boundary type |
| edges | the bin edges (variable binning) |
| Acts::ProtoAxis::ProtoAxis | ( | AxisBoundaryType | abType, |
| double | minE, | ||
| double | maxE, | ||
| std::size_t | nbins ) |
Convenience constructors - for equidistant binning.
| abType | the axis boundary type |
| minE | the lowest edge of the binning |
| maxE | the highest edge of the binning |
| nbins | the number of bins |
| Acts::ProtoAxis::ProtoAxis | ( | AxisBoundaryType | abType, |
| std::size_t | nbins ) |
Placeholder constructor for auto-range binning.
| abType | the axis boundary type |
| nbins | the number of bins |
| Acts::ProtoAxis::ProtoAxis | ( | const ProtoAxis & | other | ) |
Custom copy constructor.
| other | is the right hand side ProtoAxis |
|
default |
Move constructor.
|
default |
| const IAxis & Acts::ProtoAxis::getAxis | ( | ) | const |
Return the IAxis representation.
AxisType of this axis | bool Acts::ProtoAxis::isAutorange | ( | ) | const |
check if this is an auto-range binning
Custom assignment operator.
| other | is the right hand side ProtoAxis |
Move assignment operator.
| void Acts::ProtoAxis::setRange | ( | double | minE, |
| double | maxE ) |
Set the range, in case of autorange, this will toggle the autorange flag to false.
| an | exception if minE > maxE |
| minE | the lowest edge of the binning |
| maxE | the highest edge of the binning |
| std::string Acts::ProtoAxis::toString | ( | ) | const |
Dump into a string.
|
protected |
Indicate if this is a place holder auto-range binning.
|
protected |
The axis representation.