ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
Acts::TrackStateType Class Reference

TrackStateTypeBase captured by value. More...

#include <Acts/EventData/TrackStateType.hpp>

Inheritance diagram for Acts::TrackStateType:
[legend]
Collaboration diagram for Acts::TrackStateType:
[legend]

Public Types

using Base = TrackStateTypeBase<TrackStateType, false>
 Base class type.
Public Types inherited from Acts::TrackStateTypeBase< TrackStateType, false >
using bitset_type
 Type alias for bitset representation.
using raw_type
 Type alias for underlying raw data type.

Public Member Functions

 TrackStateType (raw_type raw)
 Construct from raw value.
TrackStateType operator= (const TrackStateTypeBase< DerivedOther, ReadOnlyOther > &other)
 Assigns the flags from another TrackStateTypeBase.
raw_typeraw ()
 Access raw storage.
const raw_typeraw () const
 Access raw storage (const).
Public Member Functions inherited from Acts::TrackStateTypeBase< TrackStateType, false >
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.
TrackStateType operator= (const TrackStateTypeBase< DerivedOther, ReadOnlyOther > &other)
 Assigns the flags from another TrackStateTypeBase.
void reset ()
 Resets all flags to zero.
TrackStateTypesetHasMaterial (bool value=true)
 Sets whether the track state has material.
TrackStateTypesetHasMeasurement (bool value=true)
 Sets whether the track state has a measurement.
TrackStateTypesetHasNoExpectedHit (bool value=true)
 Sets the track state to have no expected hit.
TrackStateTypesetHasParameters (bool value=true)
 Sets whether the track state has parameters.
TrackStateTypesetIsHole (bool value=true)
 Sets the track state to be a hole.
TrackStateTypesetIsMaterial ()
 Sets the track state to be a pure material state.
TrackStateTypesetIsMeasurement ()
 Sets the track state to be a pure measurement state.
TrackStateTypesetIsOutlier (bool value=true)
 Sets the track state to be an outlier.
TrackStateTypesetIsSharedHit (bool value=true)
 Sets the track state to be a shared hit.
TrackStateTypesetIsSplitHit (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.

Additional Inherited Members

Static Public Attributes inherited from Acts::TrackStateTypeBase< TrackStateType, false >
static constexpr std::size_t kRawBits
 Number of bits available in the raw storage type.
Protected Member Functions inherited from Acts::TrackStateTypeBase< TrackStateType, false >
void assertConsistency () const
 Asserts the consistency of the current flag combination.
bitset_type bits () const
 Returns the bitset representation of the underlying raw data.
TrackStateTypeself ()
 Cast to derived class.
const TrackStateTypeself () const
 Cast to derived class (const).

Detailed Description

TrackStateTypeBase captured by value.

Constructor & Destructor Documentation

◆ TrackStateType()

Acts::TrackStateType::TrackStateType ( raw_type raw)
explicit

Construct from raw value.

Parameters
rawThe raw flag bits

Member Function Documentation

◆ operator=()

TrackStateType Acts::TrackStateTypeBase< TrackStateType, ReadOnly >::operator= ( const TrackStateTypeBase< DerivedOther, ReadOnlyOther > & other)

Assigns the flags from another TrackStateTypeBase.

Template Parameters
DerivedOtherThe derived type of the other object
ReadOnlyOtherWhether the other object is read-only
Parameters
otherThe track state type to copy from
Returns
Reference to this object

◆ raw() [1/2]

raw_type & Acts::TrackStateType::raw ( )

Access raw storage.

Returns
Reference to raw storage

◆ raw() [2/2]

const raw_type & Acts::TrackStateType::raw ( ) const

Access raw storage (const).

Returns
Const reference to raw storage