34 numberOfCollision = 0;
48 std::vector< G4QMDParticipant* >::iterator it;
52 (*it)->SetPosition ( r );
54 (*it)->SetMomentum ( p );
82 std::ios::fmtflags oldform =
G4cout.flags();
85 std::vector< G4QMDParticipant* >::iterator it;
86 G4cout <<
"Momentum and Position of each participant " <<
G4endl;
92 << (*it)->GetDefinition()->GetParticleName()
94 << std::setprecision( 8 )
95 << (*it)->GetMomentum()
97 << (*it)->GetPosition()
99 p_sum += (*it)->GetMomentum();
102 G4cout <<
"Sum upped Momentum and its mag " << p_sum <<
" " << p_sum.
mag() <<
G4endl;
114 G4cout <<
"G4QMDSystem::InsertParticipant size error" <<
G4endl;
116 std::vector< G4QMDParticipant* >::iterator it;
119 for (
G4int i = 0; i < n ; i++ )
G4GLOB_DLL std::ostream G4cout
void InsertParticipant(G4QMDParticipant *particle, G4int j)
G4QMDParticipant * GetParticipant(G4int i)
std::vector< G4QMDParticipant * > participants
void SubtractSystem(G4QMDSystem *)
G4int GetTotalNumberOfParticipant()
void SetParticipant(G4QMDParticipant *particle)
void SetSystem(G4QMDSystem *, G4ThreeVector, G4ThreeVector)