Geant4
11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4PersistencyCenterMessenger.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
// G4PersistencyCenterMessenger
27
//
28
// Class Description:
29
//
30
// User interface messenger class to interface G4PersistencyCenter.
31
32
// Author: Youhei Morita, 18.07.2001
33
// --------------------------------------------------------------------
34
#ifndef G4PERSISTENCYCENTERMESSENGER_HH
35
#define G4PERSISTENCYCENTERMESSENGER_HH 1
36
37
#include "
G4UIcommand.hh
"
38
#include "
G4UIdirectory.hh
"
39
#include "
G4UIcmdWithAnInteger.hh
"
40
#include "
G4UIcmdWithAString.hh
"
41
#include "
G4UIcmdWithoutParameter.hh
"
42
#include "
G4PersistencyCenter.hh
"
43
#include "
G4UImessenger.hh
"
44
45
class
G4PersistencyCenterMessenger
:
public
G4UImessenger
46
{
47
public
:
48
49
G4PersistencyCenterMessenger
(
G4PersistencyCenter
* p);
50
// Constructor
51
52
~G4PersistencyCenterMessenger
();
53
// Destructor
54
55
void
SetNewValue
(
G4UIcommand
* command,
G4String
newValues);
56
// User interface for setting a new value
57
58
G4String
GetCurrentValue
(
G4UIcommand
* command);
59
// User interface for getting a value
60
61
private
:
62
63
G4String
PopWord(
const
G4String
& text,
G4int
n,
const
G4String
& delim);
64
// Parse text and returns the n-th words separated by delim
65
66
private
:
67
68
G4PersistencyCenter
* pc =
nullptr
;
69
G4UIdirectory
*directory =
nullptr
,
70
*subdir1 =
nullptr
, *subdir2 =
nullptr
,
71
*subdir3 =
nullptr
, *subdir4 =
nullptr
, *subdir5 =
nullptr
;
72
G4UIcmdWithAnInteger
* verboseCmd =
nullptr
;
73
G4UIcmdWithAString
* select =
nullptr
;
74
G4UIcmdWithAString
* regHitIO =
nullptr
;
75
std::vector<std::string> wrObj;
76
std::vector<std::string> rdObj;
77
std::vector<G4UIcmdWithAString*> storeObj;
78
std::vector<G4UIcmdWithAString*> setWrFile;
79
std::vector<G4UIcmdWithAString*> setRdFile;
80
G4UIcmdWithoutParameter
* printAll =
nullptr
;
81
};
82
83
#endif
G4PersistencyCenter.hh
G4int
int G4int
Definition
G4Types.hh:85
G4UIcmdWithAString.hh
G4UIcmdWithAnInteger.hh
G4UIcmdWithoutParameter.hh
G4UIcommand.hh
G4UIdirectory.hh
G4UImessenger.hh
G4PersistencyCenterMessenger
Definition
G4PersistencyCenterMessenger.hh:46
G4PersistencyCenterMessenger::SetNewValue
void SetNewValue(G4UIcommand *command, G4String newValues)
Definition
G4PersistencyCenterMessenger.cc:155
G4PersistencyCenterMessenger::~G4PersistencyCenterMessenger
~G4PersistencyCenterMessenger()
Definition
G4PersistencyCenterMessenger.cc:134
G4PersistencyCenterMessenger::GetCurrentValue
G4String GetCurrentValue(G4UIcommand *command)
Definition
G4PersistencyCenterMessenger.cc:214
G4PersistencyCenterMessenger::G4PersistencyCenterMessenger
G4PersistencyCenterMessenger(G4PersistencyCenter *p)
Definition
G4PersistencyCenterMessenger.cc:35
G4PersistencyCenter
Definition
G4PersistencyCenter.hh:67
G4String
Definition
G4String.hh:62
G4UIcmdWithAString
Definition
G4UIcmdWithAString.hh:43
G4UIcmdWithAnInteger
Definition
G4UIcmdWithAnInteger.hh:42
G4UIcmdWithoutParameter
Definition
G4UIcmdWithoutParameter.hh:42
G4UIcommand
Definition
G4UIcommand.hh:52
G4UIdirectory
Definition
G4UIdirectory.hh:42
G4UImessenger
Definition
G4UImessenger.hh:47
geant4-v11.2.2
source
persistency
mctruth
include
G4PersistencyCenterMessenger.hh
Generated by
1.12.0