Import Geant4 9.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 15:16:48 +02:00
parent 75c7fd177d
commit a8e9364cea
6592 changed files with 84274 additions and 69292 deletions
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4ParticleMessenger.cc,v 1.8 2006/06/29 19:25:54 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// $Id: G4ParticleMessenger.cc,v 1.9 2007/03/15 06:53:27 kurasige Exp $
// GEANT4 tag $Name: geant4-09-00 $
//
//
//---------------------------------------------------------------
@@ -113,7 +113,7 @@ void G4ParticleMessenger::SetNewValue(G4UIcommand * command,G4String newValues)
G4int counter = 0;
G4ParticleTable::G4PTblDicIterator *piter = theParticleTable->GetIterator();
piter -> reset();
// newValues.toLower(); temporaly commented out
while( (*piter)() ){
G4ParticleDefinition *particle = piter->value();
if ((newValues=="all") || (newValues==particle->GetParticleType())) {
@@ -127,7 +127,17 @@ void G4ParticleMessenger::SetNewValue(G4UIcommand * command,G4String newValues)
}
G4cout << G4endl;
if (counter == 0) G4cout << newValues << " is not found " << G4endl;
//Command /particle/select
// set candidate List
G4String candidates("none");
piter -> reset();
while( (*piter)() ){
G4ParticleDefinition *particle = piter->value();
candidates += " " + particle->GetParticleName();
}
selectCmd->SetCandidates((const char *)(candidates));
} else if( command==selectCmd ){
//Commnad /particle/select
currentParticle = theParticleTable->FindParticle(newValues);