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
PHG4Particlev1.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PHG4Particlev1.h
1
// Tell emacs that this is a C++ source
2
// -*- C++ -*-.
3
#ifndef G4MAIN_PHG4PARTICLEV1_H
4
#define G4MAIN_PHG4PARTICLEV1_H
5
6
#include "
PHG4Particle.h
"
7
8
#include <iostream>
9
#include <string>
10
11
class
PHG4Particlev1
:
public
PHG4Particle
12
{
13
public
:
14
PHG4Particlev1
();
15
PHG4Particlev1
(
const
std::string
&
name
,
const
int
pid
,
const
double
px,
const
double
py,
const
double
pz);
16
PHG4Particlev1
(
const
PHG4Particle
*
in
);
17
18
~PHG4Particlev1
()
override
{}
19
20
void
identify
(std::ostream &
os
= std::cout)
const override
;
21
22
int
get_pid
()
const override
{
return
fpid
; }
23
std::string
get_name
()
const override
{
return
fname
; }
24
double
get_px
()
const override
{
return
fpx
; }
25
double
get_py
()
const override
{
return
fpy
; }
26
double
get_pz
()
const override
{
return
fpz
; }
27
28
int
get_barcode
()
const override
{
return
barcode
; }
29
30
void
set_name
(
const
std::string
&name)
override
{
fname
=
name
; }
31
void
set_pid
(
const
int
i
)
override
{
fpid
=
i
; }
32
void
set_px
(
const
double
x
)
override
{
fpx
=
x
; }
33
void
set_py
(
const
double
x
)
override
{
fpy
=
x
; }
34
void
set_pz
(
const
double
x
)
override
{
fpz
=
x
; }
35
36
void
set_barcode
(
const
int
bcd)
override
{
barcode
= bcd; }
37
38
39
protected
:
40
std::string
fname
;
41
int
fpid
;
42
double
fpx
,
fpy
,
fpz
;
43
int
barcode
;
44
45
ClassDefOverride(
PHG4Particlev1
, 1)
46
};
47
48
#endif
coresoftware
blob
master
simulation
g4simulation
g4main
PHG4Particlev1.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:15
using
1.8.2 with
sPHENIX GitHub integration