1#ifndef _GEO_SETUP_INCLUDED
2#define _GEO_SETUP_INCLUDED
4#include "BmnFieldMap.h"
int GetModuleId(int dbModuleRev)
TGeoNode * ConstructRootGeometry(const char *fileName)
string GetParameterFile(string_view detector_name)
Get path to parameter file for the given detector name of the current setup.
bool OpenLocalGeoDatabase()
string ExpandDbFilePath()
TString GetModuleName(int dbModuleUndex)
int LoadModuleToFairRunSim(int idsm, FairRunSim *fRun)
TString GetTmpFileName(const char *baseName)
int LoadSetupToGeoManager(string_view setup_tag)
Load selected geometry setup from the Local Geometry Database and create gGeoManager instance.
bool LoadLocalSettings(const char *fileName)
string GetMaterialFile()
Get the material file of the current setup, which defines the media of the setup geometry.
map< int, TString > m_modules_table
map< TString, setup_module_ptr > m_moduleEdit
std::pair< int, uint64_t > CheckTagOnServer(string_view setup_tag, const char *url=GEO_SERVER_HOST)
TGeoVolume * GetRootVolume(TFile *f)
int installLocalDB(string_view setup_tag, const char *url=GEO_SERVER_HOST)
unsigned long int GetServerRevision(const char *url=GEO_SERVER_HOST)
vector< module_r_ptr > m_moduleAdd
string_view GetSetupTag()
Get tag for the loaded setup.
map< int, module_r_ptr > m_modules_revision_table
TString GetModuleType(int dbModuleRev)
TString PrepareWritableDbDir()
module_r_ptr GetModuleRevision(int dbModuleRev)
static bool exists_file(const char *name)
static bool IsWritableDir(const char *path)
map< int, TString > m_loadedModule
int GetModuleIndex(TString &name)
FairField * GetMagneticField(double scale=-1)
Get magnetic field of the current setup geometry.
bool IsEqlMatrix(const char *fileName, TSQLRow *row)
~GeoSetup()
Destructor method.
unsigned long int GetLocalRevision(TString &localDbPath)
std::pair< int, string > GetTagName4PatternLocal(string_view pattern_tag, TString &localDbPath)
bool AddModuleToFairRunSim(module_r_ptr module, FairRunSim *fRun)
std::pair< int, string > GetTagName4PatternServer(string_view pattern_tag, const char *url=GEO_SERVER_HOST)
string GetLastApprovedSetupTag(string_view tag_prefix)
Get tag for the last approved setup corresponding to the pattern.
int LoadSetupToFairRunSim(string_view setupTag, const char *localSettings=nullptr)
Load selected geometry setup from the Local or Central (defined by url) Geometry Database and add it ...
struct SETUPMODULE setup_module
struct SETUPMODULE * setup_module_ptr
struct MODULEREVISION module_r
struct MODULEREVISION * module_r_ptr
const char *const GEO_SERVER_HOST