Geant4 VMC Version 6.6
Loading...
Searching...
No Matches
TG4ExtDecayerMessenger.cxx
Go to the documentation of this file.
1//------------------------------------------------
2// The Geant4 Virtual Monte Carlo package
3// Copyright (C) 2007 - 2014 Ivana Hrivnacova
4// All rights reserved.
5//
6// For the licensing terms see geant4_vmc/LICENSE.
7// Contact: root-vmc@cern.ch
8//-------------------------------------------------
9
14
17
18#include <G4UIcmdWithABool.hh>
19#include <G4UIcmdWithAString.hh>
20#include <G4UIdirectory.hh>
21
22//______________________________________________________________________________
24 TG4ExtDecayerPhysics* extDecayerPhysics)
25 : G4UImessenger(),
26 fExtDecayerPhysics(extDecayerPhysics),
27 fSetSelectionCmd(0),
28 fSkipNeutrinoCmd(0)
29{
31
33 new G4UIcmdWithAString("/mcPhysics/setExtDecayerSelection", this);
34 G4String guidance = "Select particles for which the external decayer will ";
35 guidance = guidance + "have priority over using Geant4 decay table";
36 fSetSelectionCmd->SetGuidance(guidance);
37 fSetSelectionCmd->SetParameterName("ExtDecayerSelection", false);
38 fSetSelectionCmd->AvailableForStates(G4State_PreInit);
39
41 new G4UIcmdWithABool("/mcPhysics/skipExtDecayerNeutrino", this);
42 guidance = "Skip importing neutrinos (default is false)";
43 fSkipNeutrinoCmd->SetGuidance(guidance);
44 fSkipNeutrinoCmd->SetParameterName("ExtDecayerSkipNeutrino", false);
45 fSkipNeutrinoCmd->AvailableForStates(G4State_PreInit);
46}
47
48//______________________________________________________________________________
56
57//
58// public methods
59//
60
61//______________________________________________________________________________
63 G4UIcommand* command, G4String newValue)
64{
66
67 if (command == fSetSelectionCmd) {
69 }
70 else if (command == fSkipNeutrinoCmd) {
72 fSkipNeutrinoCmd->GetNewBoolValue(newValue));
73 }
74}
Definition of the TG4ExtDecayerMessenger class.
Definition of the TG4ExtDecayerPhysics class.
TG4ExtDecayerMessenger()
Not implemented.
TG4ExtDecayerPhysics * fExtDecayerPhysics
associated class
G4UIcmdWithAString * fSetSelectionCmd
setExtDecayerSelection command
G4UIcmdWithABool * fSkipNeutrinoCmd
skipExtDecayerNeutrino command
virtual void SetNewValue(G4UIcommand *command, G4String string)
The builder for external decayer.
void SetSelection(const G4String &selection)
void SetSkipNeutrino(G4bool skipNeutrino)