ATLAS Offline Software
Loading...
Searching...
No Matches
TRTHitIdHelper.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef INDETSIMEVENT_TRTHITIDHELPER
6#define INDETSIMEVENT_TRTHITIDHELPER
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 TRT Geometry
16// description
17//
18
19
20//
21// Base Class
23
24
26 public:
27 //
28 // Access to the helper
29 static const TRTHitIdHelper* GetHelper();
30 //
31 // Info retrieval:
32 // Barrel or Endcap
33 bool isBarrel(const int& hid) const;
34 bool isEndcap(const int& hid) const;
35 //
36 // Positive or negative side
37 bool isPositive(const int& hid) const;
38 bool isNegative(const int& hid) const;
39
40 // Ring or Wheel
41 int getRingWheel(const int& hid) const;
42
43 // PhiSector
44 int getPhiSector(const int& hid) const;
45
46 // Layer Plane
47 int getLayerPlane(const int& hid) const;
48
49 // straw
50 int getStraw(const int& hid) const;
51 //
52 // Info packing:
53 int buildHitId(const int, const int, const int, const int, const int, const int) const;
54
55 private:
56 //
57 // private constructor to have a singleton
59 //
60 // Initialize the helper, only called by the constructor
61 void Initialize();
62};
63
64#endif // INDETSIMEVENT_TRTHITIDHELPER
bool isPositive(const int &hid) const
int getPhiSector(const int &hid) const
int getRingWheel(const int &hid) const
bool isBarrel(const int &hid) const
int getStraw(const int &hid) const
bool isEndcap(const int &hid) const
static const TRTHitIdHelper * GetHelper()
int buildHitId(const int, const int, const int, const int, const int, const int) const
int getLayerPlane(const int &hid) const
bool isNegative(const int &hid) const