Class Reference for E1039 Core & Analysis Software
PHG4Particlev2.cc
Go to the documentation of this file.
1
#include "
PHG4Particlev2.h
"
2
3
ClassImp
(
PHG4Particlev2
)
4
5
using namespace
std;
6
7
PHG4Particlev2::PHG4Particlev2
():
8
PHG4Particlev1
(),
9
trkid(0),
10
vtxid(0),
11
parentid(0),
12
primaryid(0xFFFFFFFF),
13
fe(0.0)
//,
14
// barcode(-1)
15
{}
16
17
PHG4Particlev2::PHG4Particlev2
(
const
string
&name,
const
int
pid,
const
double
px,
const
double
py,
const
double
pz):
18
PHG4Particlev1
(name, pid, px, py, pz),
19
trkid(0),
20
vtxid(0),
21
parentid(0),
22
primaryid(0xFFFFFFFF),
23
fe(0.0)
//,
24
// barcode(-1)
25
{}
26
27
PHG4Particlev2::PHG4Particlev2
(
const
PHG4Particle
*in):
28
PHG4Particlev1
(in),
29
trkid(0),
30
vtxid(0),
31
parentid(0),
32
primaryid(0xFFFFFFFF),
33
fe(0.0)
//,
34
//barcode(-1)
35
{}
36
37
void
38
PHG4Particlev2::identify
(std::ostream& os)
const
39
{
40
if
(
fname
.size() > 0) {
41
os <<
"PHG4Particlev2 name: "
<<
fname
<<
", "
;
42
}
else
{
43
os <<
"PHG4Particlev2 name: missing, "
;
44
}
45
46
os <<
"track id: "
<<
trkid
47
<<
", vtxid: "
<<
vtxid
48
<<
", parent id: "
<<
parentid
49
<<
", primary id: "
<<
primaryid
50
<<
", pid: "
<<
fpid
51
<<
", px: "
<<
fpx
52
<<
", py: "
<<
fpy
53
<<
", pz: "
<<
fpz
54
<<
", e: "
<<
fe
<< endl;
55
return
;
56
}
57
ClassImp
ClassImp(PHG4Particlev2) using namespace std
PHG4Particlev2.h
PHG4Particle
Definition:
PHG4Particle.h:8
PHG4Particlev1
Definition:
PHG4Particlev1.h:7
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::fpz
double fpz
Definition:
PHG4Particlev1.h:36
PHG4Particlev1::fpid
int fpid
Definition:
PHG4Particlev1.h:35
PHG4Particlev2
Definition:
PHG4Particlev2.h:7
PHG4Particlev2::identify
void identify(std::ostream &os=std::cout) const
Definition:
PHG4Particlev2.cc:38
PHG4Particlev2::PHG4Particlev2
PHG4Particlev2()
Definition:
PHG4Particlev2.cc:7
PHG4Particlev2::vtxid
int vtxid
Definition:
PHG4Particlev2.h:37
PHG4Particlev2::trkid
int trkid
Definition:
PHG4Particlev2.h:36
PHG4Particlev2::parentid
int parentid
Definition:
PHG4Particlev2.h:38
PHG4Particlev2::fe
double fe
Definition:
PHG4Particlev2.h:40
PHG4Particlev2::primaryid
int primaryid
Definition:
PHG4Particlev2.h:39
e1039-core
simulation
g4main
PHG4Particlev2.cc
Built by
Haiwang Yu
. updated:
Thu Jan 30 2025 10:15:16
using
1.9.1 with
SeaQuest GitHub integration