Geant4 VMC
Version 6.8
Toggle main menu visibility
Loading...
Searching...
No Matches
source
physics
include
TG4SpecialControlsV2.h
Go to the documentation of this file.
1
#ifndef TG4_SPECIAL_CONTROLS_V2_H
2
#define TG4_SPECIAL_CONTROLS_V2_H
3
4
//------------------------------------------------
5
// The Geant4 Virtual Monte Carlo package
6
// Copyright (C) 2007 - 2014 Ivana Hrivnacova
7
// All rights reserved.
8
//
9
// For the licensing terms see geant4_vmc/LICENSE.
10
// Contact: root-vmc@cern.ch
11
//-------------------------------------------------
12
17
18
#include "
TG4G3Control.h
"
19
#include "
TG4Globals.h
"
20
#include "
TG4Verbose.h
"
21
22
// clang-format off
23
#include <G4VProcess.hh>
24
#include <G4ProcessVector.hh>
25
#include <globals.hh>
26
// clang-format on
27
28
#include <vector>
29
42
43
class
TG4SpecialControlsV2
:
public
TG4Verbose
44
{
46
enum
Switch
47
{
48
kSwitch
,
49
kReswitch
,
50
kUnswitch
51
};
52
53
public
:
54
TG4SpecialControlsV2
();
55
virtual
~TG4SpecialControlsV2
();
56
57
// methods
58
void
StartTrack
(
const
G4Track* track);
59
void
ApplyControls
();
60
void
RestoreProcessActivations
();
61
62
// get methods
63
Bool_t
IsApplicable
()
const
;
64
65
private
:
67
TG4SpecialControlsV2
(
const
TG4SpecialControlsV2
& right);
69
TG4SpecialControlsV2
&
operator=
(
const
TG4SpecialControlsV2
& right);
70
71
// methods
72
void
SetSwitch
();
73
void
Reset
();
74
75
// data members
76
78
G4bool
fIsApplicable
;
79
81
const
G4Track*
fkTrack
;
82
84
Switch
fSwitch
;
85
87
G4ProcessVector
fSwitchedProcesses
;
88
90
TG4boolVector
fSwitchedControls
;
91
93
TG4boolVector
fProcessActivations
;
94
};
95
96
inline
Bool_t
TG4SpecialControlsV2::IsApplicable
()
const
97
{
99
return
fIsApplicable
;
100
}
101
102
#endif
// TG4_SPECIAL_CONTROLS_V2_H
TG4G3Control.h
Definition of the enumerations TG4G3Control, TG4G3ControlValue.
TG4Globals.h
Definition of the TG4Globals class and basic container types.
TG4Verbose.h
Definition of the TG4Verbose class.
TG4SpecialControlsV2::TG4SpecialControlsV2
TG4SpecialControlsV2(const TG4SpecialControlsV2 &right)
Not implemented.
TG4SpecialControlsV2::Switch
Switch
The action to be performed in the current step.
Definition
TG4SpecialControlsV2.h:47
TG4SpecialControlsV2::kUnswitch
@ kUnswitch
do not switch the process activation
Definition
TG4SpecialControlsV2.h:50
TG4SpecialControlsV2::kReswitch
@ kReswitch
switch the process activation back
Definition
TG4SpecialControlsV2.h:49
TG4SpecialControlsV2::kSwitch
@ kSwitch
switch the process activation
Definition
TG4SpecialControlsV2.h:48
TG4SpecialControlsV2::fIsApplicable
G4bool fIsApplicable
Applicability for the current track.
Definition
TG4SpecialControlsV2.h:78
TG4SpecialControlsV2::IsApplicable
Bool_t IsApplicable() const
Definition
TG4SpecialControlsV2.h:96
TG4SpecialControlsV2::fSwitch
Switch fSwitch
The action to be performed in the current step.
Definition
TG4SpecialControlsV2.h:84
TG4SpecialControlsV2::TG4SpecialControlsV2
TG4SpecialControlsV2()
Definition
TG4SpecialControlsV2.cxx:26
TG4SpecialControlsV2::operator=
TG4SpecialControlsV2 & operator=(const TG4SpecialControlsV2 &right)
Not implemented.
TG4SpecialControlsV2::fSwitchedControls
TG4boolVector fSwitchedControls
Vector for storing the current values of the processes activation.
Definition
TG4SpecialControlsV2.h:90
TG4SpecialControlsV2::Reset
void Reset()
Definition
TG4SpecialControlsV2.cxx:92
TG4SpecialControlsV2::fSwitchedProcesses
G4ProcessVector fSwitchedProcesses
Vector of the processes the activation of which is changed by this process.
Definition
TG4SpecialControlsV2.h:87
TG4SpecialControlsV2::ApplyControls
void ApplyControls()
Definition
TG4SpecialControlsV2.cxx:142
TG4SpecialControlsV2::fProcessActivations
TG4boolVector fProcessActivations
vector of the origin process activations
Definition
TG4SpecialControlsV2.h:93
TG4SpecialControlsV2::fkTrack
const G4Track * fkTrack
The current track.
Definition
TG4SpecialControlsV2.h:81
TG4SpecialControlsV2::SetSwitch
void SetSwitch()
Definition
TG4SpecialControlsV2.cxx:49
TG4SpecialControlsV2::StartTrack
void StartTrack(const G4Track *track)
Definition
TG4SpecialControlsV2.cxx:109
TG4SpecialControlsV2::RestoreProcessActivations
void RestoreProcessActivations()
Definition
TG4SpecialControlsV2.cxx:220
TG4SpecialControlsV2::~TG4SpecialControlsV2
virtual ~TG4SpecialControlsV2()
Definition
TG4SpecialControlsV2.cxx:39
TG4Verbose::TG4Verbose
TG4Verbose(const G4String &cmdName)
Definition
TG4Verbose.cxx:24
TG4boolVector
std::vector< G4bool > TG4boolVector
Definition
TG4Globals.h:37
Generated on
for Geant4 VMC by
1.17.0