BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
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
8
using namespace
TMath
;
9
10
class
BmnParticleStore
:
public
TNamed
11
{
12
public
:
13
BmnParticleStore
();
14
BmnParticleStore
(
Int_t
,
Double_t
,
Double_t
,
Double_t
);
15
16
~BmnParticleStore
();
17
18
Double_t
GetP
() {
return
fP
; }
19
20
Double_t
GetTx
() {
return
fTx
; }
21
22
Double_t
GetTy
() {
return
fTy
; }
23
24
Double_t
GetEta
()
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
30
Double_t
GetPhi
()
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
:
40
Double_t
fP
;
41
Double_t
fTx
;
42
Double_t
fTy
;
43
44
Int_t
fPdg
;
45
46
ClassDef
(
BmnParticleStore
, 1)
47
};
48
49
#endif
Int_t
int Int_t
Double_t
double Double_t
ClassDef
#define ClassDef(name, id)
TMath.h
TNamed.h
TVector3.h
BmnParticleStore::GetPdg
Int_t GetPdg()
Definition
BmnParticleStore.h:37
BmnParticleStore::GetPhi
Double_t GetPhi()
Definition
BmnParticleStore.h:30
BmnParticleStore::fPdg
Int_t fPdg
Definition
BmnParticleStore.h:44
BmnParticleStore::fP
Double_t fP
Definition
BmnParticleStore.h:40
BmnParticleStore::GetTy
Double_t GetTy()
Definition
BmnParticleStore.h:22
BmnParticleStore::fTy
Double_t fTy
Definition
BmnParticleStore.h:42
BmnParticleStore::fTx
Double_t fTx
Definition
BmnParticleStore.h:41
BmnParticleStore::GetEta
Double_t GetEta()
Definition
BmnParticleStore.h:24
BmnParticleStore::GetP
Double_t GetP()
Definition
BmnParticleStore.h:18
BmnParticleStore::BmnParticleStore
BmnParticleStore()
Definition
BmnParticleStore.cxx:3
BmnParticleStore::GetTx
Double_t GetTx()
Definition
BmnParticleStore.h:20
BmnParticleStore::~BmnParticleStore
~BmnParticleStore()
Definition
BmnParticleStore.cxx:18
TNamed::TNamed
TNamed()
TVector3
TVector3::Phi
Double_t Phi() const
TMath
TMath::Log
Double_t Log(Double_t x)
TMath::Sqrt
Double_t Sqrt(Double_t x)
TMath::RadToDeg
constexpr Double_t RadToDeg()
physics
embedding
BmnParticleStore.h
Generated on
for BmnRoot by
1.17.0