Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4Particlev1.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHG4Particlev1.cc
1 #include "PHG4Particlev1.h"
2 
3 using namespace std;
4 
6  : fname("")
7  , fpid(0)
8  , fpx(0)
9  , fpy(0)
10  , fpz(0)
11  , barcode(-1)
12 {
13 }
14 
15 PHG4Particlev1::PHG4Particlev1(const string &name, const int pid, const double px, const double py, const double pz)
16  : fname(name)
17  , fpid(pid)
18  , fpx(px)
19  , fpy(py)
20  , fpz(pz)
21  , barcode(-1)
22 {
23 }
24 
26  : fname(in->get_name())
27  , fpid(in->get_pid())
28  , fpx(in->get_px())
29  , fpy(in->get_py())
30  , fpz(in->get_pz())
31  , barcode(in->get_barcode())
32 {
33 }
34 
35 void PHG4Particlev1::identify(ostream &os) const
36 {
37  if (fname.size() > 0)
38  {
39  os << "PHG4Particlev1 name: " << fname;
40  }
41  else
42  {
43  os << "PHG4Particlev1 name: missing ";
44  }
45  os << ", pid: " << fpid
46  << ", px: " << fpx
47  << ", py: " << fpy
48  << ", pz: " << fpz
49  << ", barcode: " << barcode << endl;
50  return;
51 }