Skip to content
Snippets Groups Projects
Commit 9447dd41 authored by Walter Lampl's avatar Walter Lampl
Browse files

Merge branch 'isSmallMdt' into 'master'

Add isSmallMdt helper function to the MdtIdHelper

See merge request !20902
parents 7654ee6c 04e04fba
9 merge requests!58791DataQualityConfigurations: Modify L1Calo config for web display,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!45405updated ART test cron job,!42417Draft: DIRE and VINCIA Base Fragments for Pythia 8.3,!28528Revert 63f845ae,!27054Atr20369 210,!26342Monopole: Handle fractionally charged particles,!20902Add isSmallMdt helper function to the MdtIdHelper
......@@ -144,6 +144,8 @@ 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
bool isSmallMdt(const Identifier& id) const;
private:
......@@ -339,6 +341,12 @@ inline bool MdtIdHelper::measuresPhi(const Identifier& /*id*/) const
}
inline bool MdtIdHelper::isSmallMdt(const Identifier& id) const
{
int index=stationName(id);
if(stationNameIndex("BME")==index || stationNameIndex("BMG")==index) return true;
else return false;
}
inline int MdtIdHelper::channel(const Identifier& id) const
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment