34 numberOfCollision = 0;
48 std::vector< G4QMDParticipant* >::iterator it;
52 (*it)->SetPosition ( r );
54 (*it)->SetMomentum ( p );
82 std::vector< G4QMDParticipant* >::iterator it;
83 G4cout <<
"Momentum and Position of each participant " <<
G4endl;
89 << (*it)->GetDefinition()->GetParticleName()
91 << std::setprecision( 8 )
92 << (*it)->GetMomentum()
94 << (*it)->GetPosition()
96 p_sum += (*it)->GetMomentum();
99 G4cout <<
"Sum upped Momentum and mag " << p_sum <<
" " << p_sum.
mag() <<
G4endl;
108 G4cout <<
"G4QMDSystem::InsertParticipant size error" <<
G4endl;
110 std::vector< G4QMDParticipant* >::iterator it;
113 for (
G4int i = 0; i < n ; i++ )
G4DLLIMPORT 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)