PandaRoot
THParticle.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 // ------------------------------------------------------------------------
14 // ----- CbmHyppoint header file -----
15 // ----- Created by A.Sanchez -----
16 // ------------------------------------------------------------------------
17 
18 #ifndef THPARTICLE_H
19 #define THPARTICLE_H
20 
21 #include "TObject.h"
22 #include "TVector3.h"
23 #include "TLorentzVector.h"
24 #include "TParticle.h"
25 #include "TString.h"
26 
27 using namespace std;
28 
29 class THParticle : public TParticle {
30 
31  public:
33  THParticle();
34 
35  THParticle(Int_t pdg, Int_t status, Int_t evtID, Int_t index, Double_t mass, Int_t A, Int_t Z, Int_t H, const TLorentzVector &p, const TLorentzVector &v);
36 
38  THParticle(const THParticle &point)
39  : TParticle(point), fstatus(point.fstatus), fEventID(point.fEventID), fpdgCode(point.fpdgCode), fCalcMass(point.fCalcMass), fVx(point.fVx), fVy(point.fVy), fVz(point.fVz),
40  fIndex(point.fIndex), fA(point.fA), fZ(point.fZ), fH(point.fH)
41  {
42  return;
43  }
44 
46  virtual ~THParticle();
47 
49  Int_t GetPdgCode() const { return fpdgCode; }
50  Int_t GetEventID() const { return fEventID; };
51  Int_t GetIndex() const { return fIndex; };
52  Double_t GetCalcMass() const { return fCalcMass; }
53 
54  Int_t GetA() const { return fA; };
55  Int_t GetZ() const { return fZ; };
56  Int_t GetH() const { return fH; };
57 
58  Double_t Vx() const { return fVx; };
59  Double_t Vy() const { return fVy; };
60  Double_t Vz() const { return fVz; };
61 
64  void SetEventID(Int_t ev) { fEventID = ev; };
65  void SetIndex(Int_t id) { fIndex = id; };
66 
68  virtual void Print(const Option_t *opt) const;
69 
70  protected:
71  Int_t fstatus;
72  Int_t fEventID; // Event ID
73  Int_t fpdgCode; // PDG code of the particle
74 
75  Double_t fCalcMass; //,fPx,fPy,fPz; // Calculated mass
76  Double_t fVx, fVy, fVz;
77 
78  Int_t fIndex, fA, fZ, fH;
79 
80  ClassDef(THParticle, 1)
81 };
82 
83 #endif
Int_t GetH() const
Definition: THParticle.h:56
Double_t Vz() const
Definition: THParticle.h:60
Int_t GetA() const
Definition: THParticle.h:54
Double_t GetCalcMass() const
Definition: THParticle.h:52
THParticle(const THParticle &point)
Definition: THParticle.h:38
STL namespace.
Int_t GetPdgCode() const
Definition: THParticle.h:49
__m128 v
Definition: P4_F32vec4.h:15
Double_t fCalcMass
Definition: THParticle.h:75
Int_t fEventID
Definition: THParticle.h:72
Int_t fstatus
Definition: THParticle.h:71
void SetEventID(Int_t ev)
Definition: THParticle.h:64
Int_t fpdgCode
Definition: THParticle.h:73
Int_t GetZ() const
Definition: THParticle.h:55
Double_t Vx() const
Definition: THParticle.h:58
Double_t fVz
Definition: THParticle.h:76
Int_t GetEventID() const
Definition: THParticle.h:50
Int_t fZ
Definition: THParticle.h:78
void SetIndex(Int_t id)
Definition: THParticle.h:65
Double_t Vy() const
Definition: THParticle.h:59
Int_t GetIndex() const
Definition: THParticle.h:51
int status[10]
Definition: f_Init.h:48