Skip to content

Commit

Permalink
pre-commit done
Browse files Browse the repository at this point in the history
  • Loading branch information
Katerina Kostova committed Aug 1, 2024
1 parent 38836ee commit 90510b6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion k4GaudiPandora/include/CalorimeterHitType.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ class CHT {
CHT(int type) : m_type(type) {}

/** C'tor for encoding the calo type inforamtion */
CHT(CaloType c, CaloID n, Layout l, unsigned lay) : m_type(c * fCaloType + n * fCaloID + l * fLayout + lay * fLayer) {}
CHT(CaloType c, CaloID n, Layout l, unsigned lay)
: m_type(c * fCaloType + n * fCaloID + l * fLayout + lay * fLayer) {}

/** calorimeter type: CHT::em , CHT::had, CHT::muon */
CaloType caloType() const { return (CaloType)(m_type % fCaloID); }
Expand Down
2 changes: 1 addition & 1 deletion k4GaudiPandora/include/DDSimpleMuonDigi.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@

#include "Gaudi/Property.h"
#include "edm4hep/CaloHitContributionCollection.h"
#include "edm4hep/CaloHitSimCaloHitLinkCollection.h"
#include "edm4hep/CalorimeterHitCollection.h"
#include "edm4hep/EventHeaderCollection.h"
#include "edm4hep/CaloHitSimCaloHitLinkCollection.h"
#include "edm4hep/SimCalorimeterHitCollection.h"

#include "CalorimeterHitType.h"
Expand Down
8 changes: 4 additions & 4 deletions k4GaudiPandora/src/DDSimpleMuonDigi.cc
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ StatusCode DDSimpleMuonDigi::initialize() {
//Get the number of Layers in the Endcap and Barrel
int layersEndcap = 0, layersBarrel = 0;
try {
const auto mainDetector = m_geoSvc->getDetector();
dd4hep::DetElement theDetector = mainDetector->detector(m_detectorNameBarrel);
const auto mainDetector = m_geoSvc->getDetector();
dd4hep::DetElement theDetector = mainDetector->detector(m_detectorNameBarrel);
const dd4hep::rec::LayeredCalorimeterData* yokeBarrelParameters =
theDetector.extension<dd4hep::rec::LayeredCalorimeterData>();

Expand All @@ -62,8 +62,8 @@ StatusCode DDSimpleMuonDigi::initialize() {
debug() << " oops - no Yoke Barrel available: " << e.what() << std::endl;
}
try {
const auto mainDetector = m_geoSvc->getDetector();
dd4hep::DetElement theDetector = mainDetector->detector(m_detectorNameEndcap);
const auto mainDetector = m_geoSvc->getDetector();
dd4hep::DetElement theDetector = mainDetector->detector(m_detectorNameEndcap);
const dd4hep::rec::LayeredCalorimeterData* yokeEndcapParameters =
theDetector.extension<dd4hep::rec::LayeredCalorimeterData>();
layersEndcap = yokeEndcapParameters->layers.size();
Expand Down

0 comments on commit 90510b6

Please sign in to comment.