Import Geant4 6.2.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 10:56:29 +02:00
parent 1d812b78b1
commit e083ffb441
1415 changed files with 111223 additions and 21207 deletions
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4UIcmdWith3Vector.hh,v 1.5 2002/04/26 22:03:35 asaim Exp $
// GEANT4 tag $Name: geant4-05-02-patch-01 $
// $Id: G4UIcmdWith3Vector.hh,v 1.6 2004/05/16 18:42:29 asaim Exp $
// GEANT4 tag $Name: geant4-06-02 $
//
//
@@ -44,13 +44,9 @@ class G4UIcmdWith3Vector : public G4UIcommand
(const char * theCommandPath,G4UImessenger * theMessenger);
// Constructor. The command string with full path directory
// and the pointer to the messenger must be given.
G4ThreeVector GetNew3VectorValue(const char* paramString);
static G4ThreeVector GetNew3VectorValue(const char* paramString);
// Convert string which represents three double values to
// G4ThreeVector.
G4String ConvertToString(G4ThreeVector vec);
// Convert G4ThreeVector to a string which represents three
// double values. This method must be used by the messenger
// for its GetCurrentValues() method.
void SetParameterName(const char * theNameX,const char * theNameY,
const char * theNameZ,G4bool omittable,G4bool currentAsDefault=false);
// Set the parameter names for three parameters. Names are used by
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4UIcmdWith3VectorAndUnit.hh,v 1.5 2002/04/26 22:03:35 asaim Exp $
// GEANT4 tag $Name: geant4-05-02-patch-01 $
// $Id: G4UIcmdWith3VectorAndUnit.hh,v 1.7 2004/05/16 20:42:37 asaim Exp $
// GEANT4 tag $Name: geant4-06-02 $
//
//
@@ -44,21 +44,24 @@ class G4UIcmdWith3VectorAndUnit : public G4UIcommand
(const char * theCommandPath,G4UImessenger * theMessenger);
// Constructor. The command string with full path directory
// and the pointer to the messenger must be given.
G4ThreeVector GetNew3VectorValue(const char* paramString);
static G4ThreeVector GetNew3VectorValue(const char* paramString);
// Convert string which represents three double values and a unit to
// G4ThreeVector. Values are converted to the Geant4 internal unit.
G4ThreeVector GetNew3VectorRawValue(const char* paramString);
static G4ThreeVector GetNew3VectorRawValue(const char* paramString);
// Convert string which represents three double values and a unit to
// G4ThreeVector. Values are NOT converted to the Geant4 internal unit
// but just as the given string.
G4double GetNewUnitValue(const char* paramString);
static G4double GetNewUnitValue(const char* paramString);
// Convert the unit string to the value of the unit. "paramString"
// must contain three double values AND a unit string.
G4String ConvertToString(G4ThreeVector vec,const char * unitName);
// Convert G4ThreeVector and the unit to a string which represents three
// double values and the unit. This method must be used by the messenger
// for its GetCurrentValues() method. Values of the three vector will be
// devided by the value of the unit.
G4String ConvertToStringWithBestUnit(G4ThreeVector vec);
// Convert a 3 vector value to a string of digits and unit. Best unit is
// chosen from the unit category of default unit (in case SetDefaultUnit()
// is defined) or category defined by SetUnitCategory().
G4String ConvertToStringWithDefaultUnit(G4ThreeVector vec);
// Convert a 3 vector value to a string of digits and unit. Best unit is
// chosen from the category defined by SetUnitCategory() in case default
// unit is not defined.
void SetParameterName(const char * theNameX,const char * theNameY,
const char * theNameZ,G4bool omittable,G4bool currentAsDefault=false);
// Set the parameter names for three parameters. Names are used by
+3 -6
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4UIcmdWithABool.hh,v 1.5 2002/04/26 22:03:35 asaim Exp $
// GEANT4 tag $Name: geant4-05-02-patch-01 $
// $Id: G4UIcmdWithABool.hh,v 1.6 2004/05/16 18:42:30 asaim Exp $
// GEANT4 tag $Name: geant4-06-02 $
//
//
@@ -47,11 +47,8 @@ class G4UIcmdWithABool : public G4UIcommand
(const char * theCommandPath,G4UImessenger * theMessenger);
// Constructor. The command string with full path directory
// and the pointer to the messenger must be given.
G4bool GetNewBoolValue(const char* paramString);
static G4bool GetNewBoolValue(const char* paramString);
// Convert string which represents a boolean value to G4bool.
G4String ConvertToString(G4bool intValue);
// Convert a boolean value to a string. This method must be used by
// the messenger for its GetCurrentValues() method.
void SetParameterName(const char * theName,G4bool omittable,
G4bool currentAsDefault=false);
// Set the parameter name for a boolean parameter.
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4UIcmdWithADouble.hh,v 1.5 2002/04/26 22:03:35 asaim Exp $
// GEANT4 tag $Name: geant4-05-02-patch-01 $
// $Id: G4UIcmdWithADouble.hh,v 1.6 2004/05/16 18:42:30 asaim Exp $
// GEANT4 tag $Name: geant4-06-02 $
//
//
@@ -43,11 +43,8 @@ class G4UIcmdWithADouble : public G4UIcommand
(const char * theCommandPath,G4UImessenger * theMessenger);
// Constructor. The command string with full path directory
// and the pointer to the messenger must be given.
G4double GetNewDoubleValue(const char* paramString);
static G4double GetNewDoubleValue(const char* paramString);
// Convert string which represents a double value to a double.
G4String ConvertToString(G4double dblValue);
// Convert a double value to a string. This method must be used by
// the messenger for its GetCurrentValues() method.
void SetParameterName(const char * theName,G4bool omittable,
G4bool currentAsDefault=false);
// Set the parameter name. The name is used by the range checking.
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4UIcmdWithADoubleAndUnit.hh,v 1.5 2002/04/26 22:03:35 asaim Exp $
// GEANT4 tag $Name: geant4-05-02-patch-01 $
// $Id: G4UIcmdWithADoubleAndUnit.hh,v 1.7 2004/05/16 20:42:37 asaim Exp $
// GEANT4 tag $Name: geant4-06-02 $
//
//
@@ -43,21 +43,24 @@ class G4UIcmdWithADoubleAndUnit : public G4UIcommand
(const char * theCommandPath,G4UImessenger * theMessenger);
// Constructor. The command string with full path directory
// and the pointer to the messenger must be given.
G4double GetNewDoubleValue(const char* paramString);
static G4double GetNewDoubleValue(const char* paramString);
// Convert string which represents a double value and a unit to
// double. Value is converted to the Geant4 internal unit.
G4double GetNewDoubleRawValue(const char* paramString);
static G4double GetNewDoubleRawValue(const char* paramString);
// Convert string which represents a double value and a unit to
// double. Value is NOT converted to the Geant4 internal unit
// but just as the given string.
G4double GetNewUnitValue(const char* paramString);
static G4double GetNewUnitValue(const char* paramString);
// Convert the unit string to the value of the unit. "paramString"
// must contain a double value AND a unit string.
G4String ConvertToString(G4double dblValue,const char * unitName);
// Convert a double value and the unit to a string which represents a
// double value and the unit. This method must be used by the messenger
// for its GetCurrentValues() method. Value of the double will be
// devided by the value of the unit.
G4String ConvertToStringWithBestUnit(G4double val);
// Convert a double value to a string of digits and unit. Best unit is
// chosen from the unit category of default unit (in case SetDefaultUnit()
// is defined) or category defined by SetUnitCategory().
G4String ConvertToStringWithDefaultUnit(G4double val);
// Convert a double value to a string of digits and unit. Best unit is
// chosen from the category defined by SetUnitCategory() in case default
// unit is not defined.
void SetParameterName(const char * theName,G4bool omittable,
G4bool currentAsDefault=false);
// Set the parameter name for double parameterxs. Name is used by
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4UIcmdWithAnInteger.hh,v 1.5 2002/04/26 22:03:35 asaim Exp $
// GEANT4 tag $Name: geant4-05-02-patch-01 $
// $Id: G4UIcmdWithAnInteger.hh,v 1.6 2004/05/16 18:42:30 asaim Exp $
// GEANT4 tag $Name: geant4-06-02 $
//
//
@@ -43,11 +43,8 @@ class G4UIcmdWithAnInteger : public G4UIcommand
(const char * theCommandPath,G4UImessenger * theMessenger);
// Constructor. The command string with full path directory
// and the pointer to the messenger must be given.
G4int GetNewIntValue(const char* paramString);
static G4int GetNewIntValue(const char* paramString);
// Convert string which represents an integer to an integer.
G4String ConvertToString(G4int intValue);
// Convert an integer value to a string. This method must be used by
// the messenger for its GetCurrentValues() method.
void SetParameterName(const char * theName,G4bool omittable,
G4bool currentAsDefault=false);
// Set the parameter name. The name is used by the range checking.
+24 -3
View File
@@ -21,8 +21,8 @@
// ********************************************************************
//
//
// $Id: G4UIcommand.hh,v 1.13 2003/06/16 16:55:32 gunter Exp $
// GEANT4 tag $Name: geant4-05-02-patch-01 $
// $Id: G4UIcommand.hh,v 1.14 2004/05/16 18:42:30 asaim Exp $
// GEANT4 tag $Name: geant4-06-02 $
//
//
@@ -35,6 +35,7 @@ class G4UImessenger;
#include "G4ApplicationState.hh"
#include <vector>
#include "G4UItokenNum.hh"
#include "G4ThreeVector.hh"
// class description:
//
@@ -78,10 +79,30 @@ class G4UIcommand
G4bool IsAvailable();
virtual void List();
public:
public: // with description
static G4String ConvertToString(G4bool boolVal);
static G4String ConvertToString(G4int intValue);
static G4String ConvertToString(G4double doubleValue);
static G4String ConvertToString(G4double doubleValue,const char* unitName);
static G4String ConvertToString(G4ThreeVector vec);
static G4String ConvertToString(G4ThreeVector vec,const char* unitName);
// Static methods for conversion from value(s) to a string. These methods are to be
// used by GetCurrentValues() methods of concrete messengers.
static G4bool ConvertToBool(const char* st);
static G4int ConvertToInt(const char* st);
static G4double ConvertToDouble(const char* st);
static G4double ConvertToDimensionedDouble(const char* st);
static G4ThreeVector ConvertTo3Vector(const char* st);
static G4ThreeVector ConvertToDimensioned3Vector(const char* st);
// Static methods for conversion from a string to a value of the returning type.
// These methods are to be used directly by SetNewValues() methods of concrete
// messengers, or GetNewXXXValue() of classes derived from this G4UIcommand class.
static G4double ValueOf(const char* unitName);
static G4String CategoryOf(const char* unitName);
static G4String UnitsList(const char* unitCategory);
// Static methods for unit and its category.
private:
void G4UIcommandCommonConstructorCode (const char * theCommandPath);