ATLAS Offline Software
Trigger
TrigEvent
TrigNavStructure
Root
TypedHolder.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
TrigNavStructure/TypedHolder.h
"
6
#include <boost/regex.hpp>
7
8
std::string
HLTNavDetails::formatSGkey
(
const
std::string&
prefix
,
const
std::string& containername,
const
std::string&
label
){
9
// format is prefix_containername_label
10
// where containername is versionless and namespace delimiters
11
// are replaced by underscores
12
13
std::string cleaned = containername;
14
boost::regex
rx1
(
"_v[0-9]+$"
);
15
cleaned = boost::regex_replace(cleaned,
rx1
,std::string(
""
));
16
boost::regex
rx2(
"::"
);
17
cleaned = boost::regex_replace(cleaned,rx2,std::string(
"__"
));
18
return
prefix
+
"_"
+cleaned+(
label
.size() ?
"_"
+
label
:
""
);
19
}
PlotCalibFromCool.label
label
Definition:
PlotCalibFromCool.py:78
HLTNavDetails::formatSGkey
std::string formatSGkey(const std::string &prefix, const std::string &containername, const std::string &label)
declaration of formatting function.
Definition:
Holder.cxx:122
PrepareReferenceFile.regex
regex
Definition:
PrepareReferenceFile.py:43
checkCorrelInHIST.prefix
dictionary prefix
Definition:
checkCorrelInHIST.py:391
HLTNavDetails::rx1
const boost::regex rx1("_v[0-9]+$")
TypedHolder.h
Generated on Thu Jul 4 2024 21:32:14 for ATLAS Offline Software by
1.8.18