Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
FemtoMiniPair.cxx
1/*
2 * FemtoMiniPair.cxx
3 *
4 * Created on: 9 lut 2019
5 * Author: Daniel Wielanek
6 * E-mail: daniel.wielanek@gmail.com
7 * Warsaw University of Technology, Faculty of Physics
8 */
9#include "FemtoMiniPair.h"
10#include <iostream>
11
12namespace Hal {
13 FemtoMiniPair::FemtoMiniPair() :
14 FemtoMicroPair(), fX1(0.0), fY1(0.0), fZ1(0.0), fT1(0.0), fX2(0.0), fY2(0.0), fZ2(0.0), fT2(0.0) {}
15
16 FemtoMiniPair::~FemtoMiniPair() {
17 // TODO Auto-generated destructor stub
18 }
19
20 void FemtoMiniPair::PrintInfo() const {
21 std::cout << "pair info" << std::endl;
22 Double_t m1 = TMath::Sqrt(fE1 * fE1 - fPx1 * fPx1 - fPy1 * fPy1 - fPz1 * fPz1);
23 Double_t m2 = TMath::Sqrt(fE2 * fE2 - fPx2 * fPx2 - fPy2 * fPy2 - fPz2 * fPz2);
24 printf("momenta (%.4f %.4f %.4f %.4f) (%.4f %.4f %.4f %.4f) m1 = %.4f m2 = %.4f "
25 "\n",
26 GetPx1(),
27 GetPy1(),
28 GetPz1(),
29 GetE1(),
30 GetPx2(),
31 GetPy2(),
32 GetPz2(),
33 GetE2(),
34 m1,
35 m2);
36 printf("True momenta (%.4f %.4f %.4f %.4f) (%.4f %.4f %.4f %.4f) m1 = %.4f m2 = "
37 "%.4f \n",
38 TruePx1(),
39 TruePy1(),
40 TruePz1(),
41 TrueE1(),
42 TruePx2(),
43 TruePy2(),
44 TruePz2(),
45 TrueE2(),
46 m1,
47 m2);
48 printf("coords (%.4f %.4f %.4f %.4f) (%.4f %.4f %.4f %.4f)\n",
49 GetX1(),
50 GetY1(),
51 GetZ1(),
52 GetT1(),
53 GetX2(),
54 GetY2(),
55 GetZ2(),
56 GetT2());
57 }
58
59 FemtoMiniPair& FemtoMiniPair::operator=(const FemtoPair& other) {
60 fPx1 = other.TruePx1();
61 fPx2 = other.TruePx2();
62 fPy1 = other.TruePy1();
63 fPy2 = other.TruePy2();
64 fPz1 = other.TruePz1();
65 fPz2 = other.TruePz2();
66 fE1 = other.TrueE1();
67 fE2 = other.TrueE2();
68 fpx1 = other.GetPx1();
69 fpx2 = other.GetPx2();
70 fpy1 = other.GetPy1();
71 fpy2 = other.GetPy2();
72 fpz1 = other.GetPz1();
73 fpz2 = other.GetPz2();
74 fe1 = other.TrueE1();
75 fe2 = other.TrueE2();
76 fPdg1 = other.GetPdg1();
77 fPdg2 = other.GetPdg2();
78 fX1 = other.GetX1();
79 fX2 = other.GetX2();
80 fY1 = other.GetY1();
81 fY2 = other.GetY2();
82 fZ1 = other.GetZ1();
83 fZ2 = other.GetZ2();
84 fT1 = other.GetT1();
85 fT2 = other.GetT2();
86 return *this;
87 }
88
89 //==================================================
90 FemtoPicoPair::FemtoPicoPair() : fPx1(0.0), fPy1(0.0), fPz1(0.0), fE1(0.0), fPx2(0.0), fPy2(0.0), fPz2(0.0), fE2(0.0) {}
91
93 fPx1 = other.TruePx1();
94 fPx2 = other.TruePx2();
95 fPy1 = other.TruePy1();
96 fPy2 = other.TruePy2();
97 fPz1 = other.TruePz1();
98 fPz2 = other.TruePz2();
99 fE1 = other.TrueE1();
100 fE2 = other.TrueE2();
101 return *this;
102 }
103
104 FemtoPicoPair::~FemtoPicoPair() {}
105
106 //==================================================
107 FemtoMicroPair::FemtoMicroPair() :
108 FemtoPicoPair(), fpx1(0.0), fpy1(0.0), fpz1(0.0), fe1(0.0), fpx2(0.0), fpy2(0.0), fpz2(0.0), fe2(0.0), fPdg1(0), fPdg2(0) {}
109
110 void FemtoMicroPair::SetTrueMomenta1(Float_t px, Float_t py, Float_t pz, Float_t e) {
111 fPx1 = px;
112 fPy1 = py;
113 fPz1 = pz;
114 fE1 = e;
115 }
116
117 void FemtoMicroPair::SetTrueMomenta2(Float_t px, Float_t py, Float_t pz, Float_t e) {
118 fPx2 = px;
119 fPy2 = py;
120 fPz2 = pz;
121 fE2 = e;
122 }
123
124 void FemtoMicroPair::SetMomenta1(Float_t px, Float_t py, Float_t pz, Float_t e) {
125 fpx1 = px;
126 fpy1 = py;
127 fpz1 = pz;
128 fe1 = e;
129 }
130
131 void FemtoMicroPair::SetMomenta2(Float_t px, Float_t py, Float_t pz, Float_t e) {
132 fpx2 = px;
133 fpy2 = py;
134 fpz2 = pz;
135 fe2 = e;
136 }
137
138 FemtoMicroPair& FemtoMicroPair::operator=(const FemtoPair& other) {
139 fPx1 = other.TruePx1();
140 fPx2 = other.TruePx2();
141 fPy1 = other.TruePy1();
142 fPy2 = other.TruePy2();
143 fPz1 = other.TruePz1();
144 fPz2 = other.TruePz2();
145 fE1 = other.TrueE1();
146 fE2 = other.TrueE2();
147 fpx1 = other.GetPx1();
148 fpx2 = other.GetPx2();
149 fpy1 = other.GetPy1();
150 fpy2 = other.GetPy2();
151 fpz1 = other.GetPz1();
152 fpz2 = other.GetPz2();
153 fe1 = other.TrueE1();
154 fe2 = other.TrueE2();
155 fPdg1 = other.GetPdg1();
156 fPdg2 = other.GetPdg2();
157 return *this;
158 }
159
160 FemtoMicroPair::~FemtoMicroPair() {}
161} // namespace Hal
void SetTrueMomenta2(Float_t px, Float_t py, Float_t pz, Float_t e)
void SetMomenta2(Float_t px, Float_t py, Float_t pz, Float_t e)
void SetMomenta1(Float_t px, Float_t py, Float_t pz, Float_t e)
void SetTrueMomenta1(Float_t px, Float_t py, Float_t pz, Float_t e)
Int_t GetPdg2() const
Definition FemtoPair.h:302
Double_t GetY1() const
Definition FemtoPair.h:197
Double_t GetPy1() const
Definition FemtoPair.h:237
Double_t GetPy2() const
Definition FemtoPair.h:262
Double_t GetY2() const
Definition FemtoPair.h:217
Double_t TruePx1() const
Definition FemtoPair.h:142
Double_t TruePy2() const
Definition FemtoPair.h:172
Double_t GetZ1() const
Definition FemtoPair.h:202
Double_t GetPz1() const
Definition FemtoPair.h:242
Double_t TruePy1() const
Definition FemtoPair.h:147
Double_t GetX2() const
Definition FemtoPair.h:212
Double_t GetPx2() const
Definition FemtoPair.h:257
Double_t TruePz2() const
Definition FemtoPair.h:177
Double_t TruePx2() const
Definition FemtoPair.h:167
Double_t GetZ2() const
Definition FemtoPair.h:222
Double_t TrueE1() const
Definition FemtoPair.h:157
Double_t GetT1() const
Definition FemtoPair.h:207
Double_t GetPx1() const
Definition FemtoPair.h:232
Double_t TrueE2() const
Definition FemtoPair.h:182
Double_t TruePz1() const
Definition FemtoPair.h:152
Double_t GetPz2() const
Definition FemtoPair.h:267
Int_t GetPdg1() const
Definition FemtoPair.h:297
Double_t GetT2() const
Definition FemtoPair.h:227
Double_t GetX1() const
Definition FemtoPair.h:192
Float_t TruePy2() const
Float_t TruePx2() const
Float_t TruePz2() const
Float_t TruePy1() const
Float_t TrueE1() const
Float_t TruePz1() const
FemtoPicoPair & operator=(const FemtoPicoPair &other)
Float_t TruePx1() const
Float_t TrueE2() const