Subversion Repositories f9daq

Rev

Rev 193 | Rev 267 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 193 Rev 266
Line 9... Line 9...
9
//-
9
//-
10
 
10
 
11
#include "TObject.h"
11
#include "TObject.h"
12
#include "TClonesArray.h"
12
#include "TClonesArray.h"
13
 
13
 
14
enum SIMPLEPID {PHOTON, ELECTRON, PION, MUON, KAON, PROTON, JPSI, D, DSTAR, B,KS };
14
enum SIMPLEPID {PHOTON, ELECTRON, PION, MUON, KAON, PROTON, JPSI, D, DSTAR, B,KS, ALL };
15
 
15
 
16
class BParticle : public TObject {
16
class BParticle : public TObject {
17
 
17
 
18
 private:
18
 private:
19
  float m_px;
19
  float m_px;
Line 30... Line 30...
30
 
30
 
31
  float px() const { return m_px; };
31
  float px() const { return m_px; };
32
  float py() const { return m_py; };
32
  float py() const { return m_py; };
33
  float pz() const { return m_pz; };
33
  float pz() const { return m_pz; };
34
  float e() const { return m_e; };
34
  float e() const { return m_e; };
-
 
35
  float GetMomentum() const { return sqrt(m_px*m_px+m_py*m_py+m_pz*m_pz); };
35
  float charge() const { return m_charge; };
36
  float charge() const { return m_charge; };
36
  SIMPLEPID pid() const { return m_pid; };
37
  SIMPLEPID pid() const { return m_pid; };
37
  float GetMass(SIMPLEPID pid);
38
  float GetMass(SIMPLEPID pid);
38
  float GetMass();
39
  float GetMass();
39
  void SetEnergyFromMass (float mass);
40
  void SetEnergyFromMass (float mass);