ATLAS Offline Software
Loading...
Searching...
No Matches
PixelOutputFormatting.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
7#include <sstream>
8#include <ios> //for std::hex
9
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}
IdDictFieldImplementation is used to capture the specification of a single field of an Identifier.
const Range::field & ored_field() const
std::string formatOutput(std::string_view title, const IdDictFieldImplementation &idDictFieldImp)