Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
Related Functions
:
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
v
w
x
z
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
x
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
GitLab
LXR
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
DetectorDescription
Identifier
Identifier
IdentifierHash.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
6
#ifndef IDENTIFIER_IDENTIFIERHASH_H
7
#define IDENTIFIER_IDENTIFIERHASH_H
8
9
#include "GaudiKernel/MsgStream.h"
25
class
IdentifierHash
{
26
public
:
27
using
value_type
=
unsigned
int
;
29
IdentifierHash
() =
default
;
31
IdentifierHash
(
value_type
value
);
34
operator
unsigned
int
()
const
;
35
unsigned
int
value
()
const
;
38
bool
is_valid
()
const
;
40
IdentifierHash
&
operator =
(
value_type
value
);
41
IdentifierHash
&
operator +=
(
unsigned
int
value
);
42
IdentifierHash
&
operator -=
(
unsigned
int
value
);
43
44
private
:
46
static
constexpr
value_type
m_max_value
= 0xFFFFFFFF;
47
//
48
value_type
m_value
=
m_max_value
;
49
};
50
51
52
// Define a hash functional
53
namespace
std {
54
template
<>
55
struct
hash
<
IdentifierHash
>{
56
size_t
operator()
(
const
IdentifierHash
&
id
)
const
{
57
return
static_cast<
size_t
>
(
id
.value());
58
}
59
};
60
}
61
62
#include "
Identifier/IdentifierHash.icc
"
63
#endif // IDENTIFIER_IDENTIFIERHASH_H
IdentifierHash::value
unsigned int value() const
std::hash< IdentifierHash >::operator()
size_t operator()(const IdentifierHash &id) const
Definition:
IdentifierHash.h:56
IdentifierHash::operator-=
IdentifierHash & operator-=(unsigned int value)
IdentifierHash::m_value
value_type m_value
Definition:
IdentifierHash.h:48
python.LArMinBiasAlgConfig.int
int
Definition:
LArMinBiasAlgConfig.py:59
IdentifierHash.icc
IdentifierHash::m_max_value
static constexpr value_type m_max_value
default value, and indicator of invalid state
Definition:
IdentifierHash.h:46
IdentifierHash::is_valid
bool is_valid() const
Check if id is in a valid state.
IdentifierHash::IdentifierHash
IdentifierHash()=default
Default methods.
IdentifierHash::operator+=
IdentifierHash & operator+=(unsigned int value)
CaloCondBlobAlgs_fillNoiseFromASCII.hash
dictionary hash
Definition:
CaloCondBlobAlgs_fillNoiseFromASCII.py:109
IdentifierHash
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
Definition:
IdentifierHash.h:25
value_type
Definition:
EDM_MasterSearch.h:11
IdentifierHash::operator=
IdentifierHash & operator=(value_type value)
Assignment operators.
IdentifierHash::IdentifierHash
IdentifierHash(value_type value)
Initialization with value.
Generated on Sun Apr 20 2025 21:11:48 for ATLAS Offline Software by
1.8.18