gsystem
Loading...
Searching...
No Matches
systemTextFactory.h
Go to the documentation of this file.
1#pragma once
2
3// gsystem
5
6// c++
7#include <fstream>
8#include <memory>
9
10// file types
11#define GTEXTGEOMTYPE "__geometry_"
12#define GTEXTMATSTYPE "__materials_"
13#define GTEXTMIRSTYPE "__mirrors_"
14
40{
41public:
42 // inherit the base (const std::shared_ptr<GOptions>&) ctor
44
45private:
53 void loadMaterials(GSystem* system) override;
54
62 void loadMirrors(GSystem* system) override;
63
72 void loadGeometry(GSystem* system) override;
73
93 std::unique_ptr<std::ifstream> gSystemTextFileStream(GSystem* system, const std::string& SYSTEMTYPE);
94};
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 system from ASCII text files.
Represents a single detector system (e.g., calorimeter, tracker).
Definition gsystem.h:33