Import Geant4 10.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-10 11:51:14 +02:00
parent e2d2f9810a
commit 286caacf06
12421 changed files with 730077 additions and 502383 deletions
@@ -27,12 +27,11 @@
/// \brief Implementation of the F01PrimaryGeneratorMessenger class
//
//
// $Id$
// $Id: F01PrimaryGeneratorMessenger.cc 77881 2013-11-29 08:37:53Z gcosmo $
//
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#include "F01PrimaryGeneratorMessenger.hh"
@@ -41,7 +40,7 @@
#include "G4UIcmdWithADoubleAndUnit.hh"
#include "G4SystemOfUnits.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
F01PrimaryGeneratorMessenger::F01PrimaryGeneratorMessenger(
F01PrimaryGeneratorAction* action)
@@ -51,7 +50,7 @@ F01PrimaryGeneratorMessenger::F01PrimaryGeneratorMessenger(
fSetXVertexCmd(0),
fSetYVertexCmd(0),
fSetZVertexCmd(0)
{
{
fRndmCmd = new G4UIcmdWithAString("/gun/random",this);
fRndmCmd->SetGuidance("Shoot randomly the incident particle.");
fRndmCmd->SetGuidance(" Choice : on, off(default)");
@@ -63,21 +62,24 @@ F01PrimaryGeneratorMessenger::F01PrimaryGeneratorMessenger(
fSetXVertexCmd = new G4UIcmdWithADoubleAndUnit("/gun/xvertex",this);
fSetXVertexCmd->SetGuidance(" Set x coord. of the primary vertex.");
fSetXVertexCmd->SetParameterName("xv",true);
fSetXVertexCmd->SetDefaultValue(0.0*mm) ;
fSetXVertexCmd->SetDefaultValue(0.0*mm);
fSetXVertexCmd->SetDefaultUnit("mm");
fSetYVertexCmd = new G4UIcmdWithADoubleAndUnit("/gun/yvertex",this);
fSetYVertexCmd->SetGuidance(" Set y coord. of the primary vertex.");
fSetYVertexCmd->SetParameterName("yv",true);
fSetYVertexCmd->SetDefaultValue(0.0*mm) ;
fSetYVertexCmd->SetDefaultValue(0.0*mm);
fSetYVertexCmd->SetDefaultUnit("mm");
fSetZVertexCmd = new G4UIcmdWithADoubleAndUnit("/gun/zvertex",this);
fSetZVertexCmd->SetGuidance(" Set z coord. of the primary vertex.");
fSetZVertexCmd->SetParameterName("zv",true);
fSetZVertexCmd->SetDefaultValue(0.0*mm) ;
fSetZVertexCmd->SetDefaultValue(0.0*mm);
fSetZVertexCmd->SetDefaultUnit("mm");
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
F01PrimaryGeneratorMessenger::~F01PrimaryGeneratorMessenger()
{
@@ -87,19 +89,19 @@ F01PrimaryGeneratorMessenger::~F01PrimaryGeneratorMessenger()
delete fSetZVertexCmd;
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
void F01PrimaryGeneratorMessenger::SetNewValue(G4UIcommand * command,G4String newValue)
{
void F01PrimaryGeneratorMessenger::SetNewValue(G4UIcommand * command,
G4String newValue)
{
if( command == fRndmCmd )
{ fAction->SetRndmFlag(newValue);}
if( command == fSetXVertexCmd)
if( command == fSetXVertexCmd )
{ fAction->SetXVertex(fSetXVertexCmd->GetNewDoubleValue(newValue));}
if( command == fSetYVertexCmd)
if( command == fSetYVertexCmd )
{ fAction->SetYVertex(fSetYVertexCmd->GetNewDoubleValue(newValue));}
if( command == fSetZVertexCmd)
if( command == fSetZVertexCmd )
{ fAction->SetZVertex(fSetZVertexCmd->GetNewDoubleValue(newValue));}
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......