Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4AdjointSimMessenger.hh
Go to the documentation of this file.
1//
2// ********************************************************************
3// * License and Disclaimer *
4// * *
5// * The Geant4 software is copyright of the Copyright Holders of *
6// * the Geant4 Collaboration. It is provided under the terms and *
7// * conditions of the Geant4 Software License, included in the file *
8// * LICENSE and available at http://cern.ch/geant4/license . These *
9// * include a list of copyright holders. *
10// * *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work make any representation or warranty, express or implied, *
14// * regarding this software system or assume any liability for its *
15// * use. Please see the license in the file LICENSE and URL above *
16// * for the full disclaimer and the limitation of liability. *
17// * *
18// * This code implementation is the result of the scientific and *
19// * technical work of the GEANT4 collaboration. *
20// * By using, copying, modifying or distributing the software (or *
21// * any work based on the software) you agree to acknowledge its *
22// * use in resulting scientific publications, and indicate your *
23// * acceptance of all terms of the Geant4 Software license. *
24// ********************************************************************
25//
26//
27/////////////////////////////////////////////////////////////////////////////////
28// Class Name: G4AdjointSimMessenger.hh
29// Author: L. Desorgher
30// Organisation: SpaceIT GmbH
31// Contract: ESA contract 21435/08/NL/AT
32// Customer: ESA/ESTEC
33/////////////////////////////////////////////////////////////////////////////////
34//
35// CHANGE HISTORY
36// --------------
37// ChangeHistory:
38// -1st January 2007 creation by L. Desorgher
39// -November-December 2009 Some cleaning and adaptation for the first Release
40//in the
41// Geant4 toolkit, L. Desorgher
42//
43//
44//-------------------------------------------------------------
45// Documentation:
46// This class represents the Messenger that defined the G4UI macro comands
47//allowing
48// the user contreol an adjoint/reverse MC simulation. It calls methods of
49// G4AdjointSimManager List of commands
50// -----------------
51// 1)Start an adjoint simulation
52// --------------------------------------------
53// Command:
54// -/adjoint/start_run nb: Start an adjoint simulation with a number of
55//events
56// given by nb. 2)Definition of the external source
57// ---------------------------------------------------
58// The external source represents the real external source of particles till
59//which
60// adjoint particles are tracked in the reverse tracking mode of the
61// simulation (see G4AdjointSimManager.hh and G4Application Developer guide for
62// more infos). The user can define the source as the external surface of a
63// sphere or of G4 volume of the geometry. He can also set the maximum energy of
64// the source. If an adjoint particle get an energy higher than this maximum
65// energy before reaching the external surface source it is killed without being
66// registered. Commands:
67// -/adjoint/DefineSphericalExtSource R X Y Z unit_length:
68// The external source is set on a sphere with radius R and centered on
69// position (X,Y,Z)
70//
71// -/adjoint/DefineSphericalExtSourceCenteredOnAVolume phys_vol_name R
72// unit_length The external source is set on a sphere with radius R and
73// with its center position located at the center of the the physical
74// volume specified by the name phys_vol_name.
75// -/adjoint/DefineExtSourceOnExtSurfaceOfAVolume phys_vol_name
76// The external surface is set as the external boundary of a the
77//physical
78// volume with name phys_vol_name
79// -/adjoint/SetExtSourceEmax Emax energy_unit
80// Set the maximum energy of the external source
81//
82//
83// 3)Definition of the adjoint source
84// ---------------------------------------------------
85// The adjoint source represents the source from which adjoint primary
86//particles are
87// generated.(see G4AdjointSimManager.hh and G4Application Developer guide for
88// more infos) The user can define the source as the external surface of a
89// sphere or of G4 volume of the geometry. He set the minimum maximum energy of
90// the source and define which type of adjoint primary particles should be
91// considered. Commands:
92// -/adjoint/DefineSphericalAdjSource R X Y Z unit_length:
93// The adjoint source is set on a sphere with radius R and centered on
94// position (X,Y,Z)
95//
96// -/adjoint/DefineSphericalAdjSourceCenteredOnAVolume phys_vol_name R
97// unit_length The external source is set on a sphere with radius R and
98// with its center position located at the center of the the physical
99// volume specified by the name phys_vol_name.
100// -/adjoint/DefineAdjSourceOnExtSurfaceOfAVolume phys_vol_name
101// The external surface is set as the external boundary of a the
102//physical
103// volume with name phys_vol_name
104//
105// -/adjoint/SetAdjSourceEmin Emin energy_unit
106// Set the minimum energy of the external source
107//
108// -/adjoint/SetAdjSourceEmax Emax energy_unit
109// Set the maximum energy of the external source
110//
111// -/adjoint/ConsiderAsPrimary particle_name
112// The type of particle specified by "particle_name" will be added in
113// the list
114// of primary adjoint particles. The list of candidates depends on the
115// reverse physics
116// processes considered in the simulation. At the most the potential
117// candidates are (e-, gamma, proton , ion)
118//
119// -/adjoint/NeglectAsPrimary particle_name
120// The type of particle specified by "particle_name" will be removed
121// from the
122// list of primary adjoint particles. The list of candidates depends
123// on the reverse physics processes considered in the simulation. At the most
124// the potential candidates are (e-, gamma, proton , ion)
125//
126//
127
128#ifndef G4AdjointSimMessenger_h
129#define G4AdjointSimMessenger_h 1
130
131#include "G4UImessenger.hh"
132#include "globals.hh"
133
135class G4UIdirectory;
139class G4UIcmdWithABool;
143/*
144#ifdef G4MULTITHREADED
145class G4MTAdjointSimManager;
146#endif
147*/
148
149//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
150
152{
153 public:
155 /*
156 #ifdef G4MULTITHREADED
157 G4AdjointSimMessenger(G4MTAdjointSimManager* );
158 #endif
159 */
160
162
164
165 private:
166 G4AdjointSimManager* theAdjointRunManager;
167 /*
168 #ifdef G4MULTITHREADED
169 G4MTAdjointSimManager* theMTAdjointRunManager;
170 #endif
171 */
172
173 G4UIdirectory* AdjointSimDir;
174 G4UIcommand* beamOnCmd;
175
176 G4UIcommand* DefineSpherExtSourceCmd;
177 G4UIcommand* DefineSpherExtSourceCenteredOnAVolumeCmd;
178 G4UIcmdWithAString* DefineExtSourceOnAVolumeExtSurfaceCmd;
179 G4UIcmdWithADoubleAndUnit* setExtSourceEMaxCmd;
180
181 G4UIcommand* DefineSpherAdjSourceCmd;
182 G4UIcommand* DefineSpherAdjSourceCenteredOnAVolumeCmd;
183 G4UIcmdWithAString* DefineAdjSourceOnAVolumeExtSurfaceCmd;
184
185 G4UIcmdWithADoubleAndUnit* setAdjSourceEminCmd;
186 G4UIcmdWithADoubleAndUnit* setAdjSourceEmaxCmd;
187
188 G4UIcmdWithAString* ConsiderParticleAsPrimaryCmd;
189 G4UIcmdWithAString* NeglectParticleAsPrimaryCmd;
190
191 G4UIcmdWithAnInteger* setNbOfPrimaryFwdGammasPerEventCmd;
192 G4UIcmdWithAnInteger* setNbOfPrimaryAdjGammasPerEventCmd;
193 G4UIcmdWithAnInteger* setNbOfPrimaryAdjElectronsPerEventCmd;
194};
195//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
196
197#endif
void SetNewValue(G4UIcommand *, G4String)