Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Acts::TrackStateType Class Reference

#include <acts/blob/sPHENIX/Core/include/Acts/EventData/TrackStateType.hpp>

Public Types

using raw_type = std::uint64_t
 

Public Member Functions

 TrackStateType (raw_type &raw)
 
 operator ConstTrackStateType ()
 Automatically convert to const track state type.
 
bool test (std::size_t pos) const
 
void set (std::size_t pos, bool value=true)
 
void reset (std::size_t pos)
 

Static Public Attributes

static constexpr std::size_t kRawBits
 

Private Attributes

raw_typem_raw {nullptr}
 

Detailed Description

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

Definition at line 37 of file TrackStateType.hpp.

View newest version in sPHENIX GitHub at line 37 of file TrackStateType.hpp

Member Typedef Documentation

using Acts::TrackStateType::raw_type = std::uint64_t

Definition at line 39 of file TrackStateType.hpp.

View newest version in sPHENIX GitHub at line 39 of file TrackStateType.hpp

Constructor & Destructor Documentation

Acts::TrackStateType::TrackStateType ( raw_type raw)
inline

Constructor from a reference to the underlying value container

Parameters
rawthe value container

Definition at line 44 of file TrackStateType.hpp.

View newest version in sPHENIX GitHub at line 44 of file TrackStateType.hpp

Member Function Documentation

Acts::TrackStateType::operator ConstTrackStateType ( )
inline

Automatically convert to const track state type.

Definition at line 134 of file TrackStateType.hpp.

View newest version in sPHENIX GitHub at line 134 of file TrackStateType.hpp

void Acts::TrackStateType::reset ( std::size_t  pos)
inline

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

Parameters
posthe position of the bit to change

Definition at line 84 of file TrackStateType.hpp.

View newest version in sPHENIX GitHub at line 84 of file TrackStateType.hpp

References Acts::Test::pos.

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

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

Parameters
posthe position of the bit to change
valuethe value to change the bit to

Definition at line 75 of file TrackStateType.hpp.

View newest version in sPHENIX GitHub at line 75 of file TrackStateType.hpp

References assert, m_raw, Acts::Test::pos, and value.

bool Acts::TrackStateType::test ( std::size_t  pos) const
inline

Return if the bit at position pos is 1

Parameters
posthe bit position
Returns
if the bit at pos is one or not

Definition at line 66 of file TrackStateType.hpp.

View newest version in sPHENIX GitHub at line 66 of file TrackStateType.hpp

References assert, and m_raw.

Member Data Documentation

constexpr std::size_t Acts::TrackStateType::kRawBits
static
Initial value:

Definition at line 40 of file TrackStateType.hpp.

View newest version in sPHENIX GitHub at line 40 of file TrackStateType.hpp

raw_type* Acts::TrackStateType::m_raw {nullptr}
private

Definition at line 87 of file TrackStateType.hpp.

View newest version in sPHENIX GitHub at line 87 of file TrackStateType.hpp

Referenced by set(), and test().


The documentation for this class was generated from the following file: