ATLAS Offline Software
RpcHitIdHelper.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 RpcHitIdHelper_H
6 #define RpcHitIdHelper_H
7 
8 #include <string>
9 
10 //base class
12 
13 class RpcHitIdHelper: public HitIdHelper {
14 public:
15 
16  static const RpcHitIdHelper* GetHelper(unsigned int nGasGaps=2); // all non-BI RPCs (Run1+2) have 2 gas gaps, only BI RPCs have 3 gas gaps
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 GetDoubletR(const int& hid) const;
22  int GetGasGapLayer(const int& hid) const;
23  int GetDoubletPhi(const int& hid) const;
24  int GetDoubletZ(const int& hid) const;
25  int GetMeasuresPhi(const int& hid) const;
26 
27  int BuildRpcHitId (const std::string&, const int, const int, const int,
28  const int, const int, const int, const int) const;
29 
30 private:
31  RpcHitIdHelper(unsigned int nGasGaps);
32  void Initialize(unsigned int nGasGaps);
33  void InitializeStationName();
34 };
35 
36 #endif
RpcHitIdHelper::InitializeStationName
void InitializeStationName()
Definition: RpcHitIdHelper.cxx:41
RpcHitIdHelper::GetStationName
std::string GetStationName(const int &hid) const
Definition: RpcHitIdHelper.cxx:58
RpcHitIdHelper::GetHelper
static const RpcHitIdHelper * GetHelper(unsigned int nGasGaps=2)
Definition: RpcHitIdHelper.cxx:23
RpcHitIdHelper::GetDoubletPhi
int GetDoubletPhi(const int &hid) const
Definition: RpcHitIdHelper.cxx:88
RpcHitIdHelper::GetMeasuresPhi
int GetMeasuresPhi(const int &hid) const
Definition: RpcHitIdHelper.cxx:96
RpcHitIdHelper::GetDoubletZ
int GetDoubletZ(const int &hid) const
Definition: RpcHitIdHelper.cxx:92
RpcHitIdHelper::BuildRpcHitId
int BuildRpcHitId(const std::string &, const int, const int, const int, const int, const int, const int, const int) const
Definition: RpcHitIdHelper.cxx:102
RpcHitIdHelper::GetPhiSector
int GetPhiSector(const int &hid) const
Definition: RpcHitIdHelper.cxx:69
RpcHitIdHelper::Initialize
void Initialize(unsigned int nGasGaps)
Definition: RpcHitIdHelper.cxx:29
RpcHitIdHelper::RpcHitIdHelper
RpcHitIdHelper(unsigned int nGasGaps)
Definition: RpcHitIdHelper.cxx:17
RpcHitIdHelper::SetStationName
void SetStationName(const std::string &name, int &hid) const
Definition: RpcHitIdHelper.cxx:48
RpcHitIdHelper::GetGasGapLayer
int GetGasGapLayer(const int &hid) const
Definition: RpcHitIdHelper.cxx:84
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
HitIdHelper
Definition: HitIdHelper.h:23
RpcHitIdHelper::GetDoubletR
int GetDoubletR(const int &hid) const
Definition: RpcHitIdHelper.cxx:80
HitIdHelper.h
RpcHitIdHelper
Definition: RpcHitIdHelper.h:13
RpcHitIdHelper::GetZSector
int GetZSector(const int &hid) const
Definition: RpcHitIdHelper.cxx:74