Geant4 VMC
Version 6.8
Toggle main menu visibility
Loading...
Searching...
No Matches
source
physics_list
src
TG4StackPopperMessenger.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
15
#include "
TG4StackPopperMessenger.h
"
16
#include "
TG4StackPopperPhysics.h
"
17
18
#include <G4UIcmdWithAString.hh>
19
#include <G4UIdirectory.hh>
20
21
//______________________________________________________________________________
22
TG4StackPopperMessenger::TG4StackPopperMessenger
(
23
TG4StackPopperPhysics
* stackPopperPhysics)
24
:
G4UImessenger
(),
25
fStackPopperPhysics
(stackPopperPhysics),
26
fSetSelectionCmd
(0)
27
{
29
30
fSetSelectionCmd
=
31
new
G4UIcmdWithAString(
"/mcPhysics/setStackPopperSelection"
,
this
);
32
fSetSelectionCmd
->SetGuidance(
"Selects particles for stack popper process"
);
33
fSetSelectionCmd
->SetParameterName(
"StackPopperSelection"
,
false
);
34
fSetSelectionCmd
->AvailableForStates(G4State_PreInit);
35
}
36
37
//______________________________________________________________________________
38
TG4StackPopperMessenger::~TG4StackPopperMessenger
()
39
{
41
42
delete
fSetSelectionCmd
;
43
}
44
45
//
46
// public methods
47
//
48
49
//______________________________________________________________________________
50
void
TG4StackPopperMessenger::SetNewValue
(
51
G4UIcommand
* command, G4String newValue)
52
{
54
55
if
(command ==
fSetSelectionCmd
) {
56
G4cout <<
"TG4StackPopperMessenger::SetNewValue "
<< newValue << G4endl;
57
fStackPopperPhysics
->SetSelection(newValue);
58
}
59
}
TG4StackPopperMessenger.h
Definition of the TG4StackPopperMessenger class.
TG4StackPopperPhysics.h
Definition of the TG4StackPopperPhysics class.
G4UIcommand
G4UImessenger
TG4StackPopperMessenger::fStackPopperPhysics
TG4StackPopperPhysics * fStackPopperPhysics
associated class
Definition
TG4StackPopperMessenger.h:55
TG4StackPopperMessenger::fSetSelectionCmd
G4UIcmdWithAString * fSetSelectionCmd
setStackPopperSelection command
Definition
TG4StackPopperMessenger.h:58
TG4StackPopperMessenger::~TG4StackPopperMessenger
virtual ~TG4StackPopperMessenger()
Definition
TG4StackPopperMessenger.cxx:38
TG4StackPopperMessenger::SetNewValue
virtual void SetNewValue(G4UIcommand *command, G4String string)
Definition
TG4StackPopperMessenger.cxx:50
TG4StackPopperMessenger::TG4StackPopperMessenger
TG4StackPopperMessenger()
Not implemented.
TG4StackPopperPhysics
The builder for stack popper process.
Definition
TG4StackPopperPhysics.h:31
Generated on
for Geant4 VMC by
1.17.0