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
@@ -26,20 +26,21 @@
/// \file field/field03/src/F03PrimaryGeneratorMessenger.cc
/// \brief Implementation of the F03PrimaryGeneratorMessenger class
//
// $Id$
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
//
// $Id: F03PrimaryGeneratorMessenger.cc 77892 2013-11-29 08:56:08Z gcosmo $
//
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#include "F03PrimaryGeneratorMessenger.hh"
#include "F03PrimaryGeneratorAction.hh"
#include "F03PrimaryGeneratorAction.hh"
#include "G4UIcmdWithAString.hh"
#include "G4UIcmdWithADoubleAndUnit.hh"
#include "G4SystemOfUnits.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
F03PrimaryGeneratorMessenger::F03PrimaryGeneratorMessenger(
F03PrimaryGeneratorAction* action)
@@ -49,7 +50,7 @@ F03PrimaryGeneratorMessenger::F03PrimaryGeneratorMessenger(
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)");
@@ -61,21 +62,24 @@ F03PrimaryGeneratorMessenger::F03PrimaryGeneratorMessenger(
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......
F03PrimaryGeneratorMessenger::~F03PrimaryGeneratorMessenger()
{
@@ -85,19 +89,19 @@ F03PrimaryGeneratorMessenger::~F03PrimaryGeneratorMessenger()
delete fSetZVertexCmd;
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
void F03PrimaryGeneratorMessenger::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......