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
@@ -22,7 +22,7 @@
//
//
// $Id: XrayFluoPhysicsListMessenger.cc
// GEANT4 tag $Name: xray_fluo-V04-01-03
// GEANT4 tag $Name: xray_fluo-V03-02-00
//
// Author: Elena Guardincerri (Elena.Guardincerri@ge.infn.it)
//
@@ -49,6 +49,27 @@ XrayFluoPhysicsListMessenger::XrayFluoPhysicsListMessenger(XrayFluoPhysicsList *
lowEnDir = new G4UIdirectory("/lowenergy/");
lowEnDir->SetGuidance("LowEnergy commands");
// cutGLowLimCmd = new G4UIcmdWithADoubleAndUnit("/lowenergy/lowlimG",this);
// cutGLowLimCmd->SetGuidance("Set ENERGY low limit for Gamma.");
// cutGLowLimCmd->SetParameterName("energy",true);
// cutGLowLimCmd->SetDefaultValue(1e-3);
// cutGLowLimCmd->SetDefaultUnit("MeV");
// cutGLowLimCmd->AvailableForStates(G4State_Idle);
// cutELowLimCmd = new G4UIcmdWithADoubleAndUnit("/lowenergy/lowlimE",this);
// cutELowLimCmd->SetGuidance("Set ENERGY low limit for e-.");
// cutELowLimCmd->SetParameterName("energy",true);
// cutELowLimCmd->SetDefaultValue(1e-3);
// cutELowLimCmd->SetDefaultUnit("MeV");
// cutELowLimCmd->AvailableForStates(G4State_Idle);
// cutGELowLimCmd = new G4UIcmdWithADoubleAndUnit("/lowenergy/lowlimGE",this);
// cutGELowLimCmd->SetGuidance("Set ENERGY low limit for e- and Gamma.");
// cutGELowLimCmd->SetParameterName("energy",true);
// cutGELowLimCmd->SetDefaultValue(1e-3);
// cutGELowLimCmd->SetDefaultUnit("MeV");
// cutGELowLimCmd->AvailableForStates(G4State_Idle);
cutSecPhotCmd = new G4UIcmdWithADoubleAndUnit("/lowenergy/secphotcut",this);
cutSecPhotCmd->SetGuidance("Set production threshold for secondary Gamma.");
cutSecPhotCmd->SetParameterName("energy",true);
@@ -85,7 +106,7 @@ XrayFluoPhysicsListMessenger::XrayFluoPhysicsListMessenger(XrayFluoPhysicsList *
cutPCmd->AvailableForStates(G4State_Idle);
eCmd = new G4UIcmdWithADoubleAndUnit("/lowenergy/cutEnergy",this);
eCmd->SetGuidance("Set cut values by ENERGY for charged particles.");
eCmd->SetGuidance("Set cut values by ENERGY for all particles.");
eCmd->SetParameterName("cutenergy",false);
eCmd->SetRange("cutenergy>0.");
eCmd->SetUnitCategory("Energy");
@@ -97,6 +118,10 @@ XrayFluoPhysicsListMessenger::XrayFluoPhysicsListMessenger(XrayFluoPhysicsList *
XrayFluoPhysicsListMessenger::~XrayFluoPhysicsListMessenger()
{
// delete cutGLowLimCmd;
// delete cutELowLimCmd;
// delete cutGELowLimCmd;
delete cutSecElecCmd;
delete cutSecPhotCmd;
delete cutGCmd;
@@ -110,6 +135,15 @@ XrayFluoPhysicsListMessenger::~XrayFluoPhysicsListMessenger()
void XrayFluoPhysicsListMessenger::SetNewValue(G4UIcommand* command,G4String newValue)
{
// if(command == cutGLowLimCmd)
// { XrayFluoList->SetGammaLowLimit(cutGLowLimCmd->GetNewDoubleValue(newValue));}
// if(command == cutELowLimCmd)
// { XrayFluoList->SetElectronLowLimit(cutELowLimCmd->GetNewDoubleValue(newValue));}
// if(command == cutGELowLimCmd)
// { XrayFluoList->SetGELowLimit(cutGELowLimCmd->GetNewDoubleValue(newValue));}
if(command == cutSecPhotCmd)
{ XrayFluoList->SetLowEnSecPhotCut(cutSecPhotCmd->GetNewDoubleValue(newValue));}
@@ -122,10 +156,10 @@ void XrayFluoPhysicsListMessenger::SetNewValue(G4UIcommand* command,G4String new
if(command == cutECmd)
{ XrayFluoList->SetElectronCut(cutECmd->GetNewDoubleValue(newValue));}
if(command == cutPCmd)
if(command == cutPCmd)
{ XrayFluoList->SetProtonCut(cutPCmd->GetNewDoubleValue(newValue));}
if(command == eCmd)
if(command == eCmd)
{ XrayFluoList->SetCutsByEnergy(eCmd->GetNewDoubleValue(newValue));}
}