GEMC  2.3
Geant4 Monte-Carlo Framework
PhysicsListMessenger.cc
Go to the documentation of this file.
1 // gemc headers
2 #include "PhysicsListMessenger.h"
3 
4 
5 // geant4 headers
6 #include "G4UIcmdWithADoubleAndUnit.hh"
7 #include "G4UIcmdWithAString.hh"
8 #include "G4UIcmdWithoutParameter.hh"
9 #include "G4UImanager.hh"
10 
11 
13 {
14  fGammaCutCmd = new G4UIcmdWithADoubleAndUnit("/testhadr/CutGamma",this);
15  fGammaCutCmd->SetGuidance("Set gamma cut.");
16  fGammaCutCmd->SetParameterName("Gcut",false);
17  fGammaCutCmd->SetUnitCategory("Length");
18  fGammaCutCmd->SetRange("Gcut>=0.0");
19  fGammaCutCmd->AvailableForStates(G4State_PreInit,G4State_Idle);
20 
21  fElectCutCmd = new G4UIcmdWithADoubleAndUnit("/testhadr/CutEl",this);
22  fElectCutCmd->SetGuidance("Set electron cut.");
23  fElectCutCmd->SetParameterName("Ecut",false);
24  fElectCutCmd->SetUnitCategory("Length");
25  fElectCutCmd->SetRange("Ecut>=0.0");
26  fElectCutCmd->AvailableForStates(G4State_PreInit,G4State_Idle);
27 
28  fPosCutCmd = new G4UIcmdWithADoubleAndUnit("/testhadr/CutPos",this);
29  fPosCutCmd->SetGuidance("Set positron cut.");
30  fPosCutCmd->SetParameterName("Pcut",false);
31  fPosCutCmd->SetUnitCategory("Length");
32  fPosCutCmd->SetRange("Pcut>=0.0");
33  fPosCutCmd->AvailableForStates(G4State_PreInit,G4State_Idle);
34 
35  fCutCmd = new G4UIcmdWithADoubleAndUnit("/testhadr/CutProt",this);
36  fCutCmd->SetGuidance("Set proton cut.");
37  fCutCmd->SetParameterName("ProtCut",false);
38  fCutCmd->SetUnitCategory("Length");
39  fCutCmd->SetRange("ProtCut>=0.0");
40  fCutCmd->AvailableForStates(G4State_PreInit,G4State_Idle);
41 
42  fAllCutCmd = new G4UIcmdWithADoubleAndUnit("/testhadr/CutsAll",this);
43  fAllCutCmd->SetGuidance("Set cut for all.");
44  fAllCutCmd->SetParameterName("cut",false);
45  fAllCutCmd->SetUnitCategory("Length");
46  fAllCutCmd->SetRange("cut>=0.0");
47  fAllCutCmd->AvailableForStates(G4State_PreInit,G4State_Idle);
48 
49  fPListCmd = new G4UIcmdWithAString("/testhadr/Physics",this);
50  fPListCmd->SetGuidance("Add modula physics list.");
51  fPListCmd->SetParameterName("PList",false);
52  fPListCmd->AvailableForStates(G4State_PreInit);
53 
54  fListCmd = new G4UIcmdWithoutParameter("/testhadr/ListPhysics",this);
55  fListCmd->SetGuidance("Available Physics Lists");
56  fListCmd->AvailableForStates(G4State_PreInit,G4State_Idle);
57 }
58 
60 {
61  delete fGammaCutCmd;
62  delete fElectCutCmd;
63  delete fPosCutCmd;
64  delete fCutCmd;
65  delete fAllCutCmd;
66  delete fPListCmd;
67  delete fListCmd;
68 }
69 
70 void PhysicsListMessenger::SetNewValue(G4UIcommand* command, G4String newValue)
71 {
72 }
73 
PhysicsListMessenger(PhysicsList *p=0)
void SetNewValue(G4UIcommand *, G4String)