Skip to content
Snippets Groups Projects
Commit 7323793e authored by Tadej Novak's avatar Tadej Novak
Browse files

Merge branch '23.0-cppcheck-ISF_FastCaloSimSD' into 'master'

23.0-cppcheck-ISF_FastCaloSimSD

See merge request atlas/athena!55912
parents 63c1b26a f11f63b5
No related branches found
No related tags found
No related merge requests found
......@@ -150,6 +150,10 @@ G4bool LArFCS_StepInfoSD::ProcessHits(G4Step* a_step,G4TouchableHistory*)
maxSubHitEnergyindex = i;
}
}
if (maxSubHitEnergyindex == -1){//because there were no hits; numberOfProcessedHits ==0
G4cout << this->GetName()<<" WARNING ProcessHits: numberOfProcessedHits is zero" << G4endl;
continue;
}
//Identifier for the subhit with max energy
Identifier maxEnergyIdentifier = this->ConvertID(processedHits[maxSubHitEnergyindex].id);
const CaloDetDescrElement *maxEnergyCell = m_calo_dd_man.get()->get_element(maxEnergyIdentifier);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment