Geant4
11.2.2
Toolkit for the simulation of the passage of particles through matter
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
m
n
o
p
q
r
s
t
u
w
z
Variables
c
d
e
g
h
i
k
l
m
n
o
p
q
s
t
v
Typedefs
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
w
Enumerations
a
b
c
d
e
f
g
l
m
p
r
s
t
v
y
z
Enumerator
a
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Enumerations
a
c
d
e
f
g
k
l
m
o
p
r
s
t
u
v
w
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Related Symbols
:
a
b
c
d
g
h
i
o
q
r
s
t
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
x
z
Enumerations
b
c
d
e
f
g
i
j
l
m
n
p
s
t
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
G4XmlRFileManager.hh
Go to the documentation of this file.
1
//
2
// ********************************************************************
3
// * License and Disclaimer *
4
// * *
5
// * The Geant4 software is copyright of the Copyright Holders of *
6
// * the Geant4 Collaboration. It is provided under the terms and *
7
// * conditions of the Geant4 Software License, included in the file *
8
// * LICENSE and available at http://cern.ch/geant4/license . These *
9
// * include a list of copyright holders. *
10
// * *
11
// * Neither the authors of this software system, nor their employing *
12
// * institutes,nor the agencies providing financial support for this *
13
// * work make any representation or warranty, express or implied, *
14
// * regarding this software system or assume any liability for its *
15
// * use. Please see the license in the file LICENSE and URL above *
16
// * for the full disclaimer and the limitation of liability. *
17
// * *
18
// * This code implementation is the result of the scientific and *
19
// * technical work of the GEANT4 collaboration. *
20
// * By using, copying, modifying or distributing the software (or *
21
// * any work based on the software) you agree to acknowledge its *
22
// * use in resulting scientific publications, and indicate your *
23
// * acceptance of all terms of the Geant4 Software license. *
24
// ********************************************************************
25
//
26
27
// The manager for Xml file input operations.
28
29
// Author: Ivana Hrivnacova, 10/09/2014 (ivana@ipno.in2p3.fr)
30
31
#ifndef G4XmlRFileManager_h
32
#define G4XmlRFileManager_h 1
33
34
#include "
G4VRFileManager.hh
"
35
#include "
globals.hh
"
36
37
#include "toolx/raxml"
38
39
#include <string_view>
40
41
class
G4AnalysisManagerState
;
42
43
class
G4XmlRFileManager
:
public
G4VRFileManager
44
{
45
public
:
46
explicit
G4XmlRFileManager
(
const
G4AnalysisManagerState
& state);
47
G4XmlRFileManager
() =
delete
;
48
~G4XmlRFileManager
()
override
;
49
50
G4String
GetFileType
() const final {
return
"xml"
; }
51
52
// Methods from base class
53
void
CloseFiles
() final {}
54
55
// Methods to manipulate input files
56
virtual
G4bool
OpenRFile
(
const
G4String
& fileName);
57
58
// Specific methods for files per objects
59
toolx::raxml*
GetRFile
(
const
G4String
& fileName)
const
;
60
61
// Helper method
62
template
<
typename
HT>
63
tools::raxml_out*
GetHandler
(
const
G4String
& fileName,
64
const
G4String
& objectName,
65
std::string_view inFunction);
66
67
private
:
68
// Static data members
69
static
constexpr
std::string_view fkClass {
"G4XmRFileManager"
};
70
71
// Data members
72
tools::xml::default_factory* fReadFactory {
nullptr
};
73
std::map<G4String, toolx::raxml*> fRFiles;
74
};
43
class
G4XmlRFileManager
:
public
G4VRFileManager
{
…
};
75
76
#include "G4XmlRFileManager.icc"
77
78
#endif
G4bool
bool G4bool
Definition
G4Types.hh:86
G4VRFileManager.hh
G4AnalysisManagerState
Definition
G4AnalysisManagerState.hh:41
G4String
Definition
G4String.hh:62
G4VRFileManager
Definition
G4VRFileManager.hh:51
G4XmlRFileManager
Definition
G4XmlRFileManager.hh:44
G4XmlRFileManager::G4XmlRFileManager
G4XmlRFileManager()=delete
G4XmlRFileManager::OpenRFile
virtual G4bool OpenRFile(const G4String &fileName)
Definition
G4XmlRFileManager.cc:66
G4XmlRFileManager::~G4XmlRFileManager
~G4XmlRFileManager() override
Definition
G4XmlRFileManager.cc:52
G4XmlRFileManager::CloseFiles
void CloseFiles() final
Definition
G4XmlRFileManager.hh:53
G4XmlRFileManager::GetHandler
tools::raxml_out * GetHandler(const G4String &fileName, const G4String &objectName, std::string_view inFunction)
G4XmlRFileManager::GetRFile
toolx::raxml * GetRFile(const G4String &fileName) const
Definition
G4XmlRFileManager.cc:112
G4XmlRFileManager::GetFileType
G4String GetFileType() const final
Definition
G4XmlRFileManager.hh:50
globals.hh
geant4-v11.2.2
source
analysis
xml
include
G4XmlRFileManager.hh
Generated by
1.12.0