Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
G4EmQMessenger.cc
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// $Id$
27//
28//---------------------------------------------------------------------------
29//
30//
31// ClassName: G4EmQMessenger
32//
33// Author: 16-Oct-2012 A. Ribon
34// Copied from G4EmMessenger and renamed
35//
36//----------------------------------------------------------------------------
37//
38
39#include "G4EmQMessenger.hh"
40#include "G4EmQExtraPhysics.hh"
42
43
45{
46 G4HadronicDeprecate("G4EmQMessenger");
47
48 theB = ab;
49 aDir1 = new G4UIdirectory("/physics_engine/");
50 aDir1->SetGuidance("commands related to the physics simulation engine.");
51
52 // general stuff.
53 aDir2 = new G4UIdirectory("/physics_engine/tailor/");
54 aDir2->SetGuidance("tailoring the processes");
55
56 // command for synchrotron radiation.
57 theSynch = new G4UIcmdWithAString("/physics_engine/tailor/SyncRadiation",this);
58 theSynch->SetGuidance("Switching on/off synchrotron radiation.");
59 theSynch->SetParameterName("status",false);
60 theSynch->SetCandidates("on off");
61 theSynch->SetDefaultValue("off");
63
64 // command for gamma nuclear physics.
65 theGN = new G4UIcmdWithAString("/physics_engine/tailor/GammaNuclear",this);
66 theGN->SetGuidance("Switching on gamma nuclear physics.");
67 theGN->SetParameterName("status",false);
68 theGN->SetCandidates("on off");
69 theGN->SetDefaultValue("on");
71
72 // command for muon nuclear physics.
73 theMUN = new G4UIcmdWithAString("/physics_engine/tailor/MuonNuclear",this);
74 theMUN->SetGuidance("Switching on muon nuclear physics.");
75 theMUN->SetParameterName("status",false);
76 theMUN->SetCandidates("on off");
77 theMUN->SetDefaultValue("off");
79}
80
82{
83 delete theSynch;
84 delete theGN;
85 delete theMUN;
86 delete aDir1;
87 delete aDir2;
88}
89
91{
92 if(aComm==theSynch) theB->Synch(aS);
93 if(aComm==theGN) theB->GammaNuclear(aS);
94 if(aComm==theMUN) theB->MuonNuclear(aS);
95}
@ G4State_Idle
@ G4State_PreInit
#define G4HadronicDeprecate(name)
void Synch(G4String &aState)
void GammaNuclear(G4String &aState)
void MuonNuclear(G4String &aState)
void SetNewValue(G4UIcommand *aComm, G4String aS)
virtual ~G4EmQMessenger()
G4EmQMessenger(G4EmQExtraPhysics *af)
void SetCandidates(const char *candidateList)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetDefaultValue(const char *defVal)
void SetGuidance(const char *aGuidance)
Definition: G4UIcommand.hh:156
void AvailableForStates(G4ApplicationState s1)
Definition: G4UIcommand.cc:219