gsystem
Loading...
Searching...
No Matches
gsystemConventions.h
Go to the documentation of this file.
1#pragma once
2
3namespace gsystem {
4
18
19// -----------------------------------------------------------------------------
20// Database row sizes
21// -----------------------------------------------------------------------------
22
32inline constexpr int GVOLUMENUMBEROFPARS = 22;
34inline constexpr int GVOLUMELEGACYNUMBEROFPARS = 21;
36inline constexpr int GMATERIALNUMBEROFPARS = 18;
38inline constexpr int GMIRRORNUMBEROFPARS = 16;
40
41// -----------------------------------------------------------------------------
42// Mirror conventions
43// -----------------------------------------------------------------------------
44
46inline constexpr char GMIRRORSKINSURFACE[] = "SkinSurface";
47
51inline constexpr char GSYSTEMCOMPONENTMATERIAL[] = "Component";
52
53// -----------------------------------------------------------------------------
54// Default placement strings
55// -----------------------------------------------------------------------------
56
66inline constexpr char DEFAULTPOSITION[] = "0*cm, 0*cm, 0*cm";
67inline constexpr char DEFAULTROTATION[] = "0*deg, 0*deg, 0*deg";
68inline constexpr char DEFAULTG4PLACEMENTTYPE[] = "active";
70
71// -----------------------------------------------------------------------------
72// Error codes
73// -----------------------------------------------------------------------------
74
83inline constexpr int ERR_GVOLUMEALREADYPRESENT = 201;
84inline constexpr int ERR_GWRONGNUMBEROFPARS = 202;
85inline constexpr int ERR_GSETUPFILENOTOFOUND = 203;
86inline constexpr int ERR_GVOLUMENOTFOUND = 204;
87inline constexpr int ERR_GDIRNOTFOUND = 205;
88inline constexpr int ERR_GMATERIALOPTICALPROPERTYMISMATCH = 206;
89inline constexpr int ERR_GMATERIALNOTFOUND = 207;
90inline constexpr int ERR_GVOLUMENAMECONTAINSINVALID = 208;
91inline constexpr int ERR_GSQLITEERROR = 209;
92inline constexpr int ERR_GMATERIALALREADYPRESENT = 210;
93inline constexpr int ERR_EXPERIMENTNOTFOUND = 211;
94inline constexpr int ERR_G4PLACEMENTTYPE = 212;
95inline constexpr int ERR_GMIRRORALREADYPRESENT = 213;
96inline constexpr int ERR_GMIRRORNOTFOUND = 214;
97inline constexpr int ERR_GMIRRORINVALID = 215;
99
100// -----------------------------------------------------------------------------
101// Environment and naming conventions
102// -----------------------------------------------------------------------------
103
110inline constexpr char GEMCDB_ENV[] = "GEMCDB_ENV";
111
113inline constexpr char ROOTWORLDGVOLUMENAME[] = "root";
114
117inline constexpr char ROOTDEFINITION[] = "G4Box 15*m 15*m 15*m G4_AIR";
118
120inline constexpr char MOTHEROFUSALL[] = "akasha";
121
123inline constexpr char GSYSTEM_DELIMITER[] = "/";
125
126// -----------------------------------------------------------------------------
127// Factory labels
128// -----------------------------------------------------------------------------
129
135inline constexpr char GSYSTEMASCIIFACTORYLABEL[] = "ascii";
136inline constexpr char GSYSTEMCADTFACTORYLABEL[] = "CAD";
137inline constexpr char GSYSTEMGDMLTFACTORYLABEL[] = "GDML";
138inline constexpr char GSYSTEMMYSQLTFACTORYLABEL[] = "mysql";
139inline constexpr char GSYSTEMSQLITETFACTORYLABEL[] = "sqlite";
140
142inline constexpr char GSYSTEMSQLITETDEFAULTFILE[] = "gemc.db";
143
145inline constexpr char GSYSTEMSASCIISEARCHDIR[] = ".";
147
148} // namespace gsystem
constexpr char GSYSTEMGDMLTFACTORYLABEL[]
constexpr int GVOLUMELEGACYNUMBEROFPARS
Number of database parameters defining a legacy gvolume entry without g4placement_type.
constexpr char GMIRRORSKINSURFACE[]
Border value marking an optical surface applied to the whole volume skin.
constexpr int ERR_GWRONGNUMBEROFPARS
constexpr int ERR_GVOLUMEALREADYPRESENT
constexpr char GSYSTEMSQLITETDEFAULTFILE[]
Default sqlite DB filename used when the user does not specify one.
constexpr char DEFAULTG4PLACEMENTTYPE[]
constexpr char GSYSTEMCOMPONENTMATERIAL[]
constexpr char GSYSTEMCADTFACTORYLABEL[]
constexpr char GSYSTEM_DELIMITER[]
Delimiter used to build fully-qualified names (system/name).
constexpr int ERR_GSETUPFILENOTOFOUND
constexpr int GMIRRORNUMBEROFPARS
Number of database parameters defining a gmirror entry.
constexpr int ERR_EXPERIMENTNOTFOUND
constexpr char ROOTDEFINITION[]
constexpr char GEMCDB_ENV[]
constexpr char DEFAULTROTATION[]
constexpr char GSYSTEMMYSQLTFACTORYLABEL[]
constexpr char GSYSTEMSASCIISEARCHDIR[]
Default search directory for ASCII factory files.
constexpr int ERR_GVOLUMENAMECONTAINSINVALID
constexpr char GSYSTEMSQLITETFACTORYLABEL[]
constexpr int GVOLUMENUMBEROFPARS
constexpr char MOTHEROFUSALL[]
Special mother-name marker for the top-level world root.
constexpr int ERR_GMIRRORALREADYPRESENT
constexpr int ERR_GMIRRORINVALID
constexpr int ERR_GMIRRORNOTFOUND
constexpr int ERR_GMATERIALALREADYPRESENT
constexpr int ERR_GMATERIALNOTFOUND
constexpr char DEFAULTPOSITION[]
constexpr char GSYSTEMASCIIFACTORYLABEL[]
constexpr int ERR_G4PLACEMENTTYPE
constexpr int ERR_GSQLITEERROR
constexpr char ROOTWORLDGVOLUMENAME[]
Canonical name for the ROOT/world gvolume entry.
constexpr int ERR_GMATERIALOPTICALPROPERTYMISMATCH
constexpr int GMATERIALNUMBEROFPARS
Number of database parameters defining a gmaterial entry.
constexpr int ERR_GVOLUMENOTFOUND
constexpr int ERR_GDIRNOTFOUND