Class Reference for E1039 Core & Analysis Software
PHG4Particle.h
Go to the documentation of this file.
1 #ifndef __PHG4PARTICLE_H__
2 #define __PHG4PARTICLE_H__
3 
4 #include <phool/PHObject.h>
5 #include <cmath>
6 
7 class PHG4Particle: public PHObject
8 {
9  public:
10 
12  virtual ~PHG4Particle() {}
13 
14  virtual int get_pid() const {return 0;}
15  virtual std::string get_name() const {return "NONE";}
16  virtual double get_px() const {return NAN;}
17  virtual double get_py() const {return NAN;}
18  virtual double get_pz() const {return NAN;}
19  virtual double get_e() const {return NAN;}
20 
21  virtual int get_track_id() const {return -9999;}
22  virtual int get_vtx_id() const {return -9999;}
23  virtual int get_parent_id() const {return -9999;}
24  virtual int get_primary_id() const {return 0xFFFFFFFF;}
25 
26  virtual int get_barcode() const {return 0xFFFFFFFF;}
27 
28  virtual void set_track_id(const int i) {return;}
29  virtual void set_vtx_id(const int i) {return;}
30  virtual void set_parent_id(const int i) {return;}
31  virtual void set_primary_id(const int i) {return;}
32  virtual void set_name(const std::string &name) {return;}
33  virtual void set_pid(const int i) {return;}
34  virtual void set_px(const double x) {return;}
35  virtual void set_py(const double x) {return;}
36  virtual void set_pz(const double x) {return;}
37  virtual void set_e(const double e) {return;}
38 
39  virtual void set_barcode(const int barcode) {return;}
40 
41  void identify(std::ostream& os = std::cout) const;
42 
43  bool operator== (const PHG4Particle &p) const;
44 
45  protected:
46  ClassDef(PHG4Particle,1)
47 };
48 
49 
50 #endif
virtual int get_track_id() const
Definition: PHG4Particle.h:21
virtual int get_pid() const
Definition: PHG4Particle.h:14
virtual int get_parent_id() const
Definition: PHG4Particle.h:23
virtual void set_parent_id(const int i)
Definition: PHG4Particle.h:30
virtual void set_vtx_id(const int i)
Definition: PHG4Particle.h:29
virtual void set_pid(const int i)
Definition: PHG4Particle.h:33
virtual double get_px() const
Definition: PHG4Particle.h:16
bool operator==(const PHG4Particle &p) const
Definition: PHG4Particle.cc:15
virtual void set_primary_id(const int i)
Definition: PHG4Particle.h:31
virtual void set_barcode(const int barcode)
Definition: PHG4Particle.h:39
virtual int get_primary_id() const
Definition: PHG4Particle.h:24
virtual int get_barcode() const
Definition: PHG4Particle.h:26
void identify(std::ostream &os=std::cout) const
Definition: PHG4Particle.cc:8
virtual int get_vtx_id() const
Definition: PHG4Particle.h:22
virtual void set_e(const double e)
Definition: PHG4Particle.h:37
virtual std::string get_name() const
Definition: PHG4Particle.h:15
virtual void set_py(const double x)
Definition: PHG4Particle.h:35
virtual ~PHG4Particle()
Definition: PHG4Particle.h:12
virtual double get_py() const
Definition: PHG4Particle.h:17
virtual double get_e() const
Definition: PHG4Particle.h:19
virtual double get_pz() const
Definition: PHG4Particle.h:18
virtual void set_track_id(const int i)
Definition: PHG4Particle.h:28
virtual void set_name(const std::string &name)
Definition: PHG4Particle.h:32
virtual void set_px(const double x)
Definition: PHG4Particle.h:34
virtual void set_pz(const double x)
Definition: PHG4Particle.h:36