From 5602e4859872777dd07de7e97f6fe59904e5a895 Mon Sep 17 00:00:00 2001 From: John Derek Chapman <chapman@hep.phy.cam.ac.uk> Date: Wed, 25 Mar 2020 13:04:44 +0000 Subject: [PATCH] Merge branch 'nsw_mmid' into '21.3' Adding identification of stereo strips to MM helpers See merge request atlas/athena!31459 (cherry picked from commit c15b43b140f36b0998bdc839d8dfcf8e6f4384ab) 020d2bef adding identification of stereo strips to MM helpers --- .../MuonIdHelpers/MuonIdHelpers/MmIdHelper.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/MuonSpectrometer/MuonIdHelpers/MuonIdHelpers/MmIdHelper.h b/MuonSpectrometer/MuonIdHelpers/MuonIdHelpers/MmIdHelper.h index 55c0ddd11cba..a6448228ec2c 100644 --- a/MuonSpectrometer/MuonIdHelpers/MuonIdHelpers/MmIdHelper.h +++ b/MuonSpectrometer/MuonIdHelpers/MuonIdHelpers/MmIdHelper.h @@ -93,7 +93,7 @@ class MmIdHelper : public MuonIdHelper { int gasGap(const Identifier& id) const; int multilayer(const Identifier& id) const; int channel(const Identifier& id) const; - bool measuresPhi(const Identifier& id) const; //Returns false + bool measuresPhi(const Identifier& id) const; //Returns true for stereo layers int numberOfMultilayers(const Identifier& id) const; @@ -301,8 +301,12 @@ inline int MmIdHelper::gasGapMin() const { return GasGapMin; } /*******************************************************************************/ -inline bool MmIdHelper::measuresPhi(const Identifier& /*id*/) const{ - return false; +inline bool MmIdHelper::measuresPhi(const Identifier& id) const{ + bool measPhi = false; + int ml = multilayer(id); + int gg = gasGap(id); + if ( (ml==1 && gg>2) || (ml==2 && gg<3) ) measPhi = true; + return measPhi; } /*******************************************************************************/ inline int MmIdHelper::gasGapMax() const { -- GitLab