BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
GeoSetup.cxx File Reference
#include "GeoSetup.h"
#include "BmnNewFieldMap.h"
#include "FairModule.h"
#include "FairRunAna.h"
#include "TGeoBBox.h"
#include "TGeoBoolNode.h"
#include "TGeoCompositeShape.h"
#include "TGeoCone.h"
#include "TGeoManager.h"
#include "TGeoMatrix.h"
#include "TGeoTrd2.h"
#include "TGeoTube.h"
#include "TKey.h"
#include "TSQLResult.h"
#include "TSQLRow.h"
#include "TSQLiteServer.h"
#include "TSystem.h"
#include "TXMLEngine.h"
#include <cctype>
#include <cstdlib>
#include <cstring>
#include <filesystem>
#include <iostream>
#include <stdexcept>
#include <sys/stat.h>
#include <time.h>
#include <unistd.h>
Include dependency graph for GeoSetup.cxx:

Go to the source code of this file.

Functions

bool ichar_equals (char a, char b)
static int FieldToInt (const char *field, int defaultValue=0)
static uint64_t FieldToUInt64 (const char *field, uint64_t defaultValue=0)
static double FieldToDouble (const char *field, double defaultValue=0.)
static bool IsSafeTag (const string &tag)
static string SqlEscape (string_view value)
static void RemoveWritableDbDir ()
static void RemoveAssemblyShapes (TGeoManager *geoManager)

Variables

static string gWritableDbDir
static pid_t gWritableDbPid = 0

Function Documentation

◆ FieldToDouble()

double FieldToDouble ( const char * field,
double defaultValue = 0. )
static

Definition at line 61 of file GeoSetup.cxx.

Referenced by GeoSetup::GetMagneticField(), GeoSetup::IsEqlMatrix(), and GeoSetup::LoadModuleToFairRunSim().

Here is the caller graph for this function:

◆ FieldToInt()

int FieldToInt ( const char * field,
int defaultValue = 0 )
static

Definition at line 43 of file GeoSetup.cxx.

Referenced by GeoSetup::CheckTagOnServer(), GeoSetup::LoadModuleToFairRunSim(), GeoSetup::LoadSetupToFairRunSim(), GeoSetup::LoadSetupToGeoManager(), GeoSetup::PutModuleRevisions(), and GeoSetup::PutModules().

Here is the caller graph for this function:

◆ FieldToUInt64()

uint64_t FieldToUInt64 ( const char * field,
uint64_t defaultValue = 0 )
static

Definition at line 52 of file GeoSetup.cxx.

Referenced by GeoSetup::CheckTagOnServer(), GeoSetup::LoadSetupToFairRunSim(), and GeoSetup::LoadSetupToGeoManager().

Here is the caller graph for this function:

◆ ichar_equals()

bool ichar_equals ( char a,
char b )

Definition at line 36 of file GeoSetup.cxx.

Referenced by GeoSetup::CheckTagOnServer().

Here is the caller graph for this function:

◆ IsSafeTag()

bool IsSafeTag ( const string & tag)
static

Definition at line 71 of file GeoSetup.cxx.

Referenced by GeoSetup::GetTagName4PatternServer(), and GeoSetup::installLocalDB().

Here is the caller graph for this function:

◆ RemoveAssemblyShapes()

void RemoveAssemblyShapes ( TGeoManager * geoManager)
static

Definition at line 492 of file GeoSetup.cxx.

References TObjArray::Compress(), TGeoManager::GetListOfShapes(), TGeoManager::GetListOfVolumes(), and TObjArray::Remove().

Referenced by GeoSetup::LoadSetupToGeoManager().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RemoveWritableDbDir()

void RemoveWritableDbDir ( )
static

Definition at line 287 of file GeoSetup.cxx.

References gWritableDbDir, and gWritableDbPid.

Referenced by GeoSetup::installLocalDB().

Here is the caller graph for this function:

◆ SqlEscape()

string SqlEscape ( string_view value)
static

Definition at line 83 of file GeoSetup.cxx.

Referenced by GeoSetup::GetTagName4PatternLocal(), GeoSetup::LoadSetupToFairRunSim(), and GeoSetup::LoadSetupToGeoManager().

Here is the caller graph for this function:

Variable Documentation

◆ gWritableDbDir

string gWritableDbDir
static

Definition at line 283 of file GeoSetup.cxx.

Referenced by GeoSetup::installLocalDB(), and RemoveWritableDbDir().

◆ gWritableDbPid

pid_t gWritableDbPid = 0
static

Definition at line 284 of file GeoSetup.cxx.

Referenced by GeoSetup::installLocalDB(), and RemoveWritableDbDir().