20 #include "FairRootManager.h"
30 , fGlobalTracks(nullptr)
33 , MC_pi_minus_Tempr(nullptr)
34 , MC_pi_plus_Tempr(nullptr)
35 , MC_pi_zero_Tempr(nullptr)
36 , MC_proton_Tempr(nullptr)
37 , MC_kaon_zero_Tempr(nullptr)
38 , MC_kaon_plus_Tempr(nullptr)
39 , MC_kaon_minus_Tempr(nullptr)
40 , MC_direct_photons_Tempr(nullptr) {}
47 FairRootManager* ioman = FairRootManager::Instance();
48 if (
nullptr == ioman) {
49 Fatal(
"CbmKresTemperature::Init",
"RootManager not instantised!");
52 fMcTracks = (TClonesArray*) ioman->GetObject(
"MCTrack");
54 Fatal(
"CbmKresTemperature::Init",
"No MCTrack array!");
57 fGlobalTracks = (TClonesArray*) ioman->GetObject(
"GlobalTrack");
59 Fatal(
"CbmKresTemperature::Init",
"No GlobalTrack array!");
62 fStsTracks = (TClonesArray*) ioman->GetObject(
"StsTrack");
64 Fatal(
"CbmKresTemperature::Init",
"No StsTrack array!");
69 cout <<
"CbmKresTemperature, event No. " << fEventNumTempr << endl;
73 Int_t nofMcTracks =
fMcTracks->GetEntriesFast();
74 for (
int i = 0;
i < nofMcTracks;
i++) {
76 if (mctrack ==
nullptr)
continue;
89 double m0 = 0.1349766;
90 double pt = mctrack->
GetPt();
91 double mt = TMath::Sqrt(pt * pt + m0 * m0);
99 double pt = mctrack->
GetPt();
108 double m0 = 0.13957018;
109 double pt = mctrack->
GetPt();
110 double mt = TMath::Sqrt(pt * pt + m0 * m0);
119 double m0 = 0.13957018;
120 double pt = mctrack->
GetPt();
121 double mt = TMath::Sqrt(pt * pt + m0 * m0);
130 double m0 = 0.9382720813;
131 double pt = mctrack->
GetPt();
132 double mt = TMath::Sqrt(pt * pt + m0 * m0);
141 double m0 = 0.497614;
142 double pt = mctrack->
GetPt();
143 double mt = TMath::Sqrt(pt * pt + m0 * m0);
152 double m0 = 0.493677;
153 double pt = mctrack->
GetPt();
154 double mt = TMath::Sqrt(pt * pt + m0 * m0);
163 double m0 = 0.493677;
164 double pt = mctrack->
GetPt();
165 double mt = TMath::Sqrt(pt * pt + m0 * m0);
191 gDirectory->mkdir(
"temperature");
192 gDirectory->cd(
"temperature");
194 gDirectory->mkdir(
"MC");
195 gDirectory->cd(
"MC");
199 gDirectory->cd(
"..");
201 gDirectory->cd(
"..");
206 new TH1D(
"MC_pi_minus_Tempr",
207 "Monte Carlo, primary #pi^{-}; m_{t}-m_{0} distribution",
214 new TH1D(
"MC_pi_plus_Tempr",
215 "Monte Carlo, primary #pi^{+}; m_{t}-m_{0} distribution",
222 new TH1D(
"MC_pi_zero_Tempr",
223 "Monte Carlo, primary #pi^{0}; m_{t}-m_{0} distribution",
230 new TH1D(
"MC_direct_photons_Tempr",
231 "Monte Carlo, direct #gamma; m_{t}-m_{0} distribution",
238 new TH1D(
"MC_proton_Tempr",
239 "Monte Carlo, primary #p; m_{t}-m_{0} distribution",
246 new TH1D(
"MC_kaon_zero_Tempr",
247 "Monte Carlo, primary #kaon^{S0}; m_{t}-m_{0} distribution",
254 new TH1D(
"MC_kaon_plus_Tempr",
255 "Monte Carlo, primary #kaon^{+}; m_{t}-m_{0} distribution",
262 new TH1D(
"MC_kaon_minus_Tempr",
263 "Monte Carlo, primary #kaon^{-}; m_{t}-m_{0} distribution",