Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class O2_GeneratorParamMuon : public FairGenerator
void InitParaFuncs()
{
fPtPara = new TF1("pt-para", PtMuon, fPtMin, fPtMax, 6);
fPtPara->SetNpx(10000); // Resolve the steep low-pT spectrum in TF1::GetRandom over a wide range
fPtPara->SetParameter(0, fPtP0);
fPtPara->SetParameter(1, fPtP1);
fPtPara->SetParameter(2, fPtP2);
Expand Down Expand Up @@ -149,7 +150,7 @@ FairGenerator* paramMuGen(double ptP0 = 797.446, double ptP1 = 0.830278,
double yP4 = 0.00269782,
int nPart = 2, int pdg = 13,
double ymin = -4.3, double ymax = -2.3,
double ptmin = 0.1, float ptmax = 999.,
double ptmin = 0.1, float ptmax = 20.,
int randCharge = 1)
{
auto* gen = new O2_GeneratorParamMuon(nPart, pdg, ymin, ymax, ptmin, ptmax);
Expand Down
Loading