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;
90 << (*it)->GetDefinition()->GetParticleName()
92 << std::setprecision( 8 )
93 << (*it)->GetMomentum()
95 << (*it)->GetPosition()
97 p_sum += (*it)->GetMomentum();
100 G4cout <<
"Sum upped Momentum and its mag " << p_sum <<
" " << p_sum.mag() <<
G4endl;
102 G4cout << std::setprecision( orginal );
111 G4cout <<
"G4QMDSystem::InsertParticipant size error" <<
G4endl;
113 std::vector< G4QMDParticipant* >::iterator it;
116 for (
G4int i = 0; i <
n ; i++ )
void SetParticipant(G4QMDParticipant *particle)
CLHEP::Hep3Vector G4ThreeVector
void SubtractSystem(G4QMDSystem *)
G4GLOB_DLL std::ostream G4cout
G4int GetTotalNumberOfParticipant()
std::vector< G4QMDParticipant * > participants
G4QMDParticipant * GetParticipant(G4int i)
void InsertParticipant(G4QMDParticipant *particle, G4int j)
void SetSystem(G4QMDSystem *, G4ThreeVector, G4ThreeVector)