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
ECCE @ EIC Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
analysis
coresoftware
Doxygen_Assist
ecce-detectors
fun4all_eicdetectors
geant4
tree
geant4-10.6-release
config
environments
examples
source
analysis
digits_hits
error_propagation
event
externals
g3tog4
geometry
global
graphics_reps
intercoms
interfaces
materials
parameterisations
particles
persistency
physics_lists
processes
biasing
cuts
decay
electromagnetic
hadronic
management
include
src
G4ProcessAttribute.cc
G4ProcessManager.cc
G4ProcessManagerMessenger.cc
G4ProcessTable.cc
G4ProcessTableMessenger.cc
G4ProcessVector.cc
G4ProcTblElement.cc
G4VContinuousDiscreteProcess.cc
G4VContinuousProcess.cc
G4VDiscreteProcess.cc
G4VProcess.cc
G4VRestContinuousDiscreteProcess.cc
G4VRestContinuousProcess.cc
G4VRestDiscreteProcess.cc
G4VRestProcess.cc
G4WrapperProcess.cc
optical
parameterisation
scoring
solidstate
transportation
readout
run
track
tracking
visualization
macros
online_distribution
tutorials
doxygen_mainpage.h
File Members
External Links
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
G4ProcTblElement.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file G4ProcTblElement.cc
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
//
27
//
28
//
29
// ------------------------------------------------------------
30
// GEANT 4 class header file
31
//
32
// History: first implementation, based on object model of
33
// 4th Aug 1998, H.Kurashige
34
// ------------------------------------------------------------
35
// Use STL vector instead of RW vector 1. Mar 00 H.Kurashige
36
//
37
#include "
G4ProcTblElement.hh
"
38
39
40
// default constructor ////////////////////////
41
G4ProcTblElement::G4ProcTblElement
()
42
:pProcess(nullptr),pProcMgrVector(nullptr)
43
{
44
}
45
47
G4ProcTblElement::G4ProcTblElement
(
G4VProcess
* aProcess):
48
pProcess(aProcess)
49
{
50
pProcMgrVector
=
new
G4ProcMgrVector
();
51
}
52
53
// copy constructor //////////////////////////
54
G4ProcTblElement::G4ProcTblElement
(
const
G4ProcTblElement
&
right
)
55
:pProcess(nullptr),pProcMgrVector(nullptr)
56
{
57
*
this
=
right
;
58
}
59
60
61
// destructor ////////////////////////
62
G4ProcTblElement::~G4ProcTblElement
()
63
{
64
if
(
pProcMgrVector
!=
nullptr
) {
65
pProcMgrVector
->clear();
66
delete
pProcMgrVector
;
67
}
68
}
69
70
72
G4ProcTblElement
&
G4ProcTblElement::operator=
(
const
G4ProcTblElement
&
right
)
73
{
74
if
(
this
!= &right) {
75
pProcess
= right.
pProcess
;
76
// copy all contents in pProcMgrVector
77
if
(
pProcMgrVector
!=
nullptr
) {
78
pProcMgrVector
->clear();
79
delete
pProcMgrVector
;
80
}
81
pProcMgrVector
=
new
G4ProcMgrVector
();
82
G4ProcMgrVector::iterator i;
83
for
(i = right.
pProcMgrVector
->begin(); i!= right.
pProcMgrVector
->end(); ++i) {
84
pProcMgrVector
->push_back(*i);
85
}
86
}
87
return
*
this
;
88
}
89
90
92
G4bool
G4ProcTblElement::operator==
(
const
G4ProcTblElement
&
right
)
const
93
{
94
return
(
this
== &right);
95
}
96
97
99
G4bool
G4ProcTblElement::operator!=
(
const
G4ProcTblElement
&
right
)
const
100
{
101
return
(
this
!= &right);
102
}
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
geant4
tree
geant4-10.6-release
source
processes
management
src
G4ProcTblElement.cc
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:25:52
using
1.8.2 with
ECCE GitHub integration