Class Reference for E1039 Core & Analysis Software
PHG4Particlev1.cc
Go to the documentation of this file.
1
#include "
PHG4Particlev1.h
"
2
3
ClassImp
(
PHG4Particlev1
)
4
5
using namespace
std;
6
7
PHG4Particlev1::PHG4Particlev1
():
8
fname(
""
),
9
fpid(0),
10
fpx(0),
11
fpy(0),
12
fpz(0),
13
barcode(-1)
14
{}
15
16
PHG4Particlev1::PHG4Particlev1
(
const
string
&name,
const
int
pid,
const
double
px,
const
double
py,
const
double
pz):
17
fname(name),
18
fpid(pid),
19
fpx(px),
20
fpy(py),
21
fpz(pz),
22
barcode(-1)
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
void
35
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
}
ClassImp
ClassImp(PHG4Particlev1) using namespace std
PHG4Particlev1.h
PHG4Particle
Definition:
PHG4Particle.h:8
PHG4Particlev1
Definition:
PHG4Particlev1.h:7
PHG4Particlev1::barcode
int barcode
Definition:
PHG4Particlev1.h:37
PHG4Particlev1::fpx
double fpx
Definition:
PHG4Particlev1.h:36
PHG4Particlev1::fname
std::string fname
Definition:
PHG4Particlev1.h:34
PHG4Particlev1::fpy
double fpy
Definition:
PHG4Particlev1.h:36
PHG4Particlev1::PHG4Particlev1
PHG4Particlev1()
Definition:
PHG4Particlev1.cc:7
PHG4Particlev1::fpz
double fpz
Definition:
PHG4Particlev1.h:36
PHG4Particlev1::identify
void identify(std::ostream &os=std::cout) const
Definition:
PHG4Particlev1.cc:35
PHG4Particlev1::fpid
int fpid
Definition:
PHG4Particlev1.h:35
e1039-core
simulation
g4main
PHG4Particlev1.cc
Built by
Haiwang Yu
. updated:
Thu Jan 30 2025 10:15:16
using
1.9.1 with
SeaQuest GitHub integration