Skip to content

Commit c116467

Browse files
sdudi123sandeep dudi
andauthored
[PWGUD] MC related error Solved (#10716)
Co-authored-by: sandeep dudi <sandeep.dudi@cern.ch>
1 parent 51d8d78 commit c116467

File tree

2 files changed

+123
-88
lines changed

2 files changed

+123
-88
lines changed

PWGUD/TableProducer/SGCandProducer.cxx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,8 @@ struct SGCandProducer {
344344
aod::FT0s const& ft0s, aod::FDDs const& fdds)
345345
{
346346
// select specific processes with the GeneratorID
347+
if (!collision.has_mcCollision())
348+
return;
347349
auto mccol = collision.mcCollision();
348350
if (verboseInfo)
349351
LOGF(info, "GeneratorId %d (%d)", mccol.getGeneratorId(), generatorIds->size());

0 commit comments

Comments
 (0)