gsystem
Loading...
Searching...
No Matches
systemTextFactory.h
Go to the documentation of this file.
1
#pragma once
2
3
// gsystem
4
#include <
gemc/gsystem/gsystemFactories/systemFactory.h
>
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
38
class
GSystemTextFactory
:
public
GSystemFactory
39
{
40
public
:
41
// inherit the base (const std::shared_ptr<GOptions>&) ctor
42
using
GSystemFactory::GSystemFactory
;
43
44
private
:
52
void
loadMaterials(
GSystem
* system)
override
;
53
62
void
loadGeometry(
GSystem
* system)
override
;
63
83
std::unique_ptr<std::ifstream> gSystemTextFileStream(
GSystem
* system,
const
std::string& SYSTEMTYPE);
84
};
GSystemFactory
Abstract base class for loading a GSystem from a specific source.
Definition
systemFactory.h:35
GSystemFactory::GSystemFactory
GSystemFactory(const std::shared_ptr< GOptions > &g)
Construct the factory with shared configuration.
Definition
systemFactory.h:44
GSystemTextFactory
Load a system from ASCII text files.
Definition
systemTextFactory.h:39
GSystem
Represents a single detector system (e.g., calorimeter, tracker).
Definition
gsystem.h:32
systemFactory.h
gsystemFactories
text
systemTextFactory.h
Generated by
1.10.0