1#ifndef _GEO_SETUP_INCLUDED
2#define _GEO_SETUP_INCLUDED
101 map<int, TString> m_modules_table;
102 map<int, module_r_ptr> m_modules_revision_table;
103 map<int, TString> m_loadedModule;
104 map<TString, setup_module_ptr> m_moduleEdit;
105 vector<module_r_ptr> m_moduleAdd;
118 string_view m_setupTag=
"";
120 unsigned long int GetServerRevision(
const char* url =
GEO_SERVER_HOST);
121 std::pair<int, string_view> GetTagName4PatternServer(string_view pattern_tag,
const char* url =
GEO_SERVER_HOST);
122 std::pair<int, uint64_t> CheckTagOnServer(string_view setup_tag,
const char* url =
GEO_SERVER_HOST);
123 unsigned long int GetLocalRevision(TString& localDbPath);
124 std::pair<int, string_view> GetTagName4PatternLocal(string_view pattern_tag, TString& localDbPath);
125 int installLocalDB(string_view setup_tag,
const char* url =
GEO_SERVER_HOST);
127 bool AddModuleToFairRunSim(
module_r_ptr module, FairRunSim* fRun);
130 bool OpenLocalGeoDatabase();
131 bool IsEqlMatrix(
const char* fileName, TSQLRow* row);
132 TGeoNode* ConstructRootGeometry(
const char* fileName);
133 static bool exists_file(
const char* name);
135 string GetRootPath();
137 TString& GetTmpPath();
139 TGeoVolume* GetRootVolume(TFile*
f);
142 TString GetModuleName(
int dbModuleUndex);
144 int GetModuleIndex(TString& name);
146 int GetModuleId(
int dbModuleRev);
148 TString GetModuleType(
int dbModuleRev);
153 bool LoadLocalSettings(
const char* fileName);
156 int LoadModuleToFairRunSim(
int idsm, FairRunSim* fRun);
158 bool AddModuleToFairRunSim(
int dbModuleRev,
const char* path, FairRunSim* fRun);
163 int PutModuleRevisions();
int LoadSetupToGeoManager(string_view setup_tag)
FairField * GetMagneticField(double scale=0)
string_view GetSetupTag()
string_view GetParameterFile(string_view detector_name)
string_view GetLastApprovedSetupTag(string_view tag_prefix)
int LoadSetupToFairRunSim(string_view setupTag, const char *localSettings=nullptr)
const char *const GEO_SERVER_HOST
struct SETUPMODULE setup_module
struct SETUPMODULE * setup_module_ptr
struct MODULEREVISION module_r
struct MODULEREVISION * module_r_ptr