![]() |
ATLAS Offline Software
|
Helper service that creates muon Identifiers and can be used to print Identifiers. More...
#include <MuonIdHelperSvc.h>
Classes | |
| struct | StationNameData |
Public Member Functions | |
| MuonIdHelperSvc (const std::string &name, ISvcLocator *svc) | |
| default AlgService constructor | |
| virtual | ~MuonIdHelperSvc () override=default |
| destructor | |
| virtual StatusCode | initialize () override |
| AlgTool initilize. | |
| virtual std::string | toString (const Identifier &id) const override |
| print all fields to string | |
| virtual std::string | toStringTech (const Identifier &id) const override |
| print all fields up to technology to string | |
| virtual std::string | toStringStation (const Identifier &id) const override |
| print all fields up to stationName to string | |
| virtual std::string | toStringChamber (const Identifier &id) const override |
| print all fields up to chamber to string | |
| virtual std::string | toStringDetEl (const Identifier &id) const override |
| print all fields up to detector element to string | |
| virtual std::string | toStringGasGap (const Identifier &id) const override |
| print all fields up to gas gap to string | |
| virtual std::string | chamberNameString (const Identifier &id) const override |
| print chamber name to string | |
| virtual bool | isMuon (const Identifier &id) const override |
| returns whether this is a Muon Identifier or not | |
| virtual bool | isMdt (const Identifier &id) const override |
| returns whether this is a MDT Identifier or not | |
| virtual bool | isMM (const Identifier &id) const override |
| returns whether this is a MM Identifier or not | |
| virtual bool | isCsc (const Identifier &id) const override |
| returns whether this is a CSC Identifier or not | |
| virtual bool | isRpc (const Identifier &id) const override |
| returns whether this is a RPC Identifier or not | |
| virtual bool | isTgc (const Identifier &id) const override |
| returns whether this is a TGC Identifier or not | |
| virtual bool | issTgc (const Identifier &id) const override |
| returns whether this is a sTGC Identifier or not | |
| virtual bool | issMdt (const Identifier &id) const override |
| returns whether this is a sMDT Identifier or not | |
| virtual bool | hasHPTDC (const Identifier &id) const override |
| returns whether this Identifier belongs to an MDT with HPTDC or not NOTE that in Run4, no HPTDCs at all are planned to be present any more, so this function should be obsolete from Run4 onwards | |
| virtual bool | measuresPhi (const Identifier &id) const override |
| returns whether channel measures phi or not | |
| virtual bool | isEndcap (const Identifier &id) const override |
| returns whether this is an endcap Identifier or not | |
| virtual bool | isTrigger (const Identifier &id) const override |
| returns whether trigger chamber id or not | |
| virtual bool | isSmallChamber (const Identifier &id) const override |
| returns whether this is a small chamber, always returns true for TGCs | |
| virtual int | gasGap (const Identifier &id) const override |
| returns gas gap: gasGap for RPC + TGC, wireLayer for CSC, tube for MDT | |
| virtual Identifier | chamberId (const Identifier &id) const override |
| create a chamber ID | |
| virtual Identifier | detElId (const Identifier &id) const override |
| create a detector element ID | |
| virtual Identifier | gasGapId (const Identifier &id) const override |
| create a gasGap ID (will return layer Id for MDTs) | |
| virtual Identifier | layerId (const Identifier &id) const override |
| create a layer ID, returns tube id for the MDTs | |
| virtual const MdtIdHelper & | mdtIdHelper () const override |
| access to MdtIdHelper | |
| virtual const RpcIdHelper & | rpcIdHelper () const override |
| access to RpcIdHelper | |
| virtual const TgcIdHelper & | tgcIdHelper () const override |
| access to TgcIdHelper | |
| virtual const CscIdHelper & | cscIdHelper () const override |
| access to CscIdHelper | |
| virtual const sTgcIdHelper & | stgcIdHelper () const override |
| access to TgcIdHelper | |
| virtual const MmIdHelper & | mmIdHelper () const override |
| access to CscIdHelper | |
| virtual MuonStationIndex::ChIndex | chamberIndex (const Identifier &id) const override |
| calculate chamber index from Identifier | |
| virtual MuonStationIndex::StIndex | stationIndex (const Identifier &id) const override |
| calculate station index from Identifier | |
| virtual MuonStationIndex::PhiIndex | phiIndex (const Identifier &id) const override |
| calculate phi index from Identifier (not supported for MDT hits) | |
| virtual MuonStationIndex::DetectorRegionIndex | regionIndex (const Identifier &id) const override |
| calculate detector region index from Identifier | |
| virtual MuonStationIndex::LayerIndex | layerIndex (const Identifier &id) const override |
| calculate layer index from Identifier | |
| virtual MuonStationIndex::TechnologyIndex | technologyIndex (const Identifier &id) const override |
| calculate layer index from Identifier | |
| virtual int | stationPhi (const Identifier &id) const override |
| Return stationPhi for all technologies. | |
| virtual int | stationEta (const Identifier &id) const override |
| Return stationEta for all technologies. | |
| virtual std::string | stationNameString (const Identifier &id) const override |
| Return the station name string for all technologies. | |
| virtual int | stationName (const Identifier &id) const override |
| Return stationName for all technologies. | |
| virtual int | stationRegion (const Identifier &id) const override |
| Return stationRegion for all technologies. | |
| virtual int | sector (const Identifier &id) const override |
| return sector number 1-16, odd=large, even=small | |
| virtual const std::set< MuonStationIndex::TechnologyIndex > & | technologiesInStation (MuonStationIndex::StIndex stIndex) const override |
| Recieve all technologies in a station. | |
| bool | hasRPC () const override |
| bool | hasTGC () const override |
| bool | hasMDT () const override |
| bool | hasCSC () const override |
| bool | hasSTGC () const override |
| bool | hasMM () const override |
| virtual IdentifierHash | moduleHash (const Identifier &id) const override |
| Returns the module hash associated to an Identifier. | |
| virtual IdentifierHash | detElementHash (const Identifier &id) const override |
| Returns the detector element hash associated to an Identifier. | |
Private Types | |
| using | TechIdx = MuonStationIndex::TechnologyIndex |
| using | ChIdx = MuonStationIndex::ChIndex |
| using | StIdx = MuonStationIndex::StIndex |
| using | PhiIdx = MuonStationIndex::PhiIndex |
Private Member Functions | |
| IdentifierHash | moduleHash (const MuonIdHelper &idHelper, const Identifier &id) const |
| IdentifierHash | detElementHash (const MuonIdHelper &idHelper, const Identifier &id) const |
Private Attributes | |
| const RpcIdHelper * | m_rpcIdHelper {nullptr} |
| Sub detector specific IdHelpers. | |
| const TgcIdHelper * | m_tgcIdHelper {nullptr} |
| const CscIdHelper * | m_cscIdHelper {nullptr} |
| const MdtIdHelper * | m_mdtIdHelper {nullptr} |
| const MmIdHelper * | m_mmIdHelper {nullptr} |
| const sTgcIdHelper * | m_stgcIdHelper {nullptr} |
| const MuonIdHelper * | m_primaryHelper {nullptr} |
| Gaudi::Property< bool > | m_hasMDT {this, "HasMDT", true, "Specify whether the current detector layour contains MDT chambers"} |
| Gaudi::Property< bool > | m_hasRPC {this, "HasRPC", true, "Specify whether the current detector layour contains RPC chambers"} |
| Gaudi::Property< bool > | m_hasTGC {this, "HasTGC", true, "Specify whether the current detector layour contains TGC chambers"} |
| Gaudi::Property< bool > | m_hasCSC {this, "HasCSC", true, "Specify whether current detector layout contains CSC chambers"} |
| Gaudi::Property< bool > | m_hasSTGC {this, "HasSTGC", true, "Specify whether current detector layout contains STGC chambers"} |
| Gaudi::Property< bool > | m_hasMM {this, "HasMM", true, "Specify whether current detector layout contains MicroMegas chambers"} |
| ServiceHandle< StoreGateSvc > | m_detStore {this, "DetectorStore", "DetectorStore"} |
| std::vector< StationNameData > | m_stationNameData {} |
| std::vector< TechIdx > | m_technologies {} |
| int | m_BIS_stat {-1} |
| std::unordered_set< Identifier > | m_smdt_stat {} |
| std::array< std::set< TechIdx >, static_cast< int >(StIdx::StIndexMax)> | m_techPerStation {} |
| Array holding which technologies are there per station. | |
Helper service that creates muon Identifiers and can be used to print Identifiers.
Definition at line 19 of file MuonIdHelperSvc.h.
|
private |
Definition at line 202 of file MuonIdHelperSvc.h.
|
private |
Definition at line 204 of file MuonIdHelperSvc.h.
|
private |
Definition at line 203 of file MuonIdHelperSvc.h.
|
private |
Definition at line 201 of file MuonIdHelperSvc.h.
| Muon::MuonIdHelperSvc::MuonIdHelperSvc | ( | const std::string & | name, |
| ISvcLocator * | svc ) |
default AlgService constructor
Definition at line 15 of file MuonIdHelperSvc.cxx.
|
overridevirtualdefault |
destructor
|
overridevirtual |
create a chamber ID
Definition at line 419 of file MuonIdHelperSvc.cxx.
|
overridevirtual |
calculate chamber index from Identifier
Definition at line 271 of file MuonIdHelperSvc.cxx.
|
overridevirtual |
print chamber name to string
Definition at line 370 of file MuonIdHelperSvc.cxx.
|
inlineoverridevirtual |
|
overridevirtual |
Returns the detector element hash associated to an Identifier.
Definition at line 651 of file MuonIdHelperSvc.cxx.
|
inlineprivate |
Definition at line 633 of file MuonIdHelperSvc.cxx.
|
overridevirtual |
create a detector element ID
Definition at line 438 of file MuonIdHelperSvc.cxx.
|
overridevirtual |
returns gas gap: gasGap for RPC + TGC, wireLayer for CSC, tube for MDT
Definition at line 186 of file MuonIdHelperSvc.cxx.
|
overridevirtual |
create a gasGap ID (will return layer Id for MDTs)
Definition at line 474 of file MuonIdHelperSvc.cxx.
|
override |
Definition at line 611 of file MuonIdHelperSvc.cxx.
|
overridevirtual |
returns whether this Identifier belongs to an MDT with HPTDC or not NOTE that in Run4, no HPTDCs at all are planned to be present any more, so this function should be obsolete from Run4 onwards
NOTE that in Run4, no HPTDCs at all are planned to be present any more, so this function should be obsolete from Run4 onwards
Definition at line 241 of file MuonIdHelperSvc.cxx.
|
override |
Definition at line 610 of file MuonIdHelperSvc.cxx.
|
override |
Definition at line 613 of file MuonIdHelperSvc.cxx.
|
override |
Definition at line 608 of file MuonIdHelperSvc.cxx.
|
override |
Definition at line 612 of file MuonIdHelperSvc.cxx.
|
override |
Definition at line 609 of file MuonIdHelperSvc.cxx.
|
overridevirtual |
AlgTool initilize.
Find an id helper that is not a nullptr
Cache the sMDT stations
Definition at line 18 of file MuonIdHelperSvc.cxx.
|
overridevirtual |
returns whether this is a CSC Identifier or not
Definition at line 212 of file MuonIdHelperSvc.cxx.
|
overridevirtual |
returns whether this is an endcap Identifier or not
Definition at line 267 of file MuonIdHelperSvc.cxx.
|
overridevirtual |
returns whether this is a MDT Identifier or not
Definition at line 206 of file MuonIdHelperSvc.cxx.
|
overridevirtual |
returns whether this is a MM Identifier or not
Definition at line 209 of file MuonIdHelperSvc.cxx.
|
overridevirtual |
returns whether this is a Muon Identifier or not
Definition at line 203 of file MuonIdHelperSvc.cxx.
|
overridevirtual |
returns whether this is a RPC Identifier or not
Definition at line 215 of file MuonIdHelperSvc.cxx.
|
overridevirtual |
returns whether this is a small chamber, always returns true for TGCs
Definition at line 269 of file MuonIdHelperSvc.cxx.
|
overridevirtual |
returns whether this is a sMDT Identifier or not
Definition at line 232 of file MuonIdHelperSvc.cxx.
|
overridevirtual |
returns whether this is a sTGC Identifier or not
Definition at line 223 of file MuonIdHelperSvc.cxx.
|
overridevirtual |
returns whether this is a TGC Identifier or not
Definition at line 219 of file MuonIdHelperSvc.cxx.
|
overridevirtual |
returns whether trigger chamber id or not
Definition at line 263 of file MuonIdHelperSvc.cxx.
|
overridevirtual |
create a layer ID, returns tube id for the MDTs
Return Identifier for the Mdts
Definition at line 454 of file MuonIdHelperSvc.cxx.
|
overridevirtual |
calculate layer index from Identifier
Definition at line 331 of file MuonIdHelperSvc.cxx.
|
inlineoverridevirtual |
|
overridevirtual |
returns whether channel measures phi or not
Definition at line 249 of file MuonIdHelperSvc.cxx.
|
inlineoverridevirtual |
|
overridevirtual |
Returns the module hash associated to an Identifier.
Definition at line 641 of file MuonIdHelperSvc.cxx.
|
inlineprivate |
Definition at line 625 of file MuonIdHelperSvc.cxx.
|
overridevirtual |
calculate phi index from Identifier (not supported for MDT hits)
Definition at line 287 of file MuonIdHelperSvc.cxx.
|
overridevirtual |
calculate detector region index from Identifier
Definition at line 326 of file MuonIdHelperSvc.cxx.
|
inlineoverridevirtual |
|
overridevirtual |
return sector number 1-16, odd=large, even=small
Definition at line 580 of file MuonIdHelperSvc.cxx.
|
overridevirtual |
Return stationEta for all technologies.
Definition at line 517 of file MuonIdHelperSvc.cxx.
|
overridevirtual |
calculate station index from Identifier
Definition at line 279 of file MuonIdHelperSvc.cxx.
|
overridevirtual |
Return stationName for all technologies.
Definition at line 538 of file MuonIdHelperSvc.cxx.
|
overridevirtual |
Return the station name string for all technologies.
Definition at line 615 of file MuonIdHelperSvc.cxx.
|
overridevirtual |
Return stationPhi for all technologies.
Definition at line 496 of file MuonIdHelperSvc.cxx.
|
overridevirtual |
Return stationRegion for all technologies.
Definition at line 559 of file MuonIdHelperSvc.cxx.
|
inlineoverridevirtual |
|
overridevirtual |
Recieve all technologies in a station.
Definition at line 228 of file MuonIdHelperSvc.cxx.
|
overridevirtual |
calculate layer index from Identifier
Definition at line 335 of file MuonIdHelperSvc.cxx.
|
inlineoverridevirtual |
|
overridevirtual |
print all fields to string
Definition at line 344 of file MuonIdHelperSvc.cxx.
|
overridevirtual |
print all fields up to chamber to string
Definition at line 378 of file MuonIdHelperSvc.cxx.
|
overridevirtual |
print all fields up to detector element to string
Definition at line 388 of file MuonIdHelperSvc.cxx.
|
overridevirtual |
print all fields up to gas gap to string
Definition at line 409 of file MuonIdHelperSvc.cxx.
|
overridevirtual |
print all fields up to stationName to string
Definition at line 374 of file MuonIdHelperSvc.cxx.
|
overridevirtual |
print all fields up to technology to string
Definition at line 366 of file MuonIdHelperSvc.cxx.
|
private |
Definition at line 215 of file MuonIdHelperSvc.h.
|
private |
Definition at line 185 of file MuonIdHelperSvc.h.
|
private |
Definition at line 199 of file MuonIdHelperSvc.h.
|
private |
Definition at line 195 of file MuonIdHelperSvc.h.
|
private |
Definition at line 192 of file MuonIdHelperSvc.h.
|
private |
Definition at line 197 of file MuonIdHelperSvc.h.
|
private |
Definition at line 193 of file MuonIdHelperSvc.h.
|
private |
Definition at line 196 of file MuonIdHelperSvc.h.
|
private |
Definition at line 194 of file MuonIdHelperSvc.h.
|
private |
Definition at line 186 of file MuonIdHelperSvc.h.
|
private |
Definition at line 187 of file MuonIdHelperSvc.h.
|
private |
Definition at line 190 of file MuonIdHelperSvc.h.
|
private |
|
private |
Definition at line 216 of file MuonIdHelperSvc.h.
|
private |
Definition at line 212 of file MuonIdHelperSvc.h.
|
private |
Definition at line 188 of file MuonIdHelperSvc.h.
|
private |
Definition at line 213 of file MuonIdHelperSvc.h.
|
private |
Array holding which technologies are there per station.
Definition at line 218 of file MuonIdHelperSvc.h.
|
private |
Definition at line 184 of file MuonIdHelperSvc.h.