#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
98
99
100
101
102
103
104
105
106
107
108
109}
◆ ~BesRunActionMessenger()
BesRunActionMessenger::~BesRunActionMessenger |
( |
| ) |
|
Definition at line 111 of file BesRunActionMessenger.cc.
112{
113 delete m_runActionDirectory;
114 delete m_MCTruthCmd;
115 delete m_asciiCmd;
116}
◆ SetNewValue()
void BesRunActionMessenger::SetNewValue |
( |
G4UIcommand * | command, |
|
|
G4String | newValues ) |
Definition at line 118 of file BesRunActionMessenger.cc.
119{
120 if( command == m_MCTruthCmd)
121 m_runAction->
SetMCTruthFlag(m_MCTruthCmd->GetNewIntValue(newValue));
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147}
void SetMCTruthFlag(G4int flag)
The documentation for this class was generated from the following files: