Geant4 VMC
Version 6.8
Toggle main menu visibility
Loading...
Searching...
No Matches
source
global
include
TG4G3ControlVector.h
Go to the documentation of this file.
1
#ifndef TG4_G3_CONTROL_VECTOR_H
2
#define TG4_G3_CONTROL_VECTOR_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
21
#include <vector>
22
23
class
TG4G3CutVector
;
24
25
class
G4VProcess
;
26
31
32
class
TG4G3ControlVector
33
{
34
public
:
36
typedef
std::vector<TG4G3ControlValue>
TG4ControlValueVector
;
37
38
public
:
39
TG4G3ControlVector
();
40
TG4G3ControlVector
(
const
TG4G3ControlVector
& right);
41
~TG4G3ControlVector
();
42
43
// operators
44
TG4G3ControlVector
&
operator=
(
const
TG4G3ControlVector
& right);
45
TG4G3ControlValue
operator[]
(G4int index)
const
;
46
47
// static methods
48
static
TG4G3Control
GetControl
(
const
G4String& controlName);
49
static
const
G4String&
GetControlName
(
TG4G3Control
control);
50
static
TG4G3ControlValue
GetControlValue
(G4int value,
TG4G3Control
control);
51
static
TG4G3ControlValue
GetControlValue
(
52
G4double value,
TG4G3Control
control);
53
54
// set methods
55
G4bool
SetControl
(
56
TG4G3Control
control,
TG4G3ControlValue
controlValue,
TG4G3CutVector
& cuts);
57
void
SetG3Defaults
();
58
G4bool
Update
(
const
TG4G3ControlVector
& vector);
59
60
// methods
61
G4String
Format
()
const
;
62
void
Print
()
const
;
63
64
// get methods
65
TG4G3ControlValue
GetControlValue
(
G4VProcess
* process)
const
;
66
TG4G3ControlValue
GetControlValue
(
TG4G3Control
control)
const
;
67
G4bool
IsControl
()
const
;
68
69
private
:
70
// static methods
71
static
void
FillControlNameVector
();
72
73
//
74
// static data members
75
77
static
TG4StringVector
fgControlNameVector
;
78
79
//
80
// data members
81
83
TG4ControlValueVector
fControlVector
;
84
};
85
86
#endif
// TG4_G3_CONTROL_VECTOR_H
TG4G3Control.h
Definition of the enumerations TG4G3Control, TG4G3ControlValue.
TG4Globals.h
Definition of the TG4Globals class and basic container types.
G4VProcess
TG4G3ControlVector::operator=
TG4G3ControlVector & operator=(const TG4G3ControlVector &right)
Definition
TG4G3ControlVector.cxx:67
TG4G3ControlVector::GetControlName
static const G4String & GetControlName(TG4G3Control control)
Definition
TG4G3ControlVector.cxx:170
TG4G3ControlVector::TG4ControlValueVector
std::vector< TG4G3ControlValue > TG4ControlValueVector
The vector of TG4G3ControlValue.
Definition
TG4G3ControlVector.h:36
TG4G3ControlVector::SetG3Defaults
void SetG3Defaults()
Definition
TG4G3ControlVector.cxx:251
TG4G3ControlVector::operator[]
TG4G3ControlValue operator[](G4int index) const
Definition
TG4G3ControlVector.cxx:83
TG4G3ControlVector::~TG4G3ControlVector
~TG4G3ControlVector()
Definition
TG4G3ControlVector.cxx:57
TG4G3ControlVector::GetControl
static TG4G3Control GetControl(const G4String &controlName)
Definition
TG4G3ControlVector.cxx:129
TG4G3ControlVector::Update
G4bool Update(const TG4G3ControlVector &vector)
Definition
TG4G3ControlVector.cxx:260
TG4G3ControlVector::Print
void Print() const
Definition
TG4G3ControlVector.cxx:318
TG4G3ControlVector::TG4G3ControlVector
TG4G3ControlVector()
Definition
TG4G3ControlVector.cxx:34
TG4G3ControlVector::fControlVector
TG4ControlValueVector fControlVector
vector of control process values
Definition
TG4G3ControlVector.h:83
TG4G3ControlVector::SetControl
G4bool SetControl(TG4G3Control control, TG4G3ControlValue controlValue, TG4G3CutVector &cuts)
Definition
TG4G3ControlVector.cxx:224
TG4G3ControlVector::Format
G4String Format() const
Definition
TG4G3ControlVector.cxx:297
TG4G3ControlVector::IsControl
G4bool IsControl() const
Definition
TG4G3ControlVector.cxx:347
TG4G3ControlVector::fgControlNameVector
static TG4StringVector fgControlNameVector
vector of control parameters names
Definition
TG4G3ControlVector.h:77
TG4G3ControlVector::FillControlNameVector
static void FillControlNameVector()
Definition
TG4G3ControlVector.cxx:101
TG4G3ControlVector::GetControlValue
static TG4G3ControlValue GetControlValue(G4int value, TG4G3Control control)
Definition
TG4G3ControlVector.cxx:182
TG4G3CutVector
Vector of kinetic energy cut values with convenient set/get methods.
Definition
TG4G3CutVector.h:32
TG4StringVector
std::vector< G4String > TG4StringVector
Definition
TG4Globals.h:49
TG4G3ControlValue
TG4G3ControlValue
Enumeration for G3 processes control values.
Definition
TG4G3Control.h:176
TG4G3Control
TG4G3Control
Enumeration for G3 types of physics processes controls.
Definition
TG4G3Control.h:29
Generated on
for Geant4 VMC by
1.17.0