Import Geant4 1.1.0 source tree
This commit is contained in:
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4ProcessTableMessenger.cc,v 1.3.6.1.2.1 1999/12/07 20:52:49 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: G4ProcessTableMessenger.cc,v 1.3.6.1.2.1.2.5 1999/12/14 09:16:50 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------
|
||||
@@ -36,15 +36,11 @@
|
||||
#include "G4ParticleTable.hh"
|
||||
|
||||
#include "G4ios.hh"
|
||||
#include <iomanip.h>
|
||||
#include "g4std/iomanip"
|
||||
#include "g4rw/ctoken.h"
|
||||
#include "g4rw/rstream.h"
|
||||
|
||||
#ifdef WIN32
|
||||
# include <Strstrea.h>
|
||||
#else
|
||||
# include <strstream.h>
|
||||
#endif
|
||||
#include "g4std/strstream"
|
||||
|
||||
/////////////////////////////////////////
|
||||
G4int G4ProcessTableMessenger::NumberOfProcessType = 10;
|
||||
@@ -159,7 +155,7 @@ void G4ProcessTableMessenger::SetNewValue(G4UIcommand * command,G4String newValu
|
||||
} else {
|
||||
type = GetProcessType(newValue);
|
||||
if (type <0) {
|
||||
G4cout << " illegal type !!! " << endl;
|
||||
G4cout << " illegal type !!! " << G4endl;
|
||||
} else {
|
||||
currentProcessTypeName = newValue;
|
||||
}
|
||||
@@ -170,13 +166,13 @@ void G4ProcessTableMessenger::SetNewValue(G4UIcommand * command,G4String newValu
|
||||
tmpVector = theProcessTable->FindProcesses(name);
|
||||
if ( (type <0) || ( ((*tmpVector)(0)->GetProcessType()) == type) ) {
|
||||
if ( counter%4 != 0) G4cout << ",";
|
||||
G4cout << setw(19) << name;
|
||||
G4cout << G4std::setw(19) << name;
|
||||
if ((counter++)%4 == 3) {
|
||||
G4cout << endl;
|
||||
G4cout << G4endl;
|
||||
}
|
||||
}
|
||||
}
|
||||
G4cout << endl;
|
||||
G4cout << G4endl;
|
||||
delete tmpVector;
|
||||
//Commnad /process/list
|
||||
|
||||
@@ -201,7 +197,7 @@ void G4ProcessTableMessenger::SetNewValue(G4UIcommand * command,G4String newValu
|
||||
isNameFound = true;
|
||||
} else {
|
||||
// no processes with specifed name
|
||||
G4cout << " illegal process (or type) name " << endl;
|
||||
G4cout << " illegal process (or type) name " << G4endl;
|
||||
currentProcessName = "";
|
||||
return;
|
||||
}
|
||||
@@ -224,7 +220,7 @@ void G4ProcessTableMessenger::SetNewValue(G4UIcommand * command,G4String newValu
|
||||
|
||||
if ( !isParticleFound ) {
|
||||
// no particle with specifed name
|
||||
G4cout << " illegal particle name " << endl;
|
||||
G4cout << " illegal particle name " << G4endl;
|
||||
currentParticleName = "";
|
||||
return;
|
||||
}
|
||||
@@ -280,7 +276,7 @@ G4String G4ProcessTableMessenger::GetCurrentValue(G4UIcommand * command)
|
||||
G4String returnValue('\0');
|
||||
|
||||
char line[255];
|
||||
ostrstream os(line,255);
|
||||
G4std::ostrstream os(line,255);
|
||||
G4UIparameter * param;
|
||||
|
||||
G4int idx;
|
||||
|
||||
Reference in New Issue
Block a user