110{
111 if (G4VVisManager::GetConcreteInstance())
112 {
113 G4TrajectoryContainer* trajectoryContainer = evt->GetTrajectoryContainer();
114 G4int n_trajectories = 0;
115 if (trajectoryContainer) n_trajectories = trajectoryContainer->entries();
116
117 for (G4int i=0; i<n_trajectories; i++)
118 {
119 G4Trajectory* trj = (G4Trajectory*)
120 ((*(evt->GetTrajectoryContainer()))[i]);
121
122 trj->DrawTrajectory(50);
123
124 }
125 }
126
127
129 if (m_runAction)
131 {
133 }
134
136 if (m_runAction)
137 {
138
140 if (asciiIO) {
143 }
144
145
147 if (rootIO){
148
150
153 }
154 }
155 }else{
156
158 if (m_runAction)
159 {
161 if (tuningIO){
163 {
165 }
166 else{
168 }
169 }
170
171 }
172 }
173
174
176 m_DM->Digitize("BesMdcDigitizer");
177
178
179
181 m_DM->Digitize("BesCgemDigitizer");
182
183
185 m_DM->Digitize("BesTofDigitizer");
186
187
189 m_DM->Digitize("BesEmcDigitizer");
190
191
193 m_DM->Digitize("BesMucDigitizer");
194
195
196 if (m_runAction)
197 {
198
200 if (asciiIO)
201 {
204 }
205
206
208 if (tdsWriter)
209 {
212 }
213 }
214 }
215
217
218}
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()