Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
PHG4Particlev2.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PHG4Particlev2.h
1
// Tell emacs that this is a C++ source
2
// -*- C++ -*-.
3
#ifndef G4MAIN_PHG4PARTICLEV2_H
4
#define G4MAIN_PHG4PARTICLEV2_H
5
6
#include "
PHG4Particlev1.h
"
7
8
#include <iostream>
9
#include <string>
10
11
class
PHG4Particle
;
12
13
class
PHG4Particlev2
:
public
PHG4Particlev1
14
{
15
public
:
16
PHG4Particlev2
();
17
PHG4Particlev2
(
const
std::string
&
name
,
const
int
pid
,
const
double
px,
const
double
py,
const
double
pz);
18
PHG4Particlev2
(
const
PHG4Particle
*
in
);
19
20
~PHG4Particlev2
()
override
{}
21
22
void
identify
(std::ostream &
os
= std::cout)
const override
;
23
24
int
get_track_id
()
const override
{
return
trkid
; }
25
int
get_vtx_id
()
const override
{
return
vtxid
; }
26
int
get_parent_id
()
const override
{
return
parentid
; }
27
int
get_primary_id
()
const override
{
return
primaryid
; }
28
double
get_e
()
const override
{
return
fe
; }
29
30
void
set_track_id
(
const
int
i
)
override
{
trkid
=
i
; }
31
void
set_vtx_id
(
const
int
i
)
override
{
vtxid
=
i
; }
32
void
set_parent_id
(
const
int
i
)
override
{
parentid
=
i
; }
33
void
set_primary_id
(
const
int
i
)
override
{
primaryid
=
i
; }
34
void
set_e
(
const
double
e
)
override
{
fe
=
e
; }
35
36
protected
:
37
int
trkid
;
38
int
vtxid
;
39
int
parentid
;
40
int
primaryid
;
41
double
fe
;
42
43
ClassDefOverride(
PHG4Particlev2
, 2)
44
};
45
46
#endif
coresoftware
blob
master
simulation
g4simulation
g4main
PHG4Particlev2.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:15
using
1.8.2 with
sPHENIX GitHub integration