31#include <G4UImessenger.hh>
36#include <XmlVGM/AGDDExporter.h>
37#include <XmlVGM/GDMLExporter.h>
42 const TString& physicsList,
const TString& specialProcess,
43 Bool_t specialStacking, Bool_t mtApplication)
59 if (userGeometry !=
"geomVMCtoGeant4" && userGeometry !=
"geomVMCtoRoot" &&
60 userGeometry !=
"geomRoot" && userGeometry !=
"geomRootToGeant4" &&
61 userGeometry !=
"geomVMC+RootToGeant4" && userGeometry !=
"geomGeant4") {
64 "User geometry " + userGeometry +
" not recognized." +
66 "geomVMCtoGeant4 geomVMCtoRoot geomRoot geomRootToGeant4 "
67 "geomVMC+RootToGeant4 geomGeant4");
80 "Physics list selection " + physicsList +
" not recognized." +
82 "EMonly, EMonly+Extra, Hadron_EM, Hadron_EM+Extra" +
92 " The Extra selections are cumulative, while Hadron selections are "
96 }
while (token !=
"");
98 G4String g4SpecialProcess(specialProcess.Data());
100 if (G4StrUtil::contains(g4SpecialProcess,
"specialControls")) {
103 g4SpecialProcess.erase(g4SpecialProcess.find(
"specialControls"), 15);
104 if (g4SpecialProcess.find(
"++") != std::string::npos)
105 g4SpecialProcess.erase(g4SpecialProcess.find(
"++"), 1);
109 if (G4StrUtil::contains(g4SpecialProcess,
"specialCuts")) {
116 "Special process selection " + specialProcess +
" is not recognized." +
160 G4String emSelection;
161 G4String hadronSelection;
162 G4String extraSelection;
164 G4bool isValid =
true;
173 hadronSelection = token;
182 extraSelection += token;
183 extraSelection +=
" ";
195 "The EMonly selections cannot be combined with Hadron selections." +
199 if (emSelection !=
"") {
200 G4cout <<
"Adding EMPhysicsList " << emSelection << G4endl;
204 if (hadronSelection !=
"") {
205 G4cout <<
"Adding HadronPhysicsList " << hadronSelection << G4endl;
209 if (extraSelection !=
"") {
210 G4cout <<
"Adding ExtraPhysicsList " << extraSelection << G4endl;
314 std::map<TString, Double_t>::iterator it =
fParameters.find(name);
331 <<
"### Special cuts old activated: production cuts will be set by ranges."
344 userGeometry = userGeometry.Remove(0, 4);
Definition of the TG4ComposedPhysicsList class.
Definition of the TG4DetConstruction class.
Definition of the TG4EmPhysicsList class.
Definition of the TG4EventAction class.
Definition of the TG4Globals class and basic container types.
Definition of the TG4HadronPhysicsList class.
Definition of the TG4PrimaryGeneratorAction class.
Definition of the TG4RunAction class.
Definition of the TG4RunConfiguration class.
Definition of the TG4SpecialPhysicsList class.
Definition of the TG4SpecialStackingAction class.
Definition of the TG4SteppingAction class.
Definition of the TG4TrackingAction class.
Definition of the TG4VGMMessenger class.
Definition of the TG4VUserRegionConstruction class.
The Geant4 VMC physics list builder.
void AddPhysicsList(G4VUserPhysicsList *physicsList)
Detector construction for building geometry using TVirtualMCApplication.
The standard EM physics list.
static G4bool IsAvailableSelection(const G4String &selection)
static G4String AvailableSelections()
Actions at the beginning and the end of event.
static G4String GetToken(Int_t i, const TString &s)
static void Exception(const TString &className, const TString &methodName, const TString &text)
The hadron physics list helper class.
static G4String AvailableHadronSelections()
static G4String AvailableEMSelections()
static G4bool IsAvailableSelection(const G4String &selection)
Primary generator action defined via TVirtualMCStack and TVirtualMCApplication.
Actions at the beginning and the end of run.
std::map< TString, Double_t > fParameters
virtual G4VUserPhysicsList * CreatePhysicsList()
TG4RunConfiguration()
Not implemented.
Bool_t IsSpecialCutsOld() const
virtual ~TG4RunConfiguration()
TString fPhysicsListSelection
physics list selection
Bool_t IsSpecialControls() const
virtual TG4SteppingAction * CreateSteppingAction()
virtual G4UserStackingAction * CreateStackingAction()
Bool_t IsSpecialCuts() const
virtual TG4VUserFastSimulation * CreateUserFastSimulation()
Bool_t fSpecialStacking
option for special stacking
virtual G4VUserDetectorConstruction * CreateDetectorConstruction()
G4UImessenger * fAGDDMessenger
XML messenger.
Bool_t fMTApplication
option for MT mode if available
virtual TG4VUserRegionConstruction * CreateUserRegionConstruction()
Bool_t IsSpecialStacking() const
virtual G4UserEventAction * CreateEventAction()
virtual TG4TrackingAction * CreateTrackingAction()
Bool_t fSpecialCuts
option for special cuts
Bool_t fSpecialCutsOld
option for special cuts old
virtual G4VUserPrimaryGeneratorAction * CreatePrimaryGenerator()
TString GetUserGeometry() const
TString fUserGeometry
way of building geometry
Bool_t IsMTApplication() const
Bool_t fSpecialControls
option for special controls
Bool_t fUseOfG4Scoring
option to activate G4 commmand-line scoring
TString fSpecialProcessSelection
special process selection
void SetMTApplication(Bool_t mtApplication)
virtual TG4VUserPostDetConstruction * CreateUserPostDetConstruction()
virtual G4UserRunAction * CreateRunAction()
G4UImessenger * fGDMLMessenger
XML messenger.
void SetParameter(const TString &name, Double_t value)
The Geant4 VMC special physics list helper class.
static G4String AvailableSelections()
static G4bool IsAvailableSelection(const G4String &selection)
Defines a special stacking mechanism.
Actions at the beginnig and at the end of track.
Messenger class that defines commands for VGM XML Exporter.
The abstract base class which is used to build fast simulation models.
The abstract base class for user defined class to customize geometry.
The abstract base class for user defined regions.