File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
MC/config/common/external/generator Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments