Geant4 VMC
Version 6.8
Toggle main menu visibility
Loading...
Searching...
No Matches
source
physics_list
src
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
15
#include "
TG4GflashFastSimulationMessenger.h
"
16
#include "
TG4GflashFastSimulation.h
"
17
18
#include <G4UIcmdWithAString.hh>
19
#include <G4UIdirectory.hh>
20
21
//______________________________________________________________________________
22
TG4GflashFastSimulationMessenger::TG4GflashFastSimulationMessenger
(
23
TG4GflashFastSimulation
* gflashFastSimulation)
24
:
G4UImessenger
(),
25
fGflashFastSimulation
(gflashFastSimulation),
26
fSetGflashMaterialCmd
(0)
27
{
29
30
fSetGflashMaterialCmd
=
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
//______________________________________________________________________________
39
TG4GflashFastSimulationMessenger::~TG4GflashFastSimulationMessenger
()
40
{
42
43
delete
fSetGflashMaterialCmd
;
44
}
45
46
//
47
// public methods
48
//
49
50
//______________________________________________________________________________
51
void
TG4GflashFastSimulationMessenger::SetNewValue
(
52
G4UIcommand
* command, G4String newValue)
53
{
55
56
if
(command ==
fSetGflashMaterialCmd
) {
57
fGflashFastSimulation
->SetMaterialName(newValue);
58
}
59
}
TG4GflashFastSimulationMessenger.h
Definition of the TG4GflashFastSimulationMessenger class.
TG4GflashFastSimulation.h
Definition of the TG4GflashFastSimulation class.
G4UIcommand
G4UImessenger
TG4GflashFastSimulationMessenger::fSetGflashMaterialCmd
G4UIcmdWithAString * fSetGflashMaterialCmd
setExtDecayerSelection command
Definition
TG4GflashFastSimulationMessenger.h:61
TG4GflashFastSimulationMessenger::SetNewValue
virtual void SetNewValue(G4UIcommand *command, G4String string)
Definition
TG4GflashFastSimulationMessenger.cxx:51
TG4GflashFastSimulationMessenger::~TG4GflashFastSimulationMessenger
virtual ~TG4GflashFastSimulationMessenger()
Definition
TG4GflashFastSimulationMessenger.cxx:39
TG4GflashFastSimulationMessenger::fGflashFastSimulation
TG4GflashFastSimulation * fGflashFastSimulation
associated class
Definition
TG4GflashFastSimulationMessenger.h:58
TG4GflashFastSimulationMessenger::TG4GflashFastSimulationMessenger
TG4GflashFastSimulationMessenger()
Not implemented.
TG4GflashFastSimulation
Special class for definition of Gflash fast simulation model.
Definition
TG4GflashFastSimulation.h:30
Generated on
for Geant4 VMC by
1.17.0