We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c73bc3 commit 7c9cba3Copy full SHA for 7c9cba3
PWGLF/Tasks/Nuspex/spectraTOF.cxx
@@ -1887,7 +1887,9 @@ struct tofSpectra {
1887
if (!isParticleEnabled<i>()) { // Check if the particle is enabled
1888
return;
1889
}
1890
-
+ if (!collision.has_mcCollision()) {
1891
+ return; // Skips processing if no corresponding MC collision is found (rare case!)
1892
+ }
1893
const auto& mcCollision = collision.mcCollision_as<GenMCCollisions>();
1894
const float multiplicity = getMultiplicity(collision);
1895
const int occupancy = collision.trackOccupancyInTimeRange();
0 commit comments