ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4Particlev3.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHG4Particlev3.cc
1 #include "PHG4Particlev3.h"
2 #include "PHG4Particle.h"
3 
4 #include <Geant4/G4SystemOfUnits.hh>
5 
6 #include <cmath>
7 #include <string>
8 
9 using namespace std;
10 
12  : PHG4Particlev2()
13  , A(0)
14  , Z(0)
15  , ioncharge(NAN)
16  , excitEnergy(NAN)
17 {
18 }
19 
21  : PHG4Particlev2(in)
22  , A(in->get_A())
23  , Z(in->get_Z())
24  , ioncharge(in->get_IonCharge())
25  , excitEnergy(in->get_ExcitEnergy())
26 {
27 }
28 
30 {
31  ioncharge = c * eplus;
32 }
33 
34 void PHG4Particlev3::identify(std::ostream& os) const
35 {
36  if (fname.size() > 0)
37  {
38  os << "PHG4Particlev3 name: " << fname << ", ";
39  }
40  else
41  {
42  os << "PHG4Particlev3 name: missing, ";
43  }
44 
45  os << "track id: " << trkid
46  << ", vtxid: " << vtxid
47  << ", parent id: " << parentid
48  << ", primary id: " << primaryid
49  << ", pid: " << fpid
50  << ", px: " << fpx
51  << ", py: " << fpy
52  << ", pz: " << fpz
53  << ", e: " << fe
54  << ", A: " << A
55  << ", Z: " << Z
56  << ", Eex: " << excitEnergy
57  << ", ioncharge: " << ioncharge
58  << endl;
59  return;
60 }