#include <BesRunActionMessenger.hh>
Definition at line 23 of file BesRunActionMessenger.hh.
◆ BesRunActionMessenger()
BesRunActionMessenger::BesRunActionMessenger |
( |
BesRunAction * |
runAction | ) |
|
Definition at line 19 of file BesRunActionMessenger.cc.
20:m_runAction(runAction)
21{
22 m_runActionDirectory = new G4UIdirectory("/runAction/");
23 m_runActionDirectory->SetGuidance("BESIII run action");
24
25
26 m_MCTruthCmd = new G4UIcmdWithAnInteger("/runAction/MCTruth",this);
27 m_MCTruthCmd->SetGuidance("whether to save MC Truth information.");
28 m_MCTruthCmd->SetParameterName("MCTruthFlag",true);
29 m_MCTruthCmd->SetRange("MCTruthFlag>=0");
30 m_MCTruthCmd->SetDefaultValue(0);
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97}
◆ ~BesRunActionMessenger()
BesRunActionMessenger::~BesRunActionMessenger |
( |
| ) |
|
Definition at line 99 of file BesRunActionMessenger.cc.
100{
101 delete m_runActionDirectory;
102 delete m_MCTruthCmd;
103 delete m_asciiCmd;
104}
◆ SetNewValue()
void BesRunActionMessenger::SetNewValue |
( |
G4UIcommand * |
command, |
|
|
G4String |
newValues |
|
) |
| |
Definition at line 106 of file BesRunActionMessenger.cc.
107{
108 if( command == m_MCTruthCmd)
109 m_runAction->
SetMCTruthFlag(m_MCTruthCmd->GetNewIntValue(newValue));
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133}
void SetMCTruthFlag(G4int flag)
The documentation for this class was generated from the following files: