ATLAS Offline Software
SiHitIdHelper.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef INDETSIMEVENT_SIHITIDHELPER
6 #define INDETSIMEVENT_SIHITIDHELPER
7 
8 //
9 // This is a helper class to build an identifing integer used by
10 // the simulation. It inherits from HitIdHelper, in order to get
11 // all the packing and shifting for free.
12 // The class is a singleton and a static GetHelper() is provided
13 // the constructor calls the Initialize() method which sets all the
14 // field dimensions
15 // Methods are provided to get access to the SiTracker Geometry
16 // description
17 //
18 
19 
20 //
21 // Base Class
23 
24 
26  public:
27  //
28  // Access to the helper
29  static const SiHitIdHelper* GetHelper();
30  //
31  // Info retrieval:
32  // Pixel, SCT, or HGTD
33  bool isPixel(const int& hid) const;
34  bool isSCT(const int& hid) const;
35  bool isHGTD(const int& hid) const;
36  bool isPLR(const int& hid) const;
37 
38  // Barrel or Endcap
39  int getBarrelEndcap(const int& hid) const;
40 
41  // Layer/Disk
42  int getLayerDisk(const int& hid) const;
43 
44  // eta module
45  int getEtaModule(const int& hid) const;
46 
47  // phi module&
48  int getPhiModule(const int& hid) const;
49 
50  // side
51  int getSide(const int& hid) const;
52  //
53  // Info packing:
54  int buildHitId(const int, const int, const int, const int, const int, const int) const;
55 
56  int buildHitIdFromStringITk(int part, const std::string&) const;
57 
58  int buildHitIdFromStringHGTD(int part, const std::string&) const;
59 
60  private:
61  //
62  // private constructor to have a singleton
63  SiHitIdHelper();
64  //
65  // Initialize the helper, only called by the constructor
66  void Initialize();
67  //
68  // ITk/HGTD flag
69  bool m_isITkHGTD{};
70 };
71 
72 #endif // INDETSIMEVENT_SIHITIDHELPER
LArG4FSStartPointFilter.part
part
Definition: LArG4FSStartPointFilter.py:21
SiHitIdHelper::getPhiModule
int getPhiModule(const int &hid) const
Definition: SiHitIdHelper.cxx:104
SiHitIdHelper::getSide
int getSide(const int &hid) const
Definition: SiHitIdHelper.cxx:110
SiHitIdHelper::buildHitIdFromStringHGTD
int buildHitIdFromStringHGTD(int part, const std::string &) const
Definition: SiHitIdHelper.cxx:149
SiHitIdHelper::m_isITkHGTD
bool m_isITkHGTD
Definition: SiHitIdHelper.h:69
SiHitIdHelper::SiHitIdHelper
SiHitIdHelper()
Definition: SiHitIdHelper.cxx:15
SiHitIdHelper::buildHitIdFromStringITk
int buildHitIdFromStringITk(int part, const std::string &) const
Definition: SiHitIdHelper.cxx:131
SiHitIdHelper::getLayerDisk
int getLayerDisk(const int &hid) const
Definition: SiHitIdHelper.cxx:92
SiHitIdHelper
Definition: SiHitIdHelper.h:25
HitIdHelper
Definition: HitIdHelper.h:23
SiHitIdHelper::getEtaModule
int getEtaModule(const int &hid) const
Definition: SiHitIdHelper.cxx:98
SiHitIdHelper::Initialize
void Initialize()
Definition: SiHitIdHelper.cxx:24
SiHitIdHelper::isPixel
bool isPixel(const int &hid) const
Definition: SiHitIdHelper.cxx:58
HitIdHelper.h
SiHitIdHelper::getBarrelEndcap
int getBarrelEndcap(const int &hid) const
Definition: SiHitIdHelper.cxx:86
SiHitIdHelper::GetHelper
static const SiHitIdHelper * GetHelper()
Definition: SiHitIdHelper.cxx:19
SiHitIdHelper::isPLR
bool isPLR(const int &hid) const
Definition: SiHitIdHelper.cxx:76
SiHitIdHelper::isSCT
bool isSCT(const int &hid) const
Definition: SiHitIdHelper.cxx:64
SiHitIdHelper::buildHitId
int buildHitId(const int, const int, const int, const int, const int, const int) const
Definition: SiHitIdHelper.cxx:118
SiHitIdHelper::isHGTD
bool isHGTD(const int &hid) const
Definition: SiHitIdHelper.cxx:70