|
ACTS
Experiment-independent tracking
|
CRTP base class for TrackStateType and TrackStateTypeMap.
More...
#include <Acts/EventData/TrackStateType.hpp>
Public Types | |
| using | bitset_type = std::bitset<kRawBits> |
| Type alias for bitset representation. | |
| using | raw_type = std::uint64_t |
| Type alias for underlying raw data type. | |
Public Member Functions | |
| bool | hasMaterial () const |
| Checks if the track state has material. | |
| bool | hasMeasurement () const |
| Checks if the track state has a measurement. | |
| bool | hasNoExpectedHit () const |
| Checks if the track state has no expected hit. | |
| bool | hasParameters () const |
| Checks if the track state has parameters. | |
| bool | isHole () const |
| Checks if the track state is a hole. | |
| bool | isMaterial () const |
| Checks if the track state is a pure material state. | |
| bool | isMeasurement () const |
| Checks if the track state is a pure measurement state. | |
| bool | isOutlier () const |
| Checks if the track state is an outlier. | |
| bool | isSharedHit () const |
| Checks if the track state has a shared hit. | |
| bool | isSplitHit () const |
| Checks if the track state has a split hit. | |
| template<typename DerivedOther, bool ReadOnlyOther> requires (!ReadOnly) | |
| Derived | operator= (const TrackStateTypeBase< DerivedOther, ReadOnlyOther > &other) |
| Assigns the flags from another TrackStateTypeBase. | |
| void | reset () |
| Resets all flags to zero. | |
| Derived & | setHasMaterial (bool value=true) |
| Sets whether the track state has material. | |
| Derived & | setHasMeasurement (bool value=true) |
| Sets whether the track state has a measurement. | |
| Derived & | setHasNoExpectedHit (bool value=true) |
| Sets the track state to have no expected hit. | |
| Derived & | setHasParameters (bool value=true) |
| Sets whether the track state has parameters. | |
| Derived & | setIsHole (bool value=true) |
| Sets the track state to be a hole. | |
| Derived & | setIsMaterial () |
| Sets the track state to be a pure material state. | |
| Derived & | setIsMeasurement () |
| Sets the track state to be a pure measurement state. | |
| Derived & | setIsOutlier (bool value=true) |
| Sets the track state to be an outlier. | |
| Derived & | setIsSharedHit (bool value=true) |
| Sets the track state to be a shared hit. | |
| Derived & | setIsSplitHit (bool value=true) |
| Sets the track state to be a split hit. | |
| void | setUnchecked (std::size_t pos, bool value=true) |
Change the value of the bit at position pos to value. | |
| void | setUnchecked (TrackStateFlag flag, bool value=true) |
Change the value of the bit for flag to value. | |
| bool | test (std::size_t pos) const |
Return if the bit at position pos is set. | |
| bool | test (TrackStateFlag flag) const |
Return if the bit for flag is set. | |
Static Public Attributes | |
| static constexpr std::size_t | kRawBits |
| Number of bits available in the raw storage type. | |
Protected Member Functions | |
| void | assertConsistency () const |
| Asserts the consistency of the current flag combination. | |
| bitset_type | bits () const |
| Returns the bitset representation of the underlying raw data. | |
| Derived & | self () |
| const Derived & | self () const |
CRTP base class for TrackStateType and TrackStateTypeMap.
| Derived | The derived class |
| ReadOnly | Whether the derived class is read-only |
| using Acts::TrackStateTypeBase< Derived, ReadOnly >::bitset_type = std::bitset<kRawBits> |
Type alias for bitset representation.
| using Acts::TrackStateTypeBase< Derived, ReadOnly >::raw_type = std::uint64_t |
Type alias for underlying raw data type.
|
protected |
Asserts the consistency of the current flag combination.
|
protected |
Returns the bitset representation of the underlying raw data.
| bool Acts::TrackStateTypeBase< Derived, ReadOnly >::hasMaterial | ( | ) | const |
Checks if the track state has material.
| bool Acts::TrackStateTypeBase< Derived, ReadOnly >::hasMeasurement | ( | ) | const |
Checks if the track state has a measurement.
| bool Acts::TrackStateTypeBase< Derived, ReadOnly >::hasNoExpectedHit | ( | ) | const |
Checks if the track state has no expected hit.
| bool Acts::TrackStateTypeBase< Derived, ReadOnly >::hasParameters | ( | ) | const |
Checks if the track state has parameters.
| bool Acts::TrackStateTypeBase< Derived, ReadOnly >::isHole | ( | ) | const |
Checks if the track state is a hole.
| bool Acts::TrackStateTypeBase< Derived, ReadOnly >::isMaterial | ( | ) | const |
Checks if the track state is a pure material state.
| bool Acts::TrackStateTypeBase< Derived, ReadOnly >::isMeasurement | ( | ) | const |
Checks if the track state is a pure measurement state.
| bool Acts::TrackStateTypeBase< Derived, ReadOnly >::isOutlier | ( | ) | const |
Checks if the track state is an outlier.
| bool Acts::TrackStateTypeBase< Derived, ReadOnly >::isSharedHit | ( | ) | const |
Checks if the track state has a shared hit.
| bool Acts::TrackStateTypeBase< Derived, ReadOnly >::isSplitHit | ( | ) | const |
Checks if the track state has a split hit.
| Derived Acts::TrackStateTypeBase< Derived, ReadOnly >::operator= | ( | const TrackStateTypeBase< DerivedOther, ReadOnlyOther > & | other | ) |
Assigns the flags from another TrackStateTypeBase.
| void Acts::TrackStateTypeBase< Derived, ReadOnly >::reset | ( | ) |
Resets all flags to zero.
|
protected |
|
protected |
| Derived & Acts::TrackStateTypeBase< Derived, ReadOnly >::setHasMaterial | ( | bool | value = true | ) |
Sets whether the track state has material.
| value | the value to set |
| Derived & Acts::TrackStateTypeBase< Derived, ReadOnly >::setHasMeasurement | ( | bool | value = true | ) |
Sets whether the track state has a measurement.
| value | the value to set |
| Derived & Acts::TrackStateTypeBase< Derived, ReadOnly >::setHasNoExpectedHit | ( | bool | value = true | ) |
Sets the track state to have no expected hit.
| value | the value to set |
| Derived & Acts::TrackStateTypeBase< Derived, ReadOnly >::setHasParameters | ( | bool | value = true | ) |
Sets whether the track state has parameters.
| value | the value to set |
| Derived & Acts::TrackStateTypeBase< Derived, ReadOnly >::setIsHole | ( | bool | value = true | ) |
Sets the track state to be a hole.
| value | the value to set |
| Derived & Acts::TrackStateTypeBase< Derived, ReadOnly >::setIsMaterial | ( | ) |
Sets the track state to be a pure material state.
| Derived & Acts::TrackStateTypeBase< Derived, ReadOnly >::setIsMeasurement | ( | ) |
Sets the track state to be a pure measurement state.
| Derived & Acts::TrackStateTypeBase< Derived, ReadOnly >::setIsOutlier | ( | bool | value = true | ) |
Sets the track state to be an outlier.
| value | the value to set |
| Derived & Acts::TrackStateTypeBase< Derived, ReadOnly >::setIsSharedHit | ( | bool | value = true | ) |
Sets the track state to be a shared hit.
| value | the value to set |
| Derived & Acts::TrackStateTypeBase< Derived, ReadOnly >::setIsSplitHit | ( | bool | value = true | ) |
Sets the track state to be a split hit.
| value | the value to set |
| void Acts::TrackStateTypeBase< Derived, ReadOnly >::setUnchecked | ( | std::size_t | pos, |
| bool | value = true ) |
Change the value of the bit at position pos to value.
| pos | the position of the bit to change |
| value | the value to change the bit to |
| void Acts::TrackStateTypeBase< Derived, ReadOnly >::setUnchecked | ( | TrackStateFlag | flag, |
| bool | value = true ) |
Change the value of the bit for flag to value.
| flag | the flag to change |
| value | the value to change the bit to |
| bool Acts::TrackStateTypeBase< Derived, ReadOnly >::test | ( | std::size_t | pos | ) | const |
Return if the bit at position pos is set.
| pos | the position of the bit to test |
pos is one or not | bool Acts::TrackStateTypeBase< Derived, ReadOnly >::test | ( | TrackStateFlag | flag | ) | const |
Return if the bit for flag is set.
| flag | the flag to test |
flag is one or not
|
staticconstexpr |
Number of bits available in the raw storage type.