ATLAS Offline Software
MicromegasHitIdHelper.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 MicromegasHitIdHelper_H
6 #define MicromegasHitIdHelper_H
7 
8 #include <string>
9 
10 //base class
12 
14 public:
15 
16  static const MicromegasHitIdHelper* GetHelper();
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 GetSide(const int& hid) const;
24 
25  int BuildMicromegasHitId (const std::string&, const int, const int, const int,
26  const int, const int) const;
27 
28 private:
30  void Initialize();
31  void InitializeStationName();
32 };
33 
34 #endif
MicromegasHitIdHelper::GetSide
int GetSide(const int &hid) const
Definition: MicromegasHitIdHelper.cxx:94
MicromegasHitIdHelper::GetStationName
std::string GetStationName(const int &hid) const
Definition: MicromegasHitIdHelper.cxx:61
MicromegasHitIdHelper::GetMultiLayer
int GetMultiLayer(const int &hid) const
Definition: MicromegasHitIdHelper.cxx:84
MicromegasHitIdHelper::Initialize
void Initialize()
Definition: MicromegasHitIdHelper.cxx:31
MicromegasHitIdHelper::InitializeStationName
void InitializeStationName()
Definition: MicromegasHitIdHelper.cxx:41
MicromegasHitIdHelper::SetStationName
void SetStationName(const std::string &name, int &hid) const
Definition: MicromegasHitIdHelper.cxx:49
MicromegasHitIdHelper::GetZSector
int GetZSector(const int &hid) const
Definition: MicromegasHitIdHelper.cxx:78
MicromegasHitIdHelper::GetLayer
int GetLayer(const int &hid) const
Definition: MicromegasHitIdHelper.cxx:89
MicromegasHitIdHelper
Definition: MicromegasHitIdHelper.h:13
MicromegasHitIdHelper::GetPhiSector
int GetPhiSector(const int &hid) const
Definition: MicromegasHitIdHelper.cxx:73
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
HitIdHelper
Definition: HitIdHelper.h:23
MicromegasHitIdHelper::GetHelper
static const MicromegasHitIdHelper * GetHelper()
Definition: MicromegasHitIdHelper.cxx:25
MicromegasHitIdHelper::BuildMicromegasHitId
int BuildMicromegasHitId(const std::string &, const int, const int, const int, const int, const int) const
Definition: MicromegasHitIdHelper.cxx:101
HitIdHelper.h
MicromegasHitIdHelper::MicromegasHitIdHelper
MicromegasHitIdHelper()
Definition: MicromegasHitIdHelper.cxx:19