We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b877c4 commit eb27358Copy full SHA for eb27358
1 file changed
MC/config/common/external/generator/performanceGenerator.C
@@ -261,9 +261,7 @@ namespace o2
261
// 3. Status: 11 for partons (jets), 1 for final-state
262
int status = isParton(pdgCode) ? 11 : 1;
263
// 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;
+ ffloat inv_pt = gRandom->Rndm() * (kBaseMaxInvPt - kBaseMinInvPt) + kBaseMinInvPt;
267
float pt = 1.0f / inv_pt;
268
float phi = gRandom->Rndm() * 2.0f * TMath::Pi();
269
float eta = gRandom->Rndm() * 3.0f - 1.5f; // ALICE TPC: -1.5 to 1.5
0 commit comments