13#include <fmt/format.h>
21std::string
NameConf::buildFileName(
const std::string_view prefix,
const std::string_view delimiter,
const std::string_view defPrefix,
const std::string_view defName,
22 const std::string_view extension,
const std::string_view optDir)
27 return std::string(prefix);
31 if (!prefix.empty()) {
94std::string
NameConf::getCTFFileName(uint32_t run, uint32_t orb, uint32_t
id,
const std::string& host,
const std::string_view prefix)
125 static const std::string kCompiledDefault =
"http://alice-ccdb.cern.ch/";
127 if (configured != kCompiledDefault) {
130 for (
const char* var : {
"ALICEO2_CCDB_PRODUCTION_HOST",
"ALICEO2_CCDB_HOST"}) {
131 if (
const char* host = std::getenv(var); host && *host) {
140 std::string nm = procName;
141 if (!confName.empty()) {
142 nm +=
'_' + confName;
144 return fmt::format(
"ConfigParam_{}.{}", nm,
json ?
"json" :
"ini");
#define O2ParamImpl(classname)
Definition of the Names Generator class.
static std::string getAlignedGeomFileName(const std::string_view prefix="")
static constexpr std::string_view GRP_STRING
static constexpr std::string_view GRPMAGFIELD_STRING
static std::string getGRPECSFileName(const std::string_view prefix=STANDARDSIMPREFIX)
static constexpr std::string_view ROOT_EXT_STRING
static std::string getGeomFileName(const std::string_view prefix="")
static std::string getGRPLHCIFFileName(const std::string_view prefix=STANDARDSIMPREFIX)
static std::string getCTFFileName(uint32_t run, uint32_t orb, uint32_t id, const std::string &host, const std::string_view prefix="o2_ctf")
static constexpr std::string_view DAT_EXT_STRING
static std::string getCutProcFileName(const std::string_view prefix="")
static std::string getCTFDictFileName()
static std::string getGRPFileName(const std::string_view prefix=STANDARDSIMPREFIX)
std::string mDirCollContext
static std::string getMatLUTFileName(const std::string_view prefix="")
static std::string buildFileName(const std::string_view prefix, const std::string_view delimiter, const std::string_view defPrefix, const std::string_view defName, const std::string_view extension, const std::string_view optDir="")
static std::string getConfigOutputFileName(const std::string &procName, const std::string &confName="", bool json=true)
static constexpr std::string_view GRPLHCIF_STRING
static constexpr std::string_view ALIGNEDGEOM_FILE_STRING
static std::string getCollisionContextFileName(const std::string_view prefix="")
static constexpr std::string_view CUT_FILE_STRING
static constexpr std::string_view STANDARDSIMPREFIX
static constexpr std::string_view COLLISIONCONTEXT
static constexpr std::string_view MATBUDLUT
static std::string getRawTFFileName(uint32_t run, uint32_t orb, uint32_t id, const std::string &host, const std::string_view prefix="o2_rawtf_dump")
static constexpr std::string_view GRPECS_STRING
static std::string getTFIDInfoFileName(const std::string_view prefix="o2")
static std::string getCCDBServer()
std::string mDirGRPMagField
static std::string getGRPMagFieldFileName(const std::string_view prefix=STANDARDSIMPREFIX)
static constexpr std::string_view GEOM_FILE_STRING
static constexpr std::string_view CTFDICT
static constexpr std::string_view TFIDINFO
static const NameConf & Instance()
GLsizei const GLchar *const * path
static bool pathIsDirectory(const std::string_view p)
static std::string rectifyDirectory(const std::string_view p)
static bool pathExists(const std::string_view p)
static std::string concat_string(Ts const &... ts)