gsystem
Loading...
Searching...
No Matches
systemSqliteFactory.h
Go to the documentation of this file.
1#pragma once
2
3// gsystem
4#include "systemFactory.h"
5
6// sqlite
7#include "sqlite3.h"
8
28{
29public:
30 // inherit the base (const std::shared_ptr<GOptions>&) ctor
32
33private:
43 void loadMaterials(GSystem* system) override;
44
53 void loadGeometry(GSystem* system) override;
54
61 void closeSystem() override;
62
72 bool table_exists(sqlite3* db, const char* name);
73
86 void initialize_sqlite_db(GSystem* system);
87
88 sqlite3* db = nullptr;
89 std::string system_name = "na";
90 std::string dbhost = "na";
91 std::string variation = "default";
92 int runno = 0;
93};
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:32