Analysis Software
Documentation for sPHENIX simulation software
 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 
14 {
15  public:
17  PHG4Particlev2(const std::string &name, const int pid, const double px, const double py, const double pz);
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