ATLAS Offline Software
Trigger
TrigT1
Global
GlobalSimulation
src
Utilities
hexTOB2bitsetTOB.cxx
Go to the documentation of this file.
1
// Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
2
3
#include "
hexTOB2bitsetTOB.h
"
4
#include <algorithm>
5
6
namespace
GlobalSim
{
7
8
std::bitset<72>
hexTOB2bitsetTOB
(std::string
s
) {
9
10
auto
bit_tob = std::bitset<72>();
11
auto
bs = std::bitset<4>();
12
13
std::size_t ind{
s
.size()*4};
14
15
// ensure s is lower case
16
std::transform
(
s
.begin(),
s
.end(),
s
.begin(),
17
[](
unsigned
char
c
){return std::tolower(c);});
18
19
for
(
const
char
&
c
:
s
) {
20
bs = (
c
>=
'a'
) ? (
c
-
'a'
+ 10) : (
c
-
'0'
);
21
for
(
int
j = 3; j != -1; --j) {
22
bit_tob[--ind] = bs[j];
23
}
24
if
(ind == 0) {
break
;}
25
}
26
return
bit_tob;
27
}
28
29
}
GlobalSim::hexTOB2bitsetTOB
std::bitset< 72 > hexTOB2bitsetTOB(std::string s)
Definition:
hexTOB2bitsetTOB.cxx:8
hexTOB2bitsetTOB.h
GlobalSim
AlgTool that to test whether expected the TIP values generated by data supplied by eEmMultTestBench c...
Definition:
CommonSelector.cxx:8
Amg::transform
Amg::Vector3D transform(Amg::Vector3D &v, Amg::Transform3D &tr)
Transform a point from a Trasformation3D.
Definition:
GeoPrimitivesHelpers.h:156
python.SystemOfUnits.s
float s
Definition:
SystemOfUnits.py:147
python.compressB64.c
def c
Definition:
compressB64.py:93
Generated on Thu Nov 6 2025 21:12:47 for ATLAS Offline Software by
1.8.18