Import Geant4 9.2.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 15:58:43 +02:00
parent 96c8bcd0af
commit b79225fb37
7544 changed files with 245407 additions and 91099 deletions
@@ -23,6 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// 081120 Add InsertParticipant Method by T. Koi
#include "G4QMDSystem.hh"
#include <iomanip>
@@ -96,3 +98,20 @@ void G4QMDSystem::ShowParticipants()
}
G4cout << "Sum upped Momentum and mag " << p_sum << " " << p_sum.mag() << G4endl;
}
void G4QMDSystem::InsertParticipant ( G4QMDParticipant* particle , G4int n )
{
if ( (size_t) n > participants.size()+1 )
G4cout << "G4QMDSystem::InsertParticipant size error" << G4endl;
std::vector< G4QMDParticipant* >::iterator it;
it = participants.begin();
for ( G4int i = 0; i < n ; i++ )
it++;
participants.insert( it, particle );
}