Geant4 VMC Version 6.6
Loading...
Searching...
No Matches
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
23class TG4G3CutVector;
24
25class G4VProcess;
26
31
33{
34 public:
36 typedef std::vector<TG4G3ControlValue> TG4ControlValueVector;
37
38 public:
42
43 // operators
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);
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
67 G4bool IsControl() const;
68
69 private:
70 // static methods
71 static void FillControlNameVector();
72
73 //
74 // static data members
75
78
79 //
80 // data members
81
84};
85
86#endif // TG4_G3_CONTROL_VECTOR_H
Definition of the enumerations TG4G3Control, TG4G3ControlValue.
Definition of the TG4Globals class and basic container types.
Vector of control process values with convenient set/get methods.
TG4G3ControlVector & operator=(const TG4G3ControlVector &right)
static const G4String & GetControlName(TG4G3Control control)
TG4G3ControlValue operator[](G4int index) const
static TG4G3Control GetControl(const G4String &controlName)
G4bool Update(const TG4G3ControlVector &vector)
TG4ControlValueVector fControlVector
vector of control process values
G4bool SetControl(TG4G3Control control, TG4G3ControlValue controlValue, TG4G3CutVector &cuts)
std::vector< TG4G3ControlValue > TG4ControlValueVector
The vector of TG4G3ControlValue.
static TG4StringVector fgControlNameVector
vector of control parameters names
static void FillControlNameVector()
static TG4G3ControlValue GetControlValue(G4int value, TG4G3Control control)
Vector of kinetic energy cut values with convenient set/get methods.
std::vector< G4String > TG4StringVector
Definition TG4Globals.h:49
TG4G3ControlValue
Enumeration for G3 processes control values.
TG4G3Control
Enumeration for G3 types of physics processes controls.