Skip to content

Commit

Permalink
Fix more enums
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Aug 6, 2024
1 parent ed15064 commit fa27806
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions k4GaudiPandora/src/DDSimpleMuonDigi.cc
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ std::tuple<edm4hep::CalorimeterHitCollection, edm4hep::CaloHitSimCaloHitLinkColl
calHit.setCellID(cellID);
calHit.setEnergy(hitEnergy);
calHit.setPosition(hit.getPosition());
calHit.setType(CHT(CHT::muon, CHT::yoke, caloLayout, layer));
calHit.setType(CHT(CHT::CaloType::muon, CHT::CaloID::yoke, caloLayout, layer));
calHit.setTime(computeHitTime(hit));
auto muonRel = muonRelcol.create();
muonRel.setFrom(calHit);
Expand All @@ -142,11 +142,11 @@ std::tuple<edm4hep::CalorimeterHitCollection, edm4hep::CaloHitSimCaloHitLinkColl
//If the vectors are empty, we are keeping everything
bool DDSimpleMuonDigi::useLayer(CHT::Layout caloLayout, unsigned int layer) const {
switch (caloLayout) {
case CHT::barrel:
case CHT::Layout::barrel:
if (layer > m_useLayersBarrelVec.size() || m_useLayersBarrelVec.size() == 0)
return true;
return m_useLayersBarrelVec[layer]; //break not needed, because of return
case CHT::endcap:
case CHT::Layout::endcap:
if (layer > m_useLayersEndcapVec.size() || m_useLayersEndcapVec.size() == 0)
return true;
return m_useLayersEndcapVec[layer]; //break not needed, because of return
Expand Down

0 comments on commit fa27806

Please sign in to comment.