Project
Loading...
Searching...
No Matches
o2::base::NameConf Class Reference

#include <NameConf.h>

Inherits o2::conf::ConfigurableParamHelper< NameConf >.

Inherited by o2::base::DetectorNameConf.

Static Public Member Functions

static std::string getCollisionContextFileName (const std::string_view prefix="")
 
static std::string getGRPFileName (const std::string_view prefix=STANDARDSIMPREFIX)
 
static std::string getGRPECSFileName (const std::string_view prefix=STANDARDSIMPREFIX)
 
static std::string getGRPLHCIFFileName (const std::string_view prefix=STANDARDSIMPREFIX)
 
static std::string getGRPMagFieldFileName (const std::string_view prefix=STANDARDSIMPREFIX)
 
static std::string getMCKinematicsFileName (const std::string_view prefix=STANDARDSIMPREFIX)
 
static std::string getMCHeadersFileName (const std::string_view prefix=STANDARDSIMPREFIX)
 
static std::string getMCConfigFileName (const std::string_view prefix=STANDARDSIMPREFIX)
 
static std::string getTFIDInfoFileName (const std::string_view prefix="o2")
 
static std::string getGeomFileName (const std::string_view prefix="")
 
static std::string getAlignedGeomFileName (const std::string_view prefix="")
 
static std::string getMatLUTFileName (const std::string_view prefix="")
 
static std::string getCutProcFileName (const std::string_view prefix="")
 
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 std::string getCTFDictFileName ()
 
static std::string getCCDBServer ()
 
- Static Public Member Functions inherited from o2::conf::ConfigurableParamHelper< NameConf >
static const NameConf & Instance ()
 
- Static Public Member Functions inherited from o2::conf::ConfigurableParam
static std::string toString (EParamProvenance p)
 
static EParamProvenance getProvenance (const std::string &key)
 
static void printAllRegisteredParamNames ()
 
static void printAllKeyValuePairs (bool useLogger=false)
 
static const std::string & getOutputDir ()
 
static void setOutputDir (const std::string &d)
 
static bool configFileExists (std::string const &filepath)
 
static void writeJSON (std::string const &filename, std::string const &keyOnly="")
 
static void writeINI (std::string const &filename, std::string const &keyOnly="")
 
template<typename T >
static T getValueAs (std::string key)
 
template<typename T >
static void setValue (std::string const &mainkey, std::string const &subkey, T x)
 
static void setProvenance (std::string const &mainkey, std::string const &subkey, EParamProvenance p)
 
static void setValue (std::string const &key, std::string const &valuestring)
 
static void setEnumValue (const std::string &, const std::string &)
 
static void setArrayValue (const std::string &, const std::string &)
 
static void setValues (std::vector< std::pair< std::string, std::string > > const &keyValues)
 
static void initialize ()
 
static void toCCDB (std::string filename)
 
static void fromCCDB (std::string filename)
 
static void updateFromString (std::string const &)
 
static void updateFromFile (std::string const &, std::string const &paramsList="", bool unchangedOnly=false)
 

Static Public Attributes

static constexpr std::string_view CCDBOBJECT = "ccdb_object"
 
static constexpr std::string_view CCDBMETA = "ccdb_meta"
 
static constexpr std::string_view CCDBQUERY = "ccdb_query"
 
static constexpr std::string_view CCDBRunTag = "runNumber"
 
static constexpr std::string_view CCDBDefaultEntry = "default"
 
static constexpr std::string_view GEOMOBJECTNAME_FAIR = "FAIRGeom"
 
static constexpr std::string_view MCTTREENAME = "o2sim"
 
static constexpr std::string_view DIGITIZATIONCONFIGFILE = "o2simdigitizerworkflow_configuration.ini"
 
static constexpr std::string_view CTFDICT = "ctf_dictionary"
 
static constexpr std::string_view CTFTREENAME = "ctf"
 

Protected Member Functions

 O2ParamDef (NameConf, "NameConf")
 
- Protected Member Functions inherited from o2::conf::ConfigurableParam
 ConfigurableParam ()
 
virtual ~ConfigurableParam ()=default
 
void setRegisterMode (bool b)
 
bool isInitialized () const
 

Static Protected Member Functions

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 Protected Member Functions inherited from o2::conf::ConfigurableParam
static void initPropertyTree ()
 
static EParamUpdateStatus updateThroughStorageMap (std::string, std::string, std::type_info const &, void *)
 
static EParamUpdateStatus updateThroughStorageMapWithConversion (std::string const &, std::string const &)
 

Protected Attributes

std::string mDirGRP = "none"
 
std::string mDirGRPECS = "none"
 
std::string mDirGRPLHCIF = "none"
 
std::string mDirGRPMagField = "none"
 
std::string mDirGeom = "none"
 
std::string mDirMatLUT = "none"
 
std::string mDirCollContext = "none"
 
std::string mDirTFIDINFO = "none"
 
std::string mCCDBServer = "http://alice-ccdb.cern.ch/"
 

Static Protected Attributes

static constexpr std::string_view STANDARDSIMPREFIX = "o2sim"
 
static constexpr std::string_view HITS_STRING = "Hits"
 
static constexpr std::string_view DIGITS_STRING = "Digits"
 
static constexpr std::string_view GRP_STRING = "grp"
 
static constexpr std::string_view GRPECS_STRING = "grpecs"
 
static constexpr std::string_view GRPLHCIF_STRING = "grplhcif"
 
static constexpr std::string_view GRPMAGFIELD_STRING = "grpMagField"
 
static constexpr std::string_view KINE_STRING = "Kine"
 
static constexpr std::string_view MCHEADER_STRING = "MCHeader"
 
static constexpr std::string_view GEOM_FILE_STRING = "geometry"
 
static constexpr std::string_view ALIGNEDGEOM_FILE_STRING = "geometry-aligned"
 
static constexpr std::string_view CUT_FILE_STRING = "proc-cut"
 
static constexpr std::string_view CONFIG_STRING = "configuration"
 
static constexpr std::string_view ROOT_EXT_STRING = "root"
 
static constexpr std::string_view DAT_EXT_STRING = "dat"
 
static constexpr std::string_view ALPIDECLUSDICTFILENAME = "dictionary"
 
static constexpr std::string_view NOISEFILENAME = "NoiseMap"
 
static constexpr std::string_view MATBUDLUT = "matbud"
 
static constexpr std::string_view COLLISIONCONTEXT = "collisioncontext"
 
static constexpr std::string_view ALIGNPATH = "Calib/Align"
 
static constexpr std::string_view TFIDINFO = "tfidinfo"
 
- Static Protected Attributes inherited from o2::conf::ConfigurableParam
static std::map< std::string, std::pair< std::type_info const &, void * > > * sKeyToStorageMap = nullptr
 
static std::map< std::string, ConfigurableParam::EParamProvenance > * sValueProvenanceMap = nullptr
 
static EnumRegistrysEnumRegistry = nullptr
 
static std::string sOutputDir = ""
 

Additional Inherited Members

- Public Types inherited from o2::conf::ConfigurableParam
enum  EParamProvenance { kCODE , kCCDB , kRT }
 
enum class  EParamUpdateStatus { Changed , Unchanged , Failed }
 
- Public Member Functions inherited from o2::conf::ConfigurableParamHelper< NameConf >
std::string getName () const final
 
EParamProvenance getMemberProvenance (const std::string &key) const final
 
void printKeyValues (bool showProv=true, bool useLogger=false) const final
 
size_t getHash () const final
 
void output (std::ostream &out) const final
 
std::vector< ParamDataMember > * getDataMembers () const
 
void putKeyValues (boost::property_tree::ptree *tree) final
 
void initFrom (TFile *file) final
 
void syncCCDBandRegistry (void *externalobj) final
 
void serializeTo (TFile *file) const final
 
 ConfigurableParam ()
 

Detailed Description

Definition at line 27 of file NameConf.h.

Member Function Documentation

◆ buildFileName()

std::string NameConf::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 = "" 
)
staticprotected

Definition at line 20 of file NameConf.cxx.

◆ getAlignedGeomFileName()

std::string NameConf::getAlignedGeomFileName ( const std::string_view  prefix = "")
static

Definition at line 46 of file NameConf.cxx.

◆ getCCDBServer()

std::string NameConf::getCCDBServer ( )
static

Definition at line 110 of file NameConf.cxx.

◆ getCollisionContextFileName()

std::string NameConf::getCollisionContextFileName ( const std::string_view  prefix = "")
static

Definition at line 52 of file NameConf.cxx.

◆ getCTFDictFileName()

std::string NameConf::getCTFDictFileName ( )
static

Definition at line 98 of file NameConf.cxx.

◆ getCTFFileName()

std::string NameConf::getCTFFileName ( uint32_t  run,
uint32_t  orb,
uint32_t  id,
const std::string &  host,
const std::string_view  prefix = "o2_ctf" 
)
static

Definition at line 93 of file NameConf.cxx.

◆ getCutProcFileName()

std::string NameConf::getCutProcFileName ( const std::string_view  prefix = "")
static

Definition at line 82 of file NameConf.cxx.

◆ getGeomFileName()

std::string NameConf::getGeomFileName ( const std::string_view  prefix = "")
static

Definition at line 40 of file NameConf.cxx.

◆ getGRPECSFileName()

std::string NameConf::getGRPECSFileName ( const std::string_view  prefix = STANDARDSIMPREFIX)
static

Definition at line 64 of file NameConf.cxx.

◆ getGRPFileName()

std::string NameConf::getGRPFileName ( const std::string_view  prefix = STANDARDSIMPREFIX)
static

Definition at line 58 of file NameConf.cxx.

◆ getGRPLHCIFFileName()

std::string NameConf::getGRPLHCIFFileName ( const std::string_view  prefix = STANDARDSIMPREFIX)
static

Definition at line 70 of file NameConf.cxx.

◆ getGRPMagFieldFileName()

std::string NameConf::getGRPMagFieldFileName ( const std::string_view  prefix = STANDARDSIMPREFIX)
static

Definition at line 76 of file NameConf.cxx.

◆ getMatLUTFileName()

std::string NameConf::getMatLUTFileName ( const std::string_view  prefix = "")
static

Definition at line 88 of file NameConf.cxx.

◆ getMCConfigFileName()

static std::string o2::base::NameConf::getMCConfigFileName ( const std::string_view  prefix = STANDARDSIMPREFIX)
inlinestatic

Definition at line 58 of file NameConf.h.

◆ getMCHeadersFileName()

static std::string o2::base::NameConf::getMCHeadersFileName ( const std::string_view  prefix = STANDARDSIMPREFIX)
inlinestatic

Definition at line 52 of file NameConf.h.

◆ getMCKinematicsFileName()

static std::string o2::base::NameConf::getMCKinematicsFileName ( const std::string_view  prefix = STANDARDSIMPREFIX)
inlinestatic

Definition at line 46 of file NameConf.h.

◆ getTFIDInfoFileName()

std::string NameConf::getTFIDInfoFileName ( const std::string_view  prefix = "o2")
static

Definition at line 104 of file NameConf.cxx.

◆ O2ParamDef()

o2::base::NameConf::O2ParamDef ( NameConf  ,
"NameConf"   
)
protected

Member Data Documentation

◆ ALIGNEDGEOM_FILE_STRING

constexpr std::string_view o2::base::NameConf::ALIGNEDGEOM_FILE_STRING = "geometry-aligned"
staticconstexprprotected

Definition at line 122 of file NameConf.h.

◆ ALIGNPATH

constexpr std::string_view o2::base::NameConf::ALIGNPATH = "Calib/Align"
staticconstexprprotected

Definition at line 131 of file NameConf.h.

◆ ALPIDECLUSDICTFILENAME

constexpr std::string_view o2::base::NameConf::ALPIDECLUSDICTFILENAME = "dictionary"
staticconstexprprotected

Definition at line 127 of file NameConf.h.

◆ CCDBDefaultEntry

constexpr std::string_view o2::base::NameConf::CCDBDefaultEntry = "default"
staticconstexpr

Definition at line 70 of file NameConf.h.

◆ CCDBMETA

constexpr std::string_view o2::base::NameConf::CCDBMETA = "ccdb_meta"
staticconstexpr

Definition at line 67 of file NameConf.h.

◆ CCDBOBJECT

constexpr std::string_view o2::base::NameConf::CCDBOBJECT = "ccdb_object"
staticconstexpr

Definition at line 66 of file NameConf.h.

◆ CCDBQUERY

constexpr std::string_view o2::base::NameConf::CCDBQUERY = "ccdb_query"
staticconstexpr

Definition at line 68 of file NameConf.h.

◆ CCDBRunTag

constexpr std::string_view o2::base::NameConf::CCDBRunTag = "runNumber"
staticconstexpr

Definition at line 69 of file NameConf.h.

◆ COLLISIONCONTEXT

constexpr std::string_view o2::base::NameConf::COLLISIONCONTEXT = "collisioncontext"
staticconstexprprotected

Definition at line 130 of file NameConf.h.

◆ CONFIG_STRING

constexpr std::string_view o2::base::NameConf::CONFIG_STRING = "configuration"
staticconstexprprotected

Definition at line 124 of file NameConf.h.

◆ CTFDICT

constexpr std::string_view o2::base::NameConf::CTFDICT = "ctf_dictionary"
staticconstexpr

Definition at line 92 of file NameConf.h.

◆ CTFTREENAME

constexpr std::string_view o2::base::NameConf::CTFTREENAME = "ctf"
staticconstexpr

Definition at line 95 of file NameConf.h.

◆ CUT_FILE_STRING

constexpr std::string_view o2::base::NameConf::CUT_FILE_STRING = "proc-cut"
staticconstexprprotected

Definition at line 123 of file NameConf.h.

◆ DAT_EXT_STRING

constexpr std::string_view o2::base::NameConf::DAT_EXT_STRING = "dat"
staticconstexprprotected

Definition at line 126 of file NameConf.h.

◆ DIGITIZATIONCONFIGFILE

constexpr std::string_view o2::base::NameConf::DIGITIZATIONCONFIGFILE = "o2simdigitizerworkflow_configuration.ini"
staticconstexpr

Definition at line 89 of file NameConf.h.

◆ DIGITS_STRING

constexpr std::string_view o2::base::NameConf::DIGITS_STRING = "Digits"
staticconstexprprotected

Definition at line 114 of file NameConf.h.

◆ GEOM_FILE_STRING

constexpr std::string_view o2::base::NameConf::GEOM_FILE_STRING = "geometry"
staticconstexprprotected

Definition at line 121 of file NameConf.h.

◆ GEOMOBJECTNAME_FAIR

constexpr std::string_view o2::base::NameConf::GEOMOBJECTNAME_FAIR = "FAIRGeom"
staticconstexpr

Definition at line 83 of file NameConf.h.

◆ GRP_STRING

constexpr std::string_view o2::base::NameConf::GRP_STRING = "grp"
staticconstexprprotected

Definition at line 115 of file NameConf.h.

◆ GRPECS_STRING

constexpr std::string_view o2::base::NameConf::GRPECS_STRING = "grpecs"
staticconstexprprotected

Definition at line 116 of file NameConf.h.

◆ GRPLHCIF_STRING

constexpr std::string_view o2::base::NameConf::GRPLHCIF_STRING = "grplhcif"
staticconstexprprotected

Definition at line 117 of file NameConf.h.

◆ GRPMAGFIELD_STRING

constexpr std::string_view o2::base::NameConf::GRPMAGFIELD_STRING = "grpMagField"
staticconstexprprotected

Definition at line 118 of file NameConf.h.

◆ HITS_STRING

constexpr std::string_view o2::base::NameConf::HITS_STRING = "Hits"
staticconstexprprotected

Definition at line 113 of file NameConf.h.

◆ KINE_STRING

constexpr std::string_view o2::base::NameConf::KINE_STRING = "Kine"
staticconstexprprotected

Definition at line 119 of file NameConf.h.

◆ MATBUDLUT

constexpr std::string_view o2::base::NameConf::MATBUDLUT = "matbud"
staticconstexprprotected

Definition at line 129 of file NameConf.h.

◆ mCCDBServer

std::string o2::base::NameConf::mCCDBServer = "http://alice-ccdb.cern.ch/"
protected

Definition at line 143 of file NameConf.h.

◆ MCHEADER_STRING

constexpr std::string_view o2::base::NameConf::MCHEADER_STRING = "MCHeader"
staticconstexprprotected

Definition at line 120 of file NameConf.h.

◆ MCTTREENAME

constexpr std::string_view o2::base::NameConf::MCTTREENAME = "o2sim"
staticconstexpr

Definition at line 86 of file NameConf.h.

◆ mDirCollContext

std::string o2::base::NameConf::mDirCollContext = "none"
protected

Definition at line 141 of file NameConf.h.

◆ mDirGeom

std::string o2::base::NameConf::mDirGeom = "none"
protected

Definition at line 139 of file NameConf.h.

◆ mDirGRP

std::string o2::base::NameConf::mDirGRP = "none"
protected

Definition at line 135 of file NameConf.h.

◆ mDirGRPECS

std::string o2::base::NameConf::mDirGRPECS = "none"
protected

Definition at line 136 of file NameConf.h.

◆ mDirGRPLHCIF

std::string o2::base::NameConf::mDirGRPLHCIF = "none"
protected

Definition at line 137 of file NameConf.h.

◆ mDirGRPMagField

std::string o2::base::NameConf::mDirGRPMagField = "none"
protected

Definition at line 138 of file NameConf.h.

◆ mDirMatLUT

std::string o2::base::NameConf::mDirMatLUT = "none"
protected

Definition at line 140 of file NameConf.h.

◆ mDirTFIDINFO

std::string o2::base::NameConf::mDirTFIDINFO = "none"
protected

Definition at line 142 of file NameConf.h.

◆ NOISEFILENAME

constexpr std::string_view o2::base::NameConf::NOISEFILENAME = "NoiseMap"
staticconstexprprotected

Definition at line 128 of file NameConf.h.

◆ ROOT_EXT_STRING

constexpr std::string_view o2::base::NameConf::ROOT_EXT_STRING = "root"
staticconstexprprotected

Definition at line 125 of file NameConf.h.

◆ STANDARDSIMPREFIX

constexpr std::string_view o2::base::NameConf::STANDARDSIMPREFIX = "o2sim"
staticconstexprprotected

Definition at line 112 of file NameConf.h.

◆ TFIDINFO

constexpr std::string_view o2::base::NameConf::TFIDINFO = "tfidinfo"
staticconstexprprotected

Definition at line 132 of file NameConf.h.


The documentation for this class was generated from the following files: