Skip to content

Commit eb27358

Browse files
author
miranov25
committed
Make range simple
1 parent 7b877c4 commit eb27358

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -261,9 +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-
float min_inv_pt = kBaseMinInvPt / pTScale; // E.g., max pT=40,000 GeV for b quarks
265-
float max_inv_pt = kBaseMaxInvPt / pTScale; // E.g., max pT=40,000 GeV for b quarks
266-
float inv_pt = (gRandom->Rndm() / pTScale) * (max_inv_pt - min_inv_pt) + min_inv_pt;
264+
ffloat inv_pt = gRandom->Rndm() * (kBaseMaxInvPt - kBaseMinInvPt) + kBaseMinInvPt;
267265
float pt = 1.0f / inv_pt;
268266
float phi = gRandom->Rndm() * 2.0f * TMath::Pi();
269267
float eta = gRandom->Rndm() * 3.0f - 1.5f; // ALICE TPC: -1.5 to 1.5

0 commit comments

Comments
 (0)