19#ifndef ALICEO2_ZDC_HELPERS_H
20#define ALICEO2_ZDC_HELPERS_H
34 std::string
str = strin;
35 for (
auto pos =
str.find(
":");
pos != std::string::npos;
pos =
str.find(
":")) {
42bool endsWith(
const std::string&
str,
const std::string& suffix)
44 return str.size() >= suffix.size() && 0 ==
str.compare(
str.size() - suffix.size(), suffix.size(), suffix);
51 if (ccdbHost.size() == 0 || ccdbHost ==
"external") {
52 ccdbHost =
"http://alice-ccdb.cern.ch:8080";
53 }
else if (ccdbHost ==
"internal") {
54 ccdbHost =
"http://o2-ccdb.internal/";
55 }
else if (ccdbHost ==
"test") {
56 ccdbHost =
"http://ccdb-test.cern.ch:8080";
57 }
else if (ccdbHost ==
"local") {
58 ccdbHost =
"http://localhost:8080";
59 }
else if (ccdbHost ==
"root") {
60 std::replace(
path.begin(),
path.end(),
'/',
'_');
GLsizei const GLchar *const * path
struct o2::upgrades_utils::@463 zdc
structure to keep FT0 information
bool endsWith(const std::string &str, const std::string &suffix)
std::string ccdbShortcuts(std::string ccdbHost, std::string cln, std::string path)
std::string removeNamespace(const std::string &strin)
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...