#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 m_runActionDirectory = new G4UIdirectory( "/runAction/" );
22 m_runActionDirectory->SetGuidance( "BESIII run action" );
23
24
25 m_MCTruthCmd = new G4UIcmdWithAnInteger( "/runAction/MCTruth", this );
26 m_MCTruthCmd->SetGuidance( "whether to save MC Truth information." );
27 m_MCTruthCmd->SetParameterName( "MCTruthFlag", true );
28 m_MCTruthCmd->SetRange( "MCTruthFlag>=0" );
29 m_MCTruthCmd->SetDefaultValue( 0 );
30
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}
◆ ~BesRunActionMessenger()
| BesRunActionMessenger::~BesRunActionMessenger |
( |
| ) |
|
Definition at line 98 of file BesRunActionMessenger.cc.
98 {
99 delete m_runActionDirectory;
100 delete m_MCTruthCmd;
101 delete m_asciiCmd;
102}
◆ SetNewValue()
| void BesRunActionMessenger::SetNewValue |
( |
G4UIcommand * | command, |
|
|
G4String | newValues ) |
Definition at line 104 of file BesRunActionMessenger.cc.
104 {
105 if ( command == m_MCTruthCmd )
106 m_runAction->SetMCTruthFlag( m_MCTruthCmd->GetNewIntValue( newValue ) );
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130}
The documentation for this class was generated from the following files: