103 if (G4VVisManager::GetConcreteInstance())
105 G4TrajectoryContainer* trajectoryContainer = evt->GetTrajectoryContainer();
106 G4int n_trajectories = 0;
107 if (trajectoryContainer) n_trajectories = trajectoryContainer->entries();
109 for (G4int i=0; i<n_trajectories; i++)
111 G4Trajectory* trj = (G4Trajectory*)
112 ((*(evt->GetTrajectoryContainer()))[i]);
122 if (m_runAction->GetMCTruthFlag()!=0)
131 BesAsciiIO* asciiIO = m_runAction->GetAsciiIO();
133 if (m_RealizationSvc->UseDBFlag() ==
true) asciiIO->
SaveHitAsciiEvents(m_RealizationSvc->getRunId(), evt);
138 BesRootIO* rootIO = m_runAction->GetRootIO();
143 if (m_RealizationSvc->UseDBFlag() ==
true) rootIO->
SaveHitRootEvent(m_RealizationSvc->getRunId(), evt);
152 BesTuningIO* tuningIO = m_runAction->GetTuningIO();
168 m_DM->Digitize(
"BesMdcDigitizer");
172 m_DM->Digitize(
"BesTofDigitizer");
176 m_DM->Digitize(
"BesEmcDigitizer");
180 m_DM->Digitize(
"BesMucDigitizer");
186 BesAsciiIO* asciiIO = m_runAction->GetAsciiIO();
189 if (m_RealizationSvc->UseDBFlag() ==
true) asciiIO->
SaveAsciiEvents(m_RealizationSvc->getRunId(), evt);
197 if (m_RealizationSvc->UseDBFlag() ==
true) tdsWriter->
SaveAll(evt, m_RealizationSvc->getRunId() );
198 else tdsWriter->
SaveAll(evt, m_runAction->GetRunId() );