ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
G4ProcessVector.hh
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file G4ProcessVector.hh
1
//
2
// ********************************************************************
3
// * License and Disclaimer *
4
// * *
5
// * The Geant4 software is copyright of the Copyright Holders of *
6
// * the Geant4 Collaboration. It is provided under the terms and *
7
// * conditions of the Geant4 Software License, included in the file *
8
// * LICENSE and available at http://cern.ch/geant4/license . These *
9
// * include a list of copyright holders. *
10
// * *
11
// * Neither the authors of this software system, nor their employing *
12
// * institutes,nor the agencies providing financial support for this *
13
// * work make any representation or warranty, express or implied, *
14
// * regarding this software system or assume any liability for its *
15
// * use. Please see the license in the file LICENSE and URL above *
16
// * for the full disclaimer and the limitation of liability. *
17
// * *
18
// * This code implementation is the result of the scientific and *
19
// * technical work of the GEANT4 collaboration. *
20
// * By using, copying, modifying or distributing the software (or *
21
// * any work based on the software) you agree to acknowledge its *
22
// * use in resulting scientific publications, and indicate your *
23
// * acceptance of all terms of the Geant4 Software license. *
24
// ********************************************************************
25
//
26
// G4ProcessVector
27
//
28
//
29
// Class Description
30
//
31
// This class is a container for pointers to physics process objects.
32
33
// --------------------------------------------------------------------
34
#ifndef G4ProcessVector_hh
35
#define G4ProcessVector_hh 1
36
37
#include "
globals.hh
"
38
#include "
G4ios.hh
"
39
#include <vector>
40
41
class
G4VProcess
;
42
43
class
G4ProcessVector
44
{
45
public
:
46
47
// Constructors
48
G4ProcessVector
();
49
explicit
G4ProcessVector
(
size_t
);
50
G4ProcessVector
(
const
G4ProcessVector
&);
51
52
// Destructor.
53
virtual
~G4ProcessVector
();
54
55
// assignment operator
56
G4ProcessVector
&
operator=
(
const
G4ProcessVector
&
right
);
57
58
// equality operator
59
G4bool
operator==
(
const
G4ProcessVector
&right)
const
;
60
61
public
:
// With Description
62
63
// Returns the number of items
64
size_t
entries
()
const
;
65
size_t
length
()
const
;
66
size_t
size
()
const
;
67
68
// Returns the position of the element
69
size_t
index
(
G4VProcess
* aProcess)
const
;
70
71
// Returns "true" if the element exists
72
G4bool
contains
(
G4VProcess
* aProcess)
const
;
73
74
// Insert an element
75
G4bool
insert
(
G4VProcess
* aProcess);
76
77
// Insert an element at i-th position
78
G4bool
insertAt
(
G4int
i,
G4VProcess
* aProcess);
79
80
// Remove and returns the i-th element
81
G4VProcess
*
removeAt
(
G4int
i);
82
83
// Remove and returns the last element
84
G4VProcess
*
removeLast
();
85
86
// Clear the collection by removing all items
87
void
clear
();
88
89
// returns const reference to the i-th item
90
G4VProcess
*
const
&
operator[]
(
G4int
i)
const
;
91
G4VProcess
*
const
&
operator()
(
G4int
i)
const
;
92
93
// returns reference to the i-th item
94
G4VProcess
* &
operator[]
(
G4int
i);
95
G4VProcess
* &
operator()
(
G4int
i);
96
97
protected
:
98
99
typedef
std::vector<G4VProcess*>
G4ProcVector
;
100
101
G4ProcVector
*
pProcVector
;
102
};
103
104
#include "G4ProcessVector.icc"
105
106
#endif
geant4
tree
geant4-10.6-release
source
processes
management
include
G4ProcessVector.hh
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:25:52
using
1.8.2 with
ECCE GitHub integration