gsystem
Loading...
Searching...
No Matches
systemTextFactory.h
Go to the documentation of this file.
1
#pragma once
2
3
// gsystem
4
#include "
systemFactory.h
"
5
6
// file types
7
#define GTEXTGEOMTYPE "__geometry_"
8
#define GTEXTMATSTYPE "__materials_"
9
#define GTEXTMIRSTYPE "__mirrors_"
10
34
class
GSystemTextFactory
:
public
GSystemFactory
35
{
36
public
:
37
// inherit the base (const std::shared_ptr<GOptions>&) ctor
38
using
GSystemFactory::GSystemFactory
;
39
40
private
:
48
void
loadMaterials(
GSystem
* system)
override
;
49
58
void
loadGeometry(
GSystem
* system)
override
;
59
79
std::ifstream* gSystemTextFileStream(
GSystem
* system,
const
std::string& SYSTEMTYPE);
80
};
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:35
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