Skip to content

Commit 4b2ac04

Browse files
authored
Flat pt for phi meson (#2473)
1 parent 813d35b commit 4b2ac04

1 file changed

Lines changed: 17 additions & 16 deletions

File tree

‎MC/config/PWGLF/pythia8/GeneratorLF_phiphi.C‎

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#include "Pythia8/Pythia.h"
77
#include "TRandom3.h"
88
#include "TMath.h"
9-
#include "TF1.h"
9+
// #include "TF1.h"
1010
#include "TParticle.h"
1111
#include "TSystem.h"
1212
#if __has_include("SimulationDataFormat/MCGenStatus.h")
@@ -21,12 +21,12 @@
2121
#include <string>
2222
#endif
2323

24-
Double_t FuncLavy(Double_t *x, Double_t *par)
25-
{
24+
// Double_t FuncLavy(Double_t *x, Double_t *par)
25+
// {
2626

27-
Double_t p = (par[0] - 1) * (par[0] - 2) * par[1] * x[0] / (((pow((1 + (((sqrt((par[2] * par[2]) + (x[0] * x[0]))) - par[2]) / (par[0] * par[3]))), par[0]) * (par[0] * par[3] * ((par[0] * par[3]) + (par[2] * (par[0] - 2)))))));
28-
return (p);
29-
}
27+
// Double_t p = (par[0] - 1) * (par[0] - 2) * par[1] * x[0] / (((pow((1 + (((sqrt((par[2] * par[2]) + (x[0] * x[0]))) - par[2]) / (par[0] * par[3]))), par[0]) * (par[0] * par[3] * ((par[0] * par[3]) + (par[2] * (par[0] - 2)))))));
28+
// return (p);
29+
// }
3030

3131
class GeneratorPhiResonance : public o2::eventgen::GeneratorPythia8
3232
{
@@ -77,15 +77,15 @@ public:
7777
// // Thermal pT distribution for phi-phi resonance
7878
// mThermal = new TF1("mThermal", "x*sqrt(x*x+[0]*[0])*exp(-sqrt(x*x+[0]*[0])/[1])", mPtMin, mPtMaxPhiPhi);
7979

80-
// Lévy-Tsallis pT distribution for direct phi
81-
mLevyTsallis = new TF1("mLevyTsallis", FuncLavy, mPtMin, 100.0, 4);
80+
// // Lévy-Tsallis pT distribution for direct phi
81+
// mLevyTsallis = new TF1("mLevyTsallis", FuncLavy, mPtMin, 100.0, 4);
8282

83-
mLevyTsallis->SetParameters(
84-
7.60279, // n
85-
0.0374237, // dN/dy
86-
1.01946, // mass
87-
0.338379 // T
88-
);
83+
// mLevyTsallis->SetParameters(
84+
// 7.60279, // n
85+
// 0.0374237, // dN/dy
86+
// 1.01946, // mass
87+
// 0.338379 // T
88+
// );
8989
}
9090

9191
Bool_t generateEvent() override
@@ -193,7 +193,8 @@ private:
193193
}
194194
else
195195
{
196-
pt = mLevyTsallis->GetRandom();
196+
// pt = mLevyTsallis->GetRandom();
197+
pt = gRandom->Uniform(mPtMin, 100.0); // Falling back to flat pT due to low statistics in high pT
197198
}
198199

199200
const double px = pt * std::cos(phi);
@@ -227,7 +228,7 @@ private:
227228
Pythia8::Pythia pythiaObjectMinimumBias;
228229

229230
// TF1 *mThermal;
230-
TF1 *mLevyTsallis;
231+
// TF1 *mLevyTsallis;
231232
};
232233

233234
/// Entry point for o2-sim

0 commit comments

Comments
 (0)