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++ )
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)