Skip to content

Commit 08a721f

Browse files
committed
PWGJE: fill p_xSection with jet-jet events only in slimTablesProducer
Reject MB gap events before filling the cross-section profile, so that the MB and jet-jet generator cross sections are no longer averaged together. Weight each xsectGen value by accepted(), since it is Pythia's running estimate and is unstable for the first events of each generator instance.
1 parent 8bbe75b commit 08a721f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎PWGJE/TableProducer/slimTablesProducer.cxx‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,10 @@ struct SlimTablesProducer {
204204
soa::Filtered<aod::JetParticles> const& particles)
205205
{
206206
float eventWeightMC = mccollision.weight();
207-
histos.fill(HIST("p_xSection"), 0.5, mccollision.xsectGen());
207+
if (skipMBGapEvents && mccollision.getSubGeneratorId() == jetderiveddatautilities::JCollisionSubGeneratorId::mbGap) {
208+
return; // gap events: not part of the jet-jet sample
209+
}
210+
histos.fill(HIST("p_xSection"), 0.5, mccollision.xsectGen(), mccollision.accepted()); // running estimate: weight late (converged) values more
208211

209212
if (collisions.size() != 1) { // skip the mccollision if it has mre than 1 associated rec collision
210213
return;

0 commit comments

Comments
 (0)