Geant4 VMC Version 6.7
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
TG4GflashFastSimulationMessenger.cxx
Go to the documentation of this file.
1//------------------------------------------------
2// The Geant4 Virtual Monte Carlo package
3// Copyright (C) 2007 - 2015 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 TG4GflashFastSimulation* gflashFastSimulation)
24 : G4UImessenger(),
25 fGflashFastSimulation(gflashFastSimulation),
27{
29
31 new G4UIcmdWithAString("/mcPhysics/setGflashMaterial", this);
32 fSetGflashMaterialCmd->SetGuidance(
33 "Set material for shower parameterisation");
34 fSetGflashMaterialCmd->SetParameterName("ExtDecayerSelection", false);
35 fSetGflashMaterialCmd->AvailableForStates(G4State_PreInit);
36}
37
38//______________________________________________________________________________
45
46//
47// public methods
48//
49
50//______________________________________________________________________________
52 G4UIcommand* command, G4String newValue)
53{
55
56 if (command == fSetGflashMaterialCmd) {
57 fGflashFastSimulation->SetMaterialName(newValue);
58 }
59}
Definition of the TG4GflashFastSimulationMessenger class.
Definition of the TG4GflashFastSimulation class.
G4UIcmdWithAString * fSetGflashMaterialCmd
setExtDecayerSelection command
virtual void SetNewValue(G4UIcommand *command, G4String string)
TG4GflashFastSimulation * fGflashFastSimulation
associated class
TG4GflashFastSimulationMessenger()
Not implemented.
Special class for definition of Gflash fast simulation model.