gsystem
Loading...
Searching...
No Matches
systemSqliteFactory.h
Go to the documentation of this file.
1#pragma once
2
3// gsystem
5
6// sqlite
7#include "sqlite3.h"
8
29{
30public:
31 // inherit the base (const std::shared_ptr<GOptions>&) ctor
33
34private:
44 void loadMaterials(GSystem* system) override;
45
57 void loadMirrors(GSystem* system) override;
58
67 void loadGeometry(GSystem* system) override;
68
75 void closeSystem() override;
76
86 bool table_exists(sqlite3* db, const char* name);
87
100 void initialize_sqlite_db(GSystem* system);
101
102 sqlite3* db = nullptr;
103 std::string system_name = "na";
104 std::string dbhost = "na";
105 std::string variation = "default";
106 int runno = 0;
107};
Abstract base class for loading a GSystem from a specific source.
GSystemFactory(const std::shared_ptr< GOptions > &g)
Construct the factory with shared configuration.
Load a GSystem from a sqlite database.
Represents a single detector system (e.g., calorimeter, tracker).
Definition gsystem.h:33