102{
103 if (G4VVisManager::GetConcreteInstance())
104 {
105 G4TrajectoryContainer* trajectoryContainer = evt->GetTrajectoryContainer();
106 G4int n_trajectories = 0;
107 if (trajectoryContainer) n_trajectories = trajectoryContainer->entries();
108
109 for (G4int i=0; i<n_trajectories; i++)
110 {
111 G4Trajectory* trj = (G4Trajectory*)
112 ((*(evt->GetTrajectoryContainer()))[i]);
113
114 trj->DrawTrajectory(50);
115
116 }
117 }
118
119
121 if (m_runAction)
123 {
125 }
126
128 if (m_runAction)
129 {
130
132 if (asciiIO) {
135 }
136
137
139 if (rootIO){
140
142
145 }
146 }
147 }else{
148
150 if (m_runAction)
151 {
153 if (tuningIO){
155 {
157 }
158 else{
160 }
161 }
162
163 }
164 }
165
166
168 m_DM->Digitize("BesMdcDigitizer");
169
170
172 m_DM->Digitize("BesTofDigitizer");
173
174
176 m_DM->Digitize("BesEmcDigitizer");
177
178
180 m_DM->Digitize("BesMucDigitizer");
181
182
183 if (m_runAction)
184 {
185
187 if (asciiIO)
188 {
191 }
192
193
195 if (tdsWriter)
196 {
199 }
200 }
201 }
202
204
205}
void SaveHitAsciiEvents(G4int, const G4Event *)
void SaveAsciiEvents(G4int, const G4Event *)
void SaveHitRootEvent(G4int, const G4Event *)
BesTuningIO * GetTuningIO()
BesTDSWriter * GetTDSWriter()
BesAsciiIO * GetAsciiIO()
void EndOfTruthEvent(const G4Event *)
void SaveAll(const G4Event *, int)
void GetRootEvent(int evtID)
static G4int GetFormatAR()