Geant4 VMC Version 6.6
Loading...
Searching...
No Matches
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
17
18#include <G4UIcmdWithAString.hh>
19#include <G4UIdirectory.hh>
20
21//______________________________________________________________________________
23 TG4StackPopperPhysics* stackPopperPhysics)
24 : G4UImessenger(),
25 fStackPopperPhysics(stackPopperPhysics),
26 fSetSelectionCmd(0)
27{
29
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//______________________________________________________________________________
44
45//
46// public methods
47//
48
49//______________________________________________________________________________
51 G4UIcommand* command, G4String newValue)
52{
54
55 if (command == fSetSelectionCmd) {
56 G4cout << "TG4StackPopperMessenger::SetNewValue " << newValue << G4endl;
58 }
59}
Definition of the TG4StackPopperMessenger class.
Definition of the TG4StackPopperPhysics class.
TG4StackPopperPhysics * fStackPopperPhysics
associated class
G4UIcmdWithAString * fSetSelectionCmd
setStackPopperSelection command
virtual void SetNewValue(G4UIcommand *command, G4String string)
TG4StackPopperMessenger()
Not implemented.
The builder for stack popper process.
void SetSelection(const G4String &selection)