Skip to content

Commit b1d0ce7

Browse files
authored
[Common] Add hepMC info to extras table task
1 parent 0dfdc43 commit b1d0ce7

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Common/TableProducer/multiplicityExtraTable.cxx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ struct MultiplicityExtraTable {
3636
Produces<aod::Mults2BC> mult2bc;
3737
Produces<aod::BC2Mults> bc2mult;
3838

39+
// auxiliary for MC
40+
Produces<aod::MultHepMCHIs> multHepMCHIs;
41+
3942
// Allow for downscaling of BC table for less space use in derived data
4043
Configurable<float> bcDownscaleFactor{"bcDownscaleFactor", 2, "Downscale factor for BC table (0: save nothing, 1: save all)"};
4144
Configurable<float> minFT0CforBCTable{"minFT0CforBCTable", 25.0f, "Minimum FT0C amplitude to fill BC table to reduce data"};
@@ -277,9 +280,22 @@ struct MultiplicityExtraTable {
277280
}
278281
}
279282

283+
void processHepMCHeavyIons(aod::HepMCHeavyIons const& hepmchis)
284+
{
285+
for (auto const& hepmchi : hepmchis) {
286+
multHepMCHIs(hepmchi.mcCollisionId(),
287+
hepmchi.ncollHard(),
288+
hepmchi.npartProj(),
289+
hepmchi.npartTarg(),
290+
hepmchi.ncoll(),
291+
hepmchi.impactParameter());
292+
}
293+
}
294+
280295
// Process switches
281296
PROCESS_SWITCH(MultiplicityExtraTable, processBCs, "Produce BC tables", true);
282297
PROCESS_SWITCH(MultiplicityExtraTable, processCollisionNeighbors, "Produce neighbor timing tables", true);
298+
PROCESS_SWITCH(MultiplicityExtraTable, processHepMCHeavyIons, "Produce MultHepMCHIs tables", false);
283299
};
284300

285301
WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)

0 commit comments

Comments
 (0)