ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4DeexParametersMessenger.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file G4DeexParametersMessenger.cc
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 //
29 // GEANT4 Class file
30 //
31 // File name: G4DeexParametersMessenger
32 //
33 // Author: Vladimir Ivanchenko
34 //
35 // Creation date: 17-10-2017
36 //
37 // Modifications:
38 //
39 // -------------------------------------------------------------------
40 //
41 
42 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
43 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
44 
46 #include "G4UIdirectory.hh"
47 #include "G4UIcommand.hh"
48 #include "G4UIparameter.hh"
49 #include "G4UIcmdWithABool.hh"
50 #include "G4UIcmdWithAnInteger.hh"
51 #include "G4UIcmdWithADouble.hh"
53 #include "G4UIcmdWithAString.hh"
54 #include "G4UImanager.hh"
55 #include "G4DeexPrecoParameters.hh"
56 
57 #include <sstream>
58 
59 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
60 
62  : theParameters(ptr)
63 {
64  fDirectory = new G4UIdirectory("/process/deex/");
65  fDirectory->SetGuidance("Commands for nuclear de-excitation module.");
66 
67  readCmd = new G4UIcmdWithABool("/process/deex/readICdata",this);
68  readCmd->SetGuidance("Enable/disable download IC data per atomic shell.");
69  readCmd->SetParameterName("readIC",true);
70  readCmd->SetDefaultValue(false);
72 
73  icCmd = new G4UIcmdWithABool("/process/deex/setIC",this);
74  icCmd->SetGuidance("Enable/disable simulation of e- internal conversion.");
75  icCmd->SetParameterName("IC",true);
76  icCmd->SetDefaultValue(true);
78 
79  corgCmd = new G4UIcmdWithABool("/process/deex/correlatedGamma",this);
80  corgCmd->SetGuidance("Enable/disable simulation of correlated gamma emission.");
81  corgCmd->SetParameterName("corrG",true);
82  corgCmd->SetDefaultValue(false);
84 
85  maxjCmd = new G4UIcmdWithAnInteger("/process/deex/maxTwoJ",this);
86  maxjCmd->SetGuidance("Set max value for 2J for simulation of correlated gamma emission.");
87  maxjCmd->SetParameterName("max2J",true);
90 
91  upCmd = new G4UIcmdWithAnInteger("/process/deex/uploadZ",this);
92  upCmd->SetGuidance("Set max value for Z to be uploaded before 1st event");
93  upCmd->SetParameterName("uploadZ",true);
96 
97  verbCmd = new G4UIcmdWithAnInteger("/process/deex/verbose",this);
98  verbCmd->SetGuidance("Set verbosity level.");
99  verbCmd->SetParameterName("verb",true);
102 }
103 
104 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
105 
107 {
108  delete fDirectory;
109 
110  delete readCmd;
111  delete icCmd;
112  delete corgCmd;
113  delete maxjCmd;
114  delete upCmd;
115  delete verbCmd;
116 }
117 
118 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
119 
121  G4String newValue)
122 {
123  if (command == readCmd) {
125  } else if (command == icCmd) {
127  } else if (command == corgCmd) {
129  } else if (command == maxjCmd) {
131  } else if (command == upCmd) {
133  } else if (command == verbCmd) {
135  }
136 }
137 
138 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....