Class Reference for E1039 Core & Analysis Software
PHG4Particlev2.h
Go to the documentation of this file.
1 #ifndef PHG4PARTICLEV2_H__
2 #define PHG4PARTICLEV2_H__
3 
4 #include "PHG4Particlev1.h"
5 
7 {
8  public:
10  PHG4Particlev2(const std::string &name, const int pid, const double px, const double py, const double pz);
11  PHG4Particlev2(const PHG4Particle *in);
12 
13  virtual ~PHG4Particlev2() {}
14 
15  int get_track_id() const {return trkid;}
16  int get_vtx_id() const {return vtxid;}
17  int get_parent_id() const {return parentid;}
18  int get_primary_id() const {return primaryid;}
19  double get_e() const {return fe;}
20 
21  // this function was implimented in PHG4Particlev1
22 // int get_barcode() const {return barcode;}
23 
24  void set_track_id(const int i) {trkid = i;}
25  void set_vtx_id(const int i) {vtxid = i;}
26  void set_parent_id(const int i) {parentid = i;}
27  void set_primary_id(const int i) {primaryid = i;}
28  void set_e(const double e) {fe = e;}
29 
30  // this function was implimented in PHG4Particlev1
31 // void set_barcode(const int bcd) {barcode = bcd;}
32 
33  void identify(std::ostream& os = std::cout) const;
34 
35  protected:
36  int trkid;
37  int vtxid;
38  int parentid;
39  int primaryid;
40  double fe;
41  // this variable was implimented in PHG4Particlev1
42 // int barcode;
43 
44  ClassDef(PHG4Particlev2,2)
45 };
46 
47 
48 #endif
void identify(std::ostream &os=std::cout) const
void set_primary_id(const int i)
void set_parent_id(const int i)
int get_primary_id() const
int get_track_id() const
int get_vtx_id() const
virtual ~PHG4Particlev2()
double get_e() const
PHG4Particlev2(const std::string &name, const int pid, const double px, const double py, const double pz)
void set_e(const double e)
void set_track_id(const int i)
void set_vtx_id(const int i)
int get_parent_id() const