Project
Loading...
Searching...
No Matches
o2::conf Namespace Reference

Classes

class  _ParamHelper
 
class  ConfigurableParam
 
class  ConfigurableParamHelper
 
class  ConfigurableParamPromoter
 
class  ConfigurableParamReaders
 
struct  DigiParams
 
struct  EnumLegalValues
 
class  EnumRegistry
 
struct  G4Params
 
struct  KeyValParam
 
struct  MatMapParams
 
struct  ParamDataMember
 
class  SimConfig
 
struct  SimConfigData
 
struct  SimCutParams
 
class  SimDLLoader
 
struct  SimMaterialParams
 
struct  SimReconfigData
 TODO: Make this a base class of SimConfigData? More...
 
struct  SimUserDecay
 
struct  VerbosityConfig
 

Typedefs

using DetectorList_t = std::vector< std::string >
 
using DetectorMap_t = std::unordered_map< std::string, DetectorList_t >
 

Enumerations

enum class  EG4Physics {
  kFTFP_BERT_optical = 0 , kFTFP_BERT_optical_biasing = 1 , kFTFP_INCLXX_optical = 2 , kFTFP_BERT_HP_optical = 3 ,
  kFTFP_BERT_EMV_optical = 4 , kFTFP_BERT_EMV_optical_biasing = 5 , kFTFP_INCLXX_EMV_optical = 6 , kFTFP_BERT_EMV_HP_optical = 7 ,
  kUSER = 8
}
 
enum class  SimFieldMode { kDefault = 0 , kUniform = 1 , kCCDB = 2 }
 
enum class  VertexMode { kNoVertex = 0 , kDiamondParam = 1 , kCCDB = 2 , kCollCxt = 3 }
 
enum class  TimeStampMode { kNow = 0 , kManual = 1 , kRun = 2 }
 

Functions

bool parseDetectorMapfromJSON (const std::string &path, DetectorMap_t &map)
 
void printDetMap (const DetectorMap_t &map, const std::string &list="")
 
bool parseSimReconfigFromString (std::string const &argumentstring, SimReconfigData &config)
 
template<typename T >
GetFromMacro (const std::string &file, const std::string &funcname, const std::string &type, const std::string &unique)
 
template<typename T >
JITAndEvalFunction (const std::string &functiondecl, const std::string &funcname, const std::string &type, const std::string &unique)
 
std::ostream & operator<< (std::ostream &out, ConfigurableParam const &param)
 
bool keyInTree (boost::property_tree::ptree *pt, const std::string &key)
 
void unsupp ()
 
template<typename T >
bool isMemblockDifferent (void const *block1, void const *block2)
 
template<typename T >
ConfigurableParam::EParamUpdateStatus Copy (void const *addr, void *targetaddr)
 
template<typename T >
ConfigurableParam::EParamUpdateStatus ConvertAndCopy (std::string const &valuestring, void *targetaddr)
 
template<>
ConfigurableParam::EParamUpdateStatus ConvertAndCopy< std::string > (std::string const &valuestring, void *targetaddr)
 
template<>
ConfigurableParam::EParamUpdateStatus ConvertAndCopy< char > (std::string const &valuestring, void *targetaddr)
 
template<>
ConfigurableParam::EParamUpdateStatus ConvertAndCopy< unsigned char > (std::string const &valuestring, void *targetaddr)
 

Typedef Documentation

◆ DetectorList_t

using o2::conf::DetectorList_t = typedef std::vector<std::string>

Definition at line 26 of file DetectorLists.h.

◆ DetectorMap_t

using o2::conf::DetectorMap_t = typedef std::unordered_map<std::string, DetectorList_t>

Definition at line 27 of file DetectorLists.h.

Enumeration Type Documentation

◆ EG4Physics

enum class o2::conf::EG4Physics
strong
Enumerator
kFTFP_BERT_optical 
kFTFP_BERT_optical_biasing 
kFTFP_INCLXX_optical 
kFTFP_BERT_HP_optical 
kFTFP_BERT_EMV_optical 
kFTFP_BERT_EMV_optical_biasing 
kFTFP_INCLXX_EMV_optical 
kFTFP_BERT_EMV_HP_optical 
kUSER 

Definition at line 24 of file G4Params.h.

◆ SimFieldMode

enum class o2::conf::SimFieldMode
strong
Enumerator
kDefault 
kUniform 
kCCDB 

Definition at line 31 of file SimConfig.h.

◆ TimeStampMode

enum class o2::conf::TimeStampMode
strong
Enumerator
kNow 
kManual 
kRun 

Definition at line 44 of file SimConfig.h.

◆ VertexMode

enum class o2::conf::VertexMode
strong
Enumerator
kNoVertex 
kDiamondParam 
kCCDB 
kCollCxt 

Definition at line 37 of file SimConfig.h.

Function Documentation

◆ ConvertAndCopy()

template<typename T >
ConfigurableParam::EParamUpdateStatus o2::conf::ConvertAndCopy ( std::string const &  valuestring,
void targetaddr 
)

Definition at line 739 of file ConfigurableParam.cxx.

◆ ConvertAndCopy< char >()

template<>
ConfigurableParam::EParamUpdateStatus o2::conf::ConvertAndCopy< char > ( std::string const &  valuestring,
void targetaddr 
)

Definition at line 765 of file ConfigurableParam.cxx.

◆ ConvertAndCopy< std::string >()

template<>
ConfigurableParam::EParamUpdateStatus o2::conf::ConvertAndCopy< std::string > ( std::string const &  valuestring,
void targetaddr 
)

Definition at line 751 of file ConfigurableParam.cxx.

◆ ConvertAndCopy< unsigned char >()

template<>
ConfigurableParam::EParamUpdateStatus o2::conf::ConvertAndCopy< unsigned char > ( std::string const &  valuestring,
void targetaddr 
)

Definition at line 781 of file ConfigurableParam.cxx.

◆ Copy()

template<typename T >
ConfigurableParam::EParamUpdateStatus o2::conf::Copy ( void const *  addr,
void targetaddr 
)

Definition at line 598 of file ConfigurableParam.cxx.

◆ GetFromMacro()

template<typename T >
T o2::conf::GetFromMacro ( const std::string &  file,
const std::string &  funcname,
const std::string &  type,
const std::string &  unique 
)

tweak the string to get the required global function

load macro is global function is not already defined

check the return type matches the required one

process function and retrieve pointer to the returned type

success

Definition at line 30 of file ConfigurationMacroHelper.h.

◆ isMemblockDifferent()

template<typename T >
bool o2::conf::isMemblockDifferent ( void const *  block1,
void const *  block2 
)

Definition at line 584 of file ConfigurableParam.cxx.

◆ JITAndEvalFunction()

template<typename T >
T o2::conf::JITAndEvalFunction ( const std::string &  functiondecl,
const std::string &  funcname,
const std::string &  type,
const std::string &  unique 
)

interpret and execute a function and retrieve pointer to the returned type

Definition at line 78 of file ConfigurationMacroHelper.h.

◆ keyInTree()

bool o2::conf::keyInTree ( boost::property_tree::ptree *  pt,
const std::string &  key 
)

Definition at line 66 of file ConfigurableParam.cxx.

◆ operator<<()

std::ostream & o2::conf::operator<< ( std::ostream &  out,
ConfigurableParam const &  param 
)

Definition at line 59 of file ConfigurableParam.cxx.

◆ parseDetectorMapfromJSON()

bool o2::conf::parseDetectorMapfromJSON ( const std::string &  path,
DetectorMap_t map 
)

Definition at line 22 of file DetectorLists.cxx.

◆ parseSimReconfigFromString()

bool o2::conf::parseSimReconfigFromString ( std::string const &  argumentstring,
SimReconfigData config 
)

Definition at line 535 of file SimConfig.cxx.

◆ printDetMap()

void o2::conf::printDetMap ( const DetectorMap_t map,
const std::string &  list = "" 
)

Definition at line 60 of file DetectorLists.cxx.

◆ unsupp()

void o2::conf::unsupp ( )

Definition at line 581 of file ConfigurableParam.cxx.