Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Detectors/Base/include/DetectorsBase/Stack.h
Original file line number Diff line number Diff line change
Expand Up @@ -357,11 +357,13 @@ inline bool Stack::isFromRadDecay(const int id)
return false;
}
const auto entry = mTrackIDtoParticlesEntry[id];
if (entry < 0 || entry >= static_cast<int>(mParticles.size())) return false;
if (entry < 0 || entry >= static_cast<int>(mParticles.size()))
return false;
auto part = (mParticles[entry]);

// primary particle ?
if (part.getProcess() == 0 ) return false;
if (part.getProcess() == 0)
return false;
// particle directly from radioactive decay ?
if (part.getProcess() == kPRadDecay) {
return true;
Expand Down