Import Geant4 11.0.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2021-06-25 16:12:29 +02:00
parent c968e26a39
commit 6399a014b6
4200 changed files with 207479 additions and 237366 deletions
+98 -136
View File
@@ -23,110 +23,87 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// G4AdjointSimMessenger
//
/////////////////////////////////////////////////////////////////////////////////
// Class Name: G4AdjointSimMessenger.hh
// Author: L. Desorgher
// Organisation: SpaceIT GmbH
// Contract: ESA contract 21435/08/NL/AT
// Customer: ESA/ESTEC
/////////////////////////////////////////////////////////////////////////////////
// Class description:
//
// CHANGE HISTORY
// --------------
// ChangeHistory:
// -1st January 2007 creation by L. Desorgher
// -November-December 2009 Some cleaning and adaptation for the first Release
//in the
// Geant4 toolkit, L. Desorgher
// This class represents the Messenger that defines the G4UI macro commands
// allowing the user controlling an adjoint/reverse MC simulation. It calls
// methods of G4AdjointSimManager.
//
//
//-------------------------------------------------------------
// Documentation:
// This class represents the Messenger that defined the G4UI macro comands
//allowing
// the user contreol an adjoint/reverse MC simulation. It calls methods of
// G4AdjointSimManager List of commands
// -----------------
// 1)Start an adjoint simulation
// --------------------------------------------
// Command:
// -/adjoint/start_run nb: Start an adjoint simulation with a number of
//events
// given by nb. 2)Definition of the external source
// ---------------------------------------------------
// The external source represents the real external source of particles till
//which
// adjoint particles are tracked in the reverse tracking mode of the
// 1) Start an adjoint simulation
// ---------------------------------------------------
// Command:
// -/adjoint/start_run nb: Start an adjoint simulation with a number of
// events given by nb.
// 2) Definition of the external source
// ---------------------------------------------------
// The external source represents the real external source of particles till
// which adjoint particles are tracked in the reverse tracking mode of the
// simulation (see G4AdjointSimManager.hh and G4Application Developer guide for
// more infos). The user can define the source as the external surface of a
// sphere or of G4 volume of the geometry. He can also set the maximum energy of
// the source. If an adjoint particle get an energy higher than this maximum
// energy before reaching the external surface source it is killed without being
// registered. Commands:
// -/adjoint/DefineSphericalExtSource R X Y Z unit_length:
// The external source is set on a sphere with radius R and centered on
// position (X,Y,Z)
// more infos). The user can define the source as the external surface of a
// sphere or of G4 volume of the geometry. He can also set the maximum energy
// of the source. If an adjoint particle get an energy higher than this maximum
// energy before reaching the external surface source it is killed without
// being registered.
// Commands:
// -/adjoint/DefineSphericalExtSource R X Y Z unit_length
// The external source is set on a sphere with radius R and centered on
// position (X,Y,Z)
// -/adjoint/DefineSphericalExtSourceCenteredOnAVolume pvol_name R unit_length
// The external source is set on a sphere with radius R and with its center
// position located at the center of the physical volume specified by the
// name pvol_name.
// -/adjoint/DefineExtSourceOnExtSurfaceOfAVolume pvol_name
// The external surface is set as the external boundary of a the physical
// volume with name pvol_name.
// -/adjoint/SetExtSourceEmax Emax energy_unit
// Set the maximum energy of the external source.
//
// -/adjoint/DefineSphericalExtSourceCenteredOnAVolume phys_vol_name R
// unit_length The external source is set on a sphere with radius R and
// with its center position located at the center of the the physical
// volume specified by the name phys_vol_name.
// -/adjoint/DefineExtSourceOnExtSurfaceOfAVolume phys_vol_name
// The external surface is set as the external boundary of a the
//physical
// volume with name phys_vol_name
// -/adjoint/SetExtSourceEmax Emax energy_unit
// Set the maximum energy of the external source
//
//
// 3)Definition of the adjoint source
// ---------------------------------------------------
// The adjoint source represents the source from which adjoint primary
//particles are
// generated.(see G4AdjointSimManager.hh and G4Application Developer guide for
// more infos) The user can define the source as the external surface of a
// sphere or of G4 volume of the geometry. He set the minimum maximum energy of
// the source and define which type of adjoint primary particles should be
// considered. Commands:
// -/adjoint/DefineSphericalAdjSource R X Y Z unit_length:
// The adjoint source is set on a sphere with radius R and centered on
// position (X,Y,Z)
//
// -/adjoint/DefineSphericalAdjSourceCenteredOnAVolume phys_vol_name R
// unit_length The external source is set on a sphere with radius R and
// with its center position located at the center of the the physical
// volume specified by the name phys_vol_name.
// -/adjoint/DefineAdjSourceOnExtSurfaceOfAVolume phys_vol_name
// The external surface is set as the external boundary of a the
//physical
// volume with name phys_vol_name
//
// -/adjoint/SetAdjSourceEmin Emin energy_unit
// Set the minimum energy of the external source
//
// -/adjoint/SetAdjSourceEmax Emax energy_unit
// Set the maximum energy of the external source
//
// -/adjoint/ConsiderAsPrimary particle_name
// The type of particle specified by "particle_name" will be added in
// the list
// of primary adjoint particles. The list of candidates depends on the
// reverse physics
// processes considered in the simulation. At the most the potential
// candidates are (e-, gamma, proton , ion)
//
// -/adjoint/NeglectAsPrimary particle_name
// The type of particle specified by "particle_name" will be removed
// from the
// list of primary adjoint particles. The list of candidates depends
// 3) Definition of the adjoint source
// ---------------------------------------------------
// The adjoint source represents the source from which adjoint primary
// particles are generated (see G4AdjointSimManager.hh and G4Application
// Developer guide for more infos).
// The user can define the source as the external surface of a sphere or of
// G4 volume of the geometry. He sets the minimum maximum energy of the
// source and defines which type of adjoint primary particles should be
// considered.
// Commands:
// -/adjoint/DefineSphericalAdjSource R X Y Z unit_length
// The adjoint source is set on a sphere with radius R and centered on
// position (X,Y,Z)
// -/adjoint/DefineSphericalAdjSourceCenteredOnAVolume pvol_name R unit_length
// The external source is set on a sphere with radius R and with its center
// position located at the center of the physical volume specified by the
// name pvol_name.
// -/adjoint/DefineAdjSourceOnExtSurfaceOfAVolume pvol_name
// The external surface is set as the external boundary of a the
// physical volume with name pvol_name
// -/adjoint/SetAdjSourceEmin Emin energy_unit
// Set the minimum energy of the external source
// -/adjoint/SetAdjSourceEmax Emax energy_unit
// Set the maximum energy of the external source
// -/adjoint/ConsiderAsPrimary particle_name
// The type of particle specified by "particle_name" will be added in
// the list of primary adjoint particles. The list of candidates depends on the
// reverse physics processes considered in the simulation. At the most the potential
// candidates are (e-, gamma, proton, ion).
// -/adjoint/NeglectAsPrimary particle_name
// The type of particle specified by "particle_name" will be removed
// from the list of primary adjoint particles. The list of candidates depends
// on the reverse physics processes considered in the simulation. At the most
// the potential candidates are (e-, gamma, proton , ion)
//
//
// the potential candidates are (e-, gamma, proton, ion).
#ifndef G4AdjointSimMessenger_h
#define G4AdjointSimMessenger_h 1
// --------------------------------------------------------------------
// Class Name: G4AdjointSimMessenger
// Author: L. Desorgher, 2007-2009
// Organisation: SpaceIT GmbH
// Contract: ESA contract 21435/08/NL/AT
// Customer: ESA/ESTEC
// --------------------------------------------------------------------
#ifndef G4AdjointSimMessenger_hh
#define G4AdjointSimMessenger_hh 1
#include "G4UImessenger.hh"
#include "globals.hh"
@@ -140,58 +117,43 @@ class G4UIcmdWithABool;
class G4UIcmdWithADoubleAndUnit;
class G4UIcmdWithoutParameter;
class G4UIcmdWithADouble;
/*
#ifdef G4MULTITHREADED
class G4MTAdjointSimManager;
#endif
*/
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
// --------------------------------------------------------------------
class G4AdjointSimMessenger : public G4UImessenger
{
public:
G4AdjointSimMessenger(G4AdjointSimManager*);
/*
#ifdef G4MULTITHREADED
G4AdjointSimMessenger(G4MTAdjointSimManager* );
#endif
*/
public:
~G4AdjointSimMessenger();
G4AdjointSimMessenger(G4AdjointSimManager*);
~G4AdjointSimMessenger();
void SetNewValue(G4UIcommand*, G4String);
void SetNewValue(G4UIcommand*, G4String);
private:
G4AdjointSimManager* theAdjointRunManager;
/*
#ifdef G4MULTITHREADED
G4MTAdjointSimManager* theMTAdjointRunManager;
#endif
*/
private:
G4UIdirectory* AdjointSimDir;
G4UIcommand* beamOnCmd;
G4AdjointSimManager* theAdjointRunManager;
G4UIcommand* DefineSpherExtSourceCmd;
G4UIcommand* DefineSpherExtSourceCenteredOnAVolumeCmd;
G4UIcmdWithAString* DefineExtSourceOnAVolumeExtSurfaceCmd;
G4UIcmdWithADoubleAndUnit* setExtSourceEMaxCmd;
G4UIdirectory* AdjointSimDir = nullptr;
G4UIcommand* beamOnCmd = nullptr;
G4UIcommand* DefineSpherAdjSourceCmd;
G4UIcommand* DefineSpherAdjSourceCenteredOnAVolumeCmd;
G4UIcmdWithAString* DefineAdjSourceOnAVolumeExtSurfaceCmd;
G4UIcommand* DefineSpherExtSourceCmd = nullptr;
G4UIcommand* DefineSpherExtSourceCenteredOnAVolumeCmd = nullptr;
G4UIcmdWithAString* DefineExtSourceOnAVolumeExtSurfaceCmd = nullptr;
G4UIcmdWithADoubleAndUnit* setExtSourceEMaxCmd = nullptr;
G4UIcmdWithADoubleAndUnit* setAdjSourceEminCmd;
G4UIcmdWithADoubleAndUnit* setAdjSourceEmaxCmd;
G4UIcommand* DefineSpherAdjSourceCmd = nullptr;
G4UIcommand* DefineSpherAdjSourceCenteredOnAVolumeCmd = nullptr;
G4UIcmdWithAString* DefineAdjSourceOnAVolumeExtSurfaceCmd = nullptr;
G4UIcmdWithAString* ConsiderParticleAsPrimaryCmd;
G4UIcmdWithAString* NeglectParticleAsPrimaryCmd;
G4UIcmdWithADoubleAndUnit* setAdjSourceEminCmd = nullptr;
G4UIcmdWithADoubleAndUnit* setAdjSourceEmaxCmd = nullptr;
G4UIcmdWithAnInteger* setNbOfPrimaryFwdGammasPerEventCmd;
G4UIcmdWithAnInteger* setNbOfPrimaryAdjGammasPerEventCmd;
G4UIcmdWithAnInteger* setNbOfPrimaryAdjElectronsPerEventCmd;
G4UIcmdWithAString* ConsiderParticleAsPrimaryCmd = nullptr;
G4UIcmdWithAString* NeglectParticleAsPrimaryCmd = nullptr;
G4UIcmdWithAnInteger* setNbOfPrimaryFwdGammasPerEventCmd = nullptr;
G4UIcmdWithAnInteger* setNbOfPrimaryAdjGammasPerEventCmd = nullptr;
G4UIcmdWithAnInteger* setNbOfPrimaryAdjElectronsPerEventCmd = nullptr;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#endif