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
PHG4UserPrimaryParticleInformation.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file PHG4UserPrimaryParticleInformation.h
1
// Tell emacs that this is a C++ source
2
// -*- C++ -*-.
3
#ifndef G4MAIN_PHG4USERPRIMARYPARTICLEINFORMATION_H
4
#define G4MAIN_PHG4USERPRIMARYPARTICLEINFORMATION_H
5
6
#include <Geant4/G4VUserPrimaryParticleInformation.hh>
7
#include <iostream>
8
9
class
PHG4UserPrimaryParticleInformation
:
public
G4VUserPrimaryParticleInformation
10
{
11
public
:
12
PHG4UserPrimaryParticleInformation
(
const
int
emb) :
13
embed
(emb),
14
usertrackid
(0),
15
uservtxid
(0),
16
barcode
(-1) {}
17
18
void
Print
()
const override
19
{
20
std::cout <<
"Embedding = "
<<
embed
<< std::endl;
21
std::cout <<
"User Track ID = "
<<
usertrackid
<< std::endl;
22
std::cout <<
"User Vertex ID = "
<<
uservtxid
<< std::endl;
23
}
24
int
get_embed
()
const
{
return
embed
;}
25
26
void
set_user_track_id
(
int
val) {
usertrackid
= val;}
27
int
get_user_track_id
()
const
{
return
usertrackid
;}
28
29
void
set_user_vtx_id
(
int
val) {
uservtxid
= val;}
30
int
get_user_vtx_id
()
const
{
return
uservtxid
;}
31
32
void
set_user_barcode
(
int
bcd) {
barcode
= bcd;}
33
int
get_user_barcode
()
const
{
return
barcode
;}
34
35
private
:
36
int
embed
;
37
int
usertrackid
;
38
int
uservtxid
;
39
int
barcode
;
40
};
41
42
#endif
coresoftware
blob
master
simulation
g4simulation
g4main
PHG4UserPrimaryParticleInformation.h
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:15
using
1.8.2 with
sPHENIX GitHub integration