ATLAS Offline Software
DetectorDescription
Identifier
src
Identifier32.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
6
#include "
Identifier/Identifier32.h
"
7
#include <algorithm>
8
#include <cstdarg>
9
#include <cstdio>
10
11
#include <iostream>
12
#include <iomanip>
13
14
15
//-----------------------------------------------
16
std::string
Identifier32::getString
()
const
17
{
18
std::string
result
;
19
char
temp[20];
20
21
sprintf (temp,
"0x%x"
, (
unsigned
int
)
m_id
);
22
result
+= temp;
23
return
(
result
);
24
}
25
26
//-----------------------------------------------
27
void
Identifier32::show
()
const
28
{
29
static_assert(
std::is_trivially_destructible<Identifier32>::value
);
30
static_assert(
std::is_trivially_copy_constructible<Identifier32>::value
);
31
const
Identifier32
& me = *
this
;
32
std::cout << me.
getString
();
33
}
34
35
Identifier32::show
void show() const
Print out in hex form.
Definition:
Identifier32.cxx:27
Identifier32
Definition:
Identifier32.h:25
get_generator_info.result
result
Definition:
get_generator_info.py:21
athena.value
value
Definition:
athena.py:122
Identifier32.h
Identifier32::m_id
value_type m_id
Definition:
Identifier32.h:110
Identifier32::getString
std::string getString() const
Provide a string form of the identifier - hexadecimal.
Definition:
Identifier32.cxx:16
Generated on Sun Jun 30 2024 21:17:13 for ATLAS Offline Software by
1.8.18