ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
HighGranularityTimingDetector
HGTD_DetDescr
HGTD_Identifier
src
HgtdOutputFormatting.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
HgtdOutputFormatting.h
"
6
#include "
IdDict/IdDictFieldImplementation.h
"
7
#include <sstream>
8
#include <ios>
//for std::hex
9
10
namespace
HgtdIdentifierPkg
{
11
12
std::string
13
formatOutput
(std::string_view title,
const
IdDictFieldImplementation
& idDictFieldImp){
14
std::ostringstream os;
15
os<< title <<
" "
<< idDictFieldImp.
decode_index
() <<
" "
16
<< (std::string) idDictFieldImp.
ored_field
() <<
" "
17
<< std::hex << idDictFieldImp.
mask
() <<
" "
18
<< idDictFieldImp.
zeroing_mask
() <<
" "
19
<< std::dec << idDictFieldImp.
shift
()
20
<<
" "
<< idDictFieldImp.
bits
() <<
" "
<< idDictFieldImp.
bits_offset
() <<
" "
;
21
return
os.str();
22
}
23
24
}
HgtdOutputFormatting.h
IdDictFieldImplementation.h
IdDictFieldImplementation
IdDictFieldImplementation is used to capture the specification of a single field of an Identifier.
Definition
IdDictFieldImplementation.h:59
IdDictFieldImplementation::mask
size_type mask() const
Definition
IdDictFieldImplementation.h:230
IdDictFieldImplementation::zeroing_mask
value_type zeroing_mask() const
Definition
IdDictFieldImplementation.h:236
IdDictFieldImplementation::bits_offset
size_type bits_offset() const
Definition
IdDictFieldImplementation.h:224
IdDictFieldImplementation::ored_field
const Range::field & ored_field() const
Definition
IdDictFieldImplementation.h:212
IdDictFieldImplementation::decode_index
bool decode_index() const
Definition
IdDictFieldImplementation.h:247
IdDictFieldImplementation::bits
size_type bits() const
Definition
IdDictFieldImplementation.h:218
IdDictFieldImplementation::shift
size_type shift() const
Definition
IdDictFieldImplementation.h:242
HgtdIdentifierPkg
Definition
HgtdOutputFormatting.cxx:10
HgtdIdentifierPkg::formatOutput
std::string formatOutput(std::string_view title, const IdDictFieldImplementation &idDictFieldImp)
Definition
HgtdOutputFormatting.cxx:13
Generated on
for ATLAS Offline Software by
1.17.0