Skip to content
Snippets Groups Projects
Commit b6269d55 authored by scott snyder's avatar scott snyder Committed by scott snyder
Browse files

MuonIdHelpers: Add methods to test for the existence of subdetector helpers.

Add MuonIdHelperTool::has*IdHelper(), to provide a correct way of testing
for the presence of the subdetector helpers.
parent 845e88b9
No related branches found
No related tags found
7 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,!27297MuonIdHelpers: Add methods to test for the existence of subdetector helpers.
......@@ -118,21 +118,39 @@ namespace Muon {
/** @brief access to MdtIdHelper */
const MdtIdHelper& mdtIdHelper() const { return *m_mdtIdHelper; }
/** @brief Test presence of MdtIdHelper */
bool hasMdtIdHelper() const { return m_mdtIdHelper != nullptr; }
/** @brief access to RpcIdHelper */
const RpcIdHelper& rpcIdHelper() const { return *m_rpcIdHelper; }
/** @brief Test presence of RpcIdHelper */
bool hasRpcIdHelper() const { return m_rpcIdHelper != nullptr; }
/** @brief access to TgcIdHelper */
const TgcIdHelper& tgcIdHelper() const { return *m_tgcIdHelper; }
/** @brief Test presence of TgcIdHelper */
bool hasTgcIdHelper() const { return m_tgcIdHelper != nullptr; }
/** @brief access to CscIdHelper */
const CscIdHelper& cscIdHelper() const { return *m_cscIdHelper; }
/** @brief Test presence of CscIdHelper */
bool hasCscIdHelper() const { return m_cscIdHelper != nullptr; }
/** @brief access to TgcIdHelper */
const sTgcIdHelper& stgcIdHelper() const { return *m_stgcIdHelper; }
/** @brief Test presence of sTgcIdHelper */
bool hassTgcIdHelper() const { return m_stgcIdHelper != nullptr; }
/** @brief access to CscIdHelper */
const MmIdHelper& mmIdHelper() const { return *m_mmIdHelper; }
/** @brief Test presence of sTgcIdHelper */
bool hasMmIdHelper() const { return m_mmIdHelper != nullptr; }
/** @brief calculate chamber index from Identifier */
MuonStationIndex::ChIndex chamberIndex( 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