ATLAS Offline Software
Loading...
Searching...
No Matches
TrackStateFlagHelper.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3 */
4#ifndef ACTSTRK_TRACKSTATEFLAGHELPER_H
5#define ACTSTRK_TRACKSTATEFLAGHELPER_H
6#include "Acts/EventData/TrackStateType.hpp"
7
8namespace ActsTrk::detail {
9 // convenience functions to test and set track state flags
10 constexpr unsigned int setTrackStateFlag(Acts::TrackStateFlag flag) {
11 return 1u<<static_cast<unsigned int>(flag);
12 }
13 constexpr bool testTrackStateFlag(Acts::TrackStateFlag flag, unsigned int flags) {
14 return flags & setTrackStateFlag(flag);
15 }
16}
17#endif
Hash functions to pack the source link into unordered_maps / unordered_sets.
constexpr unsigned int setTrackStateFlag(Acts::TrackStateFlag flag)
constexpr bool testTrackStateFlag(Acts::TrackStateFlag flag, unsigned int flags)