Skip to content

Commit 5075cb5

Browse files
author
miranov25
committed
Correct names for ranges
1 parent eb27358 commit 5075cb5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

MC/config/common/external/generator/performanceGenerator.C

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ namespace o2
209209

210210
// pT bounds: Max pT ~5 TeV (ALICE Pb-Pb energy)
211211
const float kMaxInvPt = 2.f; // Min pT = 0.5 GeV
212-
const float kBaseMinInvPt = 2e-4f; // Max pT = 5000 GeV (unscaled)
212+
const float kMinInvPt = 2e-4f; // Max pT = 5000 GeV (unscaled)
213213

214214
// Check if particle is a parton (quark/gluon, status=11)
215215
bool isParton(int& pdgCode)
@@ -261,7 +261,7 @@ namespace o2
261261
// 3. Status: 11 for partons (jets), 1 for final-state
262262
int status = isParton(pdgCode) ? 11 : 1;
263263
// 4. Kinematics (flat 1/pT, max ~5000 GeV / pTScale)
264-
ffloat inv_pt = gRandom->Rndm() * (kBaseMaxInvPt - kBaseMinInvPt) + kBaseMinInvPt;
264+
float inv_pt = gRandom->Rndm() * (kMaxInvPt - kMinInvPt) + kMinInvPt;
265265
float pt = 1.0f / inv_pt;
266266
float phi = gRandom->Rndm() * 2.0f * TMath::Pi();
267267
float eta = gRandom->Rndm() * 3.0f - 1.5f; // ALICE TPC: -1.5 to 1.5

0 commit comments

Comments
 (0)