diff --git a/MuonSpectrometer/MuonIdHelpers/MuonIdHelpers/MdtIdHelper.h b/MuonSpectrometer/MuonIdHelpers/MuonIdHelpers/MdtIdHelper.h index 1a5ff959128257e83bbaa9286a13ac1ae94e5f77..80d90c2860d40b3e8edfd2a8b4e1dfd6f0fbc336 100644 --- a/MuonSpectrometer/MuonIdHelpers/MuonIdHelpers/MdtIdHelper.h +++ b/MuonSpectrometer/MuonIdHelpers/MuonIdHelpers/MdtIdHelper.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration */ // ****************************************************************************** @@ -144,8 +144,10 @@ class MdtIdHelper : public MuonIdHelper int gasGap(const Identifier& id) const; /// always false for MDTs bool measuresPhi(const Identifier& id) const; - /// is this and sMDT chamber + /// is this an sMDT chamber bool isSmallMdt(const Identifier& id) const; + /// is this a BMG chamber + bool isBMG(const Identifier& id) const; private: @@ -348,6 +350,13 @@ inline bool MdtIdHelper::isSmallMdt(const Identifier& id) const else return false; } +inline bool MdtIdHelper::isBMG(const Identifier& id) const +{ + int index=stationName(id); + if(stationNameIndex("BMG")==index) return true; + else return false; +} + inline int MdtIdHelper::channel(const Identifier& id) const {