ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetSimEvent
InDetSimEvent
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
22
#include "
HitManagement/HitIdHelper.h
"
23
24
25
class
TRTHitIdHelper
:
HitIdHelper
{
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
58
TRTHitIdHelper
();
59
//
60
// Initialize the helper, only called by the constructor
61
void
Initialize
();
62
};
63
64
#endif
// INDETSIMEVENT_TRTHITIDHELPER
HitIdHelper.h
HitIdHelper::HitIdHelper
HitIdHelper()
Definition
HitIdHelper.h:25
TRTHitIdHelper::isPositive
bool isPositive(const int &hid) const
Definition
TRTHitIdHelper.cxx:40
TRTHitIdHelper::getPhiSector
int getPhiSector(const int &hid) const
Definition
TRTHitIdHelper.cxx:55
TRTHitIdHelper::getRingWheel
int getRingWheel(const int &hid) const
Definition
TRTHitIdHelper.cxx:50
TRTHitIdHelper::isBarrel
bool isBarrel(const int &hid) const
Definition
TRTHitIdHelper.cxx:29
TRTHitIdHelper::getStraw
int getStraw(const int &hid) const
Definition
TRTHitIdHelper.cxx:65
TRTHitIdHelper::isEndcap
bool isEndcap(const int &hid) const
Definition
TRTHitIdHelper.cxx:34
TRTHitIdHelper::GetHelper
static const TRTHitIdHelper * GetHelper()
Definition
TRTHitIdHelper.cxx:13
TRTHitIdHelper::TRTHitIdHelper
TRTHitIdHelper()
Definition
TRTHitIdHelper.cxx:9
TRTHitIdHelper::Initialize
void Initialize()
Definition
TRTHitIdHelper.cxx:18
TRTHitIdHelper::buildHitId
int buildHitId(const int, const int, const int, const int, const int, const int) const
Definition
TRTHitIdHelper.cxx:72
TRTHitIdHelper::getLayerPlane
int getLayerPlane(const int &hid) const
Definition
TRTHitIdHelper.cxx:60
TRTHitIdHelper::isNegative
bool isNegative(const int &hid) const
Definition
TRTHitIdHelper.cxx:44
Generated on
for ATLAS Offline Software by
1.17.0