You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: MC/config/PWGGAJE/external/generator/parametrisedJetModel/generator_pythia8_box_parametrisedModel_pythia6Fragmentation.C
pythiaParticle.status(tParticle->GetStatusCode()); // in pythia6 all the particles that are not
257
+
// the initial partons have status code 1;
258
+
// this is because apparently pythia6 does
259
+
// not decay them automatically yet; they
260
+
// are by no means all stable particles; but
261
+
// we do not care for this study
262
+
pythiaParticle.px(tParticle->Px());
263
+
pythiaParticle.py(tParticle->Py());
264
+
pythiaParticle.pz(tParticle->Pz());
265
+
pythiaParticle.e(tParticle->Energy());
266
+
pythiaParticle.m(tParticle->GetMass());
267
+
pythiaParticle.xProd(tParticle->Vx());
268
+
pythiaParticle.yProd(tParticle->Vy());
269
+
pythiaParticle.zProd(tParticle->Vz());
270
+
pythiaParticle.mother1(particleCountCurrent); // particleCountCurrent is the offset to account for existing IDs of constituents of previous jets.
271
+
// Not saving the actual mother ID because ImportParticles(genParticlesArray, "Final") only saves the final
272
+
// particles, and the mother id still refer to particles not saved in
273
+
// genParticlesArray a priori the mother-daughter links aren't needed
274
+
// for the closure test this will be used for; keeping the initial
275
+
// parton as mother for now
276
+
277
+
mPythia.event.append(pythiaParticle);
278
+
}
279
+
particleCountCurrent+=nConstituents+1; // +1 is for the jet parton itself, which is not in the final state
272
280
}
273
-
particleCountCurrent+=nConstituents+1; // +1 is for the jet parton itself, which is not in the final state
274
-
}
275
-
deletegenParticlesArray;
281
+
deletegenParticlesArray;
276
282
277
-
if (mDebug) {
278
-
mPythia.event.list();
283
+
if (mDebug) {
284
+
mPythia.event.list();
285
+
}
279
286
}
280
287
281
288
///////////////////////////////////////////////
@@ -339,10 +346,11 @@ private:
339
346
////////////////////////////////////////////////
340
347
341
348
constdoublemPtInfinity=300; // maximum pt (in GeV/c) for generated particles, and upper pT limit for integral and TF1 purposes; too high and GetRandom struggles
342
-
constdoublemGenMinEta=-1.; /// minimum pseudorapidity for generated particles
343
-
constdoublemGenMaxEta=+1.; /// maximum pseudorapidity for generated particles
349
+
constdoublemGenMinEta=-0.9; /// minimum pseudorapidity for generated particles
350
+
constdoublemGenMaxEta=+0.9; /// maximum pseudorapidity for generated particles
344
351
intmCollTotalMultWithBkg; /// total multiplicity of the collision
345
-
boolmGenerateUE= false; /// boolean to request (or not) embedding of the jet signal inside underlying event modelled by a thermal background
352
+
boolmGenerateSignal= true; /// boolean to request (or not) the generation of the jet signal
353
+
boolmGenerateUE= false; /// boolean to request (or not) embedding of the jet signal inside underlying event modelled by a thermal background; if mGenerateSignal = false, only the UE is generated
0 commit comments