File TrackStateType.hpp

namespace Acts

Note

This file is foreseen for the Geometry module to replace Extent

Enums

enum TrackStateFlag

This enum describes the type of TrackState.

Values:

enumerator MeasurementFlag
enumerator ParameterFlag
enumerator OutlierFlag
enumerator HoleFlag
enumerator MaterialFlag
enumerator SharedHitFlag
enumerator NumTrackStateFlags
class ConstTrackStateType
#include <Acts/EventData/TrackStateType.hpp>

View type over a bitset stored in a 64 bit integer This view does not allow modifications.

Public Types

using raw_type = std::uint64_t

Public Functions

inline ConstTrackStateType(const raw_type &raw)

Constructor from a reference to the underlying value container.

Parameters

raw – the value container

inline bool test(std::size_t pos) const

Return if the bit at position pos is 1.

Parameters

pos – the bit position

Returns

if the bit at pos is one or not

Public Static Attributes

static constexpr std::size_t kRawBits = std::numeric_limits<std::make_unsigned<raw_type>::type>::digits

Private Members

const raw_type *m_raw = {nullptr}

Friends

inline friend std::ostream &operator<<(std::ostream &os, ConstTrackStateType t)
friend class TrackStateType
class TrackStateType
#include <Acts/EventData/TrackStateType.hpp>

View type over a bitset stored in a 64 bit integer This view allows modifications.

Public Types

using raw_type = std::uint64_t

Public Functions

inline TrackStateType(raw_type &raw)

Constructor from a reference to the underlying value container.

Parameters

raw – the value container

inline operator ConstTrackStateType()

Automatically convert to const track state type.

inline TrackStateType &operator=(const ConstTrackStateType &other)

Assign the value from another set of flags.

Parameters

other – the other set of flags to assign

Returns

this object

inline TrackStateType &operator=(const TrackStateType &other)

Assign the value from another set of flags.

Parameters

other – the other set of flags to assign

Returns

this object

inline void reset(std::size_t pos)

Change the value of the bit at position at pos to false.

Parameters

pos – the position of the bit to change

inline void set(std::size_t pos, bool value = true)

Change the value of the bit at position pos to value.

Parameters
  • pos – the position of the bit to change

  • value – the value to change the bit to

inline bool test(std::size_t pos) const

Return if the bit at position pos is 1.

Parameters

pos – the bit position

Returns

if the bit at pos is one or not

Public Static Attributes

static constexpr std::size_t kRawBits = std::numeric_limits<std::make_unsigned<raw_type>::type>::digits

Private Members

raw_type *m_raw = {nullptr}