![]() |
ATLAS Offline Software
|
#include <HWIdentifier.h>
Public Types | |
| typedef enum Identifier::max_value_type_enum | max_value_type |
| enum | bit_defs_enum { NBITS = sizeof(value_type) * 8 , MAX_BIT = (static_cast<value_type>(1) << (NBITS - 1)) , ALL_BITS = ~(static_cast<value_type>(0)) } |
| enum | max_value_type_enum { max_value = ~(static_cast<value_type>(0)) } |
| using | id_type = Identifier |
| using | value_type = unsigned long long |
| typedef Long64_t | value_type |
| using | diff_type = long long |
| using | size_type = unsigned long long |
| typedef enum Identifier::bit_defs_enum | bit_defs |
Public Member Functions | |
| HWIdentifier ()=default | |
| Default constructor. | |
| HWIdentifier (value_type value) | |
| Constructor from value_type. | |
| HWIdentifier (const Identifier &old) | |
| Constructor from Identifier. | |
| HWIdentifier (Identifier32::value_type value) | |
| Constructor from Identifier32 value_type (unsigned int). | |
| HWIdentifier (int value) | |
| void | set (const std::string &id) |
| build from a string form - hexadecimal | |
| void | clear () |
| Reset to invalid state. | |
| Identifier & | set_literal (value_type value) |
| Set literal value. | |
| Identifier32 | get_identifier32 () const |
| Get the 32-bit version Identifier, will be invalid if >32 bits needed. | |
| value_type | get_compact () const |
| Get the compact id. | |
| bool | operator== (const Identifier &other) const =default |
| bool | operator== (value_type other) const |
| Comparison operators with value_type. | |
| bool | operator== (Identifier32::value_type other) const |
| bool | operator== (int other) const |
| bool | operator== (const Identifier &other) const |
| bool | operator== (Identifier::value_type other) const |
| auto | operator<=> (const Identifier &other) const |
| bool | is_valid () const |
| Check if id is in a valid state. | |
| std::string | getString () const |
| Provide a string form of the identifier - hexadecimal. | |
| void | show (std::ostream &out) const |
| Print out in hex form. | |
| void | show (MsgStream &out) const |
| operator value_type () const | |
| bool | operator!= (const Identifier &other) const |
| bool | operator!= (Identifier::value_type other) const |
| bool | operator< (const Identifier &other) const |
| bool | operator> (const Identifier &other) const |
| bool | operator<= (const Identifier &other) const |
| bool | operator>= (const Identifier &other) const |
Static Public Attributes | |
| static constexpr unsigned int | NBITS = sizeof(value_type) * 8 |
| static constexpr value_type | MAX_BIT = (static_cast<value_type>(1) << (NBITS - 1)) |
| static constexpr value_type | ALL_BITS = ~(static_cast<value_type>(0)) |
Private Types | |
| enum | max_value_type { max_value = ~(static_cast<value_type>(0)) } |
Private Member Functions | |
| Identifier & | operator|= (value_type value) |
| Bitwise operations. | |
| Identifier & | operator&= (value_type value) |
| value_type | extract (size_type shift, size_type mask) const |
| extract field from identifier (shift first, then mask) | |
| value_type | extract (size_type shift) const |
| extract field, no mask | |
| value_type | mask_shift (value_type mask, size_type shift) const |
| extract field(s) by masking first, then shifting | |
Private Attributes | |
| value_type | m_id = max_value |
| The only data member. | |
Definition at line 13 of file HWIdentifier.h.
|
inherited |
|
inherited |
Definition at line 30 of file DetectorDescription/Identifier/Identifier/Identifier.h.
|
inherited |
Definition at line 28 of file DetectorDescription/Identifier/Identifier/Identifier.h.
|
inherited |
|
inherited |
Definition at line 31 of file DetectorDescription/Identifier/Identifier/Identifier.h.
|
inherited |
Definition at line 29 of file DetectorDescription/Identifier/Identifier/Identifier.h.
|
inherited |
Definition at line 18 of file Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimParametrization/tools/Identifier/Identifier.h.
|
inherited |
| Enumerator | |
|---|---|
| NBITS | |
| MAX_BIT | |
| ALL_BITS | |
Definition at line 20 of file Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimParametrization/tools/Identifier/Identifier.h.
|
privateinherited |
| Enumerator | |
|---|---|
| max_value | |
Definition at line 129 of file DetectorDescription/Identifier/Identifier/Identifier.h.
|
inherited |
| Enumerator | |
|---|---|
| max_value | |
Definition at line 27 of file Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimParametrization/tools/Identifier/Identifier.h.
|
default |
Default constructor.
|
inlineexplicit |
Constructor from value_type.
Definition at line 45 of file HWIdentifier.h.
|
inlineexplicit |
Constructor from Identifier.
Definition at line 49 of file HWIdentifier.h.
|
inlineexplicit |
Constructor from Identifier32 value_type (unsigned int).
Definition at line 53 of file HWIdentifier.h.
|
inlineexplicit |
Definition at line 57 of file HWIdentifier.h.
|
inherited |
Reset to invalid state.
|
privateinherited |
extract field, no mask
|
privateinherited |
extract field from identifier (shift first, then mask)
|
inherited |
Get the compact id.
|
inherited |
Get the 32-bit version Identifier, will be invalid if >32 bits needed.
|
inherited |
Provide a string form of the identifier - hexadecimal.
Definition at line 26 of file Identifier.cxx.
|
inherited |
Check if id is in a valid state.
|
privateinherited |
extract field(s) by masking first, then shifting
|
inlineinherited |
Definition at line 36 of file Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimParametrization/tools/Identifier/Identifier.h.
|
inlineinherited |
Definition at line 41 of file Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimParametrization/tools/Identifier/Identifier.h.
|
inlineinherited |
Definition at line 47 of file Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimParametrization/tools/Identifier/Identifier.h.
|
privateinherited |
|
inlineinherited |
Definition at line 42 of file Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimParametrization/tools/Identifier/Identifier.h.
|
inlineinherited |
Definition at line 44 of file Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimParametrization/tools/Identifier/Identifier.h.
|
inlineinherited |
Definition at line 92 of file DetectorDescription/Identifier/Identifier/Identifier.h.
|
inlineinherited |
Definition at line 40 of file Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimParametrization/tools/Identifier/Identifier.h.
|
defaultinherited |
|
inherited |
|
inlineinherited |
Definition at line 46 of file Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimParametrization/tools/Identifier/Identifier.h.
|
inherited |
|
inherited |
Comparison operators with value_type.
This is a hack, only because GeoAdaptors/GeoMuonHits wants to to compare explicitly with 0 as a test of whether the identifier has been constructed properly. But is_valid() here compares with max_value, not 0, since presumably it is possible to have a zero value - just not in muons.
|
inlineinherited |
Definition at line 43 of file Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimParametrization/tools/Identifier/Identifier.h.
|
inlineinherited |
Definition at line 45 of file Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimParametrization/tools/Identifier/Identifier.h.
|
privateinherited |
Bitwise operations.
|
inherited |
build from a string form - hexadecimal
Definition at line 13 of file Identifier.cxx.
|
inherited |
Set literal value.
|
inherited |
Definition at line 36 of file Identifier.cxx.
|
inherited |
Print out in hex form.
Definition at line 31 of file Identifier.cxx.
|
staticconstexprinherited |
Definition at line 35 of file DetectorDescription/Identifier/Identifier/Identifier.h.
|
privateinherited |
The only data member.
Definition at line 133 of file DetectorDescription/Identifier/Identifier/Identifier.h.
|
staticconstexprinherited |
Definition at line 34 of file DetectorDescription/Identifier/Identifier/Identifier.h.
|
staticconstexprinherited |
Definition at line 33 of file DetectorDescription/Identifier/Identifier/Identifier.h.