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
PHG4Particlev1.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PHG4Particlev1.cc
1
#include "
PHG4Particlev1.h
"
2
3
using namespace
std;
4
5
PHG4Particlev1::PHG4Particlev1
()
6
:
fname
(
""
)
7
, fpid(0)
8
, fpx(0)
9
, fpy(0)
10
, fpz(0)
11
, barcode(-1)
12
{
13
}
14
15
PHG4Particlev1::PHG4Particlev1
(
const
string
&
name
,
const
int
pid
,
const
double
px,
const
double
py,
const
double
pz)
16
:
fname
(name)
17
, fpid(pid)
18
, fpx(px)
19
, fpy(py)
20
, fpz(pz)
21
, barcode(-1)
22
{
23
}
24
25
PHG4Particlev1::PHG4Particlev1
(
const
PHG4Particle
*
in
)
26
:
fname
(in->get_name())
27
, fpid(in->get_pid())
28
, fpx(in->get_px())
29
, fpy(in->get_py())
30
, fpz(in->get_pz())
31
, barcode(in->get_barcode())
32
{
33
}
34
35
void
PHG4Particlev1::identify
(ostream &os)
const
36
{
37
if
(
fname
.size() > 0)
38
{
39
os <<
"PHG4Particlev1 name: "
<<
fname
;
40
}
41
else
42
{
43
os <<
"PHG4Particlev1 name: missing "
;
44
}
45
os <<
", pid: "
<<
fpid
46
<<
", px: "
<<
fpx
47
<<
", py: "
<<
fpy
48
<<
", pz: "
<<
fpz
49
<<
", barcode: "
<<
barcode
<< endl;
50
return
;
51
}
coresoftware
blob
master
simulation
g4simulation
g4main
PHG4Particlev1.cc
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:44
using
1.8.2 with
ECCE GitHub integration