ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetCalibAlgs
SCT_CalibAlgs
src
SCT_CalibUtilities.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
11
12
#ifndef SCT_CalibAlgs_SCT_CalibUtilities_h
13
#define SCT_CalibAlgs_SCT_CalibUtilities_h
14
15
#include <sstream>
16
#include <string>
17
#include <string_view>
18
19
class
Identifier
;
20
class
SCT_ID
;
21
22
namespace
SCT_CalibAlgs
{
23
24
std::string
formatPosition
(
const
Identifier& waferId,
const
SCT_ID* helper, std::string_view
delimiter
=
"_"
,
const
bool
includeSide=
true
);
25
std::string
chipList2LinkList
(
const
std::string& chipList);
26
unsigned
int
bec2Index
(
const
int
bec);
27
std::string
normalizeList
(std::string strList);
28
29
template
<
class
T>
30
std::string
xmlValue
(std::string_view name,
const
T value) {
31
std::ostringstream os;
32
os <<
" <value name=\""
<< name <<
"\">"
<< value <<
"</value>"
;
33
return
os.str();
34
}
35
36
template
<
class
T>
37
std::string
xmlOpenChannel
(
const
long
id
,
const
T since,
const
T until) {
38
std::string opener=std::string{
" <channel id=\""
}+std::to_string(
id
)+
"\""
;
39
std::string sinceAttr=std::string{
" since=\""
}+std::to_string(since)+
"\""
;
40
std::string untilAttr=std::string{
" until=\""
}+std::to_string(until)+
"\""
;
41
return
opener+sinceAttr+untilAttr+
">"
;
42
}
43
44
std::string
xmlCloseChannel
();
45
46
}
//end of namespace
47
48
#endif
SCT_ID
This is an Identifier helper class for the SCT subdetector.
Definition
SCT_ID.h:68
delimiter
static const std::string delimiter("/")
Identifier
Definition
IdentifierFieldParser.cxx:14
SCT_CalibAlgs
Definition
IElementStreamer.cxx:13
SCT_CalibAlgs::formatPosition
std::string formatPosition(const Identifier &waferId, const SCT_ID *helper, std::string_view delimiter, const bool includeSide)
Definition
SCT_CalibUtilities.cxx:36
SCT_CalibAlgs::chipList2LinkList
std::string chipList2LinkList(const std::string &chipList)
Definition
SCT_CalibUtilities.cxx:57
SCT_CalibAlgs::xmlCloseChannel
std::string xmlCloseChannel()
Definition
SCT_CalibUtilities.cxx:75
SCT_CalibAlgs::xmlValue
std::string xmlValue(std::string_view name, const T value)
Definition
SCT_CalibUtilities.h:30
SCT_CalibAlgs::normalizeList
std::string normalizeList(std::string s)
Definition
SCT_CalibUtilities.cxx:21
SCT_CalibAlgs::xmlOpenChannel
std::string xmlOpenChannel(const long id, const T since, const T until)
Definition
SCT_CalibUtilities.h:37
SCT_CalibAlgs::bec2Index
unsigned int bec2Index(const int bec)
Definition
SCT_CalibUtilities.cxx:70
Generated on
for ATLAS Offline Software by
1.17.0