Skip to content

Commit 8bbe75b

Browse files
committed
slimTablesProducer: adding Xsection
1 parent be144b1 commit 8bbe75b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎PWGJE/TableProducer/slimTablesProducer.cxx‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ struct SlimTablesProducer {
147147
hMCP->GetXaxis()->SetBinLabel(2, "Zvertex");
148148
hMCP->GetXaxis()->SetBinLabel(3, "selectMcCollision");
149149

150+
histos.add("p_xSection", "generated cross section;;#sigma_{gen} (pb)", {HistType::kTProfile, {{1, 0.0, 1.0}}});
151+
150152
histos.add("Ntracks_pT", "track pT distribution;#it{p}_{T} (GeV/#it{c});entries", {HistType::kTH1F, {{200, -0.5, 199.5}}}, doSumw2);
151153
histos.add("Nparticles_pT", "particle pT distribution;#it{p}_{T} (GeV/#it{c});entries", {HistType::kTH1F, {{200, -0.5, 199.5}}}, doSumw2);
152154

@@ -202,6 +204,7 @@ struct SlimTablesProducer {
202204
soa::Filtered<aod::JetParticles> const& particles)
203205
{
204206
float eventWeightMC = mccollision.weight();
207+
histos.fill(HIST("p_xSection"), 0.5, mccollision.xsectGen());
205208

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

0 commit comments

Comments
 (0)