diff --git a/RecCalorimeter/src/components/LayeredCaloTowerTool.cpp b/RecCalorimeter/src/components/LayeredCaloTowerTool.cpp index f79b58c3..169018e2 100644 --- a/RecCalorimeter/src/components/LayeredCaloTowerTool.cpp +++ b/RecCalorimeter/src/components/LayeredCaloTowerTool.cpp @@ -81,7 +81,8 @@ void LayeredCaloTowerTool::towersNumber(int& nEta, int& nPhi) { nPhi = m_nPhiTower; } -uint LayeredCaloTowerTool::buildTowers(std::vector>& aTowers, bool fillTowerCells) { +uint LayeredCaloTowerTool::buildTowers(std::vector>& aTowers, + [[maybe_unused]] bool fillTowerCells) { // Get the input collection with cells from simulation + digitisation (after // calibration and with noise) const edm4hep::CalorimeterHitCollection* cells = m_cells.get(); diff --git a/RecFCCeeCalorimeter/src/components/CaloTopoClusterFCCee.cpp b/RecFCCeeCalorimeter/src/components/CaloTopoClusterFCCee.cpp index 1cf88a4c..3ac9af91 100644 --- a/RecFCCeeCalorimeter/src/components/CaloTopoClusterFCCee.cpp +++ b/RecFCCeeCalorimeter/src/components/CaloTopoClusterFCCee.cpp @@ -189,9 +189,10 @@ StatusCode CaloTopoClusterFCCee::execute() { else warning() << "No cell positions tool found for system id " << systemId << ". " << endmsg; - newCell.setPosition(edm4hep::Vector3f{posCell.X() / dd4hep::mm, - posCell.Y() / dd4hep::mm, - posCell.Z() / dd4hep::mm}); + newCell.setPosition(edm4hep::Vector3f{ + static_cast(posCell.X() / dd4hep::mm), + static_cast(posCell.Y() / dd4hep::mm), + static_cast(posCell.Z() / dd4hep::mm)}); posX += posCell.X() * newCell.getEnergy(); posY += posCell.Y() * newCell.getEnergy(); posZ += posCell.Z() * newCell.getEnergy(); @@ -209,9 +210,10 @@ StatusCode CaloTopoClusterFCCee::execute() { info() << "Problem in erasing cell ID from map." << endmsg; } cluster.setEnergy(energy); - cluster.setPosition(edm4hep::Vector3f{(posX / energy) / dd4hep::mm, - (posY / energy) / dd4hep::mm, - (posZ / energy) / dd4hep::mm}); + cluster.setPosition(edm4hep::Vector3f{ + static_cast((posX / energy) / dd4hep::mm), + static_cast((posY / energy) / dd4hep::mm), + static_cast((posZ / energy) / dd4hep::mm)}); // store deltaR of cluster in time for the moment.. sumPhi = sumPhi / energy; sumTheta = sumTheta / energy;