BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnParticleStore.h
Go to the documentation of this file.
1#ifndef BMNPARTICLESTORE_H
2#define BMNPARTICLESTORE_H 1
3
4#include <TMath.h>
5#include <TNamed.h>
6#include <TVector3.h>
7
8using namespace TMath;
9
11{
12 public:
15
17
18 Double_t GetP() { return fP; }
19
20 Double_t GetTx() { return fTx; }
21
22 Double_t GetTy() { return fTy; }
23
25 {
26 Double_t Pz = fP / TMath::Sqrt(1 + fTx * fTx + fTy * fTy);
27 return 0.5 * TMath::Log((fP + Pz) / (fP - Pz));
28 }
29
31 {
32 Double_t Pz = fP / TMath::Sqrt(1 + fTx * fTx + fTy * fTy);
33 TVector3 tmp(fTx * Pz, fTy * Pz, Pz);
34 return tmp.Phi() * TMath::RadToDeg() + 180.;
35 }
36
37 Int_t GetPdg() { return fPdg; }
38
39 private:
43
45
47};
48
49#endif
int Int_t
double Double_t
#define ClassDef(name, id)
Double_t Phi() const
Double_t Log(Double_t x)
Double_t Sqrt(Double_t x)
constexpr Double_t RadToDeg()