ATLAS Offline Software
MdtHitIdHelper.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef MdtHitIdHelper_H
6 #define MdtHitIdHelper_H
7 
8 #include <string>
9 
10 //base class
12 
13 class MdtHitIdHelper: public HitIdHelper {
14 public:
15 
16  static const MdtHitIdHelper* GetHelper(unsigned int nTubes=78); // all MDT/sMDT chambers used in Run1/2 have maximum 78 tubes
17  std::string GetStationName(const int& hid) const;
18  void SetStationName(const std::string& name, int& hid) const;
19  int GetPhiSector(const int& hid) const;
20  int GetZSector(const int& hid) const;
21  int GetMultiLayer(const int& hid) const;
22  int GetLayer(const int& hid) const;
23  int GetTube(const int& hid) const;
24 
25  int BuildMdtHitId (const std::string&, const int, const int, const int,
26  const int, const int) const;
27 
28 private:
29  MdtHitIdHelper(unsigned int nTubes);
30  void Initialize(unsigned int nTubes);
31  void InitializeStationName();
32 };
33 
34 #endif
MdtHitIdHelper::GetMultiLayer
int GetMultiLayer(const int &hid) const
Definition: MdtHitIdHelper.cxx:79
MdtHitIdHelper
Definition: MdtHitIdHelper.h:13
MdtHitIdHelper::Initialize
void Initialize(unsigned int nTubes)
Definition: MdtHitIdHelper.cxx:30
MdtHitIdHelper::SetStationName
void SetStationName(const std::string &name, int &hid) const
Definition: MdtHitIdHelper.cxx:46
MdtHitIdHelper::GetZSector
int GetZSector(const int &hid) const
Definition: MdtHitIdHelper.cxx:73
MdtHitIdHelper::GetHelper
static const MdtHitIdHelper * GetHelper(unsigned int nTubes=78)
Definition: MdtHitIdHelper.cxx:24
MdtHitIdHelper::MdtHitIdHelper
MdtHitIdHelper(unsigned int nTubes)
Definition: MdtHitIdHelper.cxx:18
MdtHitIdHelper::GetPhiSector
int GetPhiSector(const int &hid) const
Definition: MdtHitIdHelper.cxx:68
MdtHitIdHelper::GetStationName
std::string GetStationName(const int &hid) const
Definition: MdtHitIdHelper.cxx:57
MdtHitIdHelper::GetLayer
int GetLayer(const int &hid) const
Definition: MdtHitIdHelper.cxx:84
MdtHitIdHelper::InitializeStationName
void InitializeStationName()
Definition: MdtHitIdHelper.cxx:39
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
HitIdHelper
Definition: HitIdHelper.h:23
HitIdHelper.h
MdtHitIdHelper::GetTube
int GetTube(const int &hid) const
Definition: MdtHitIdHelper.cxx:89
MdtHitIdHelper::BuildMdtHitId
int BuildMdtHitId(const std::string &, const int, const int, const int, const int, const int) const
Definition: MdtHitIdHelper.cxx:95