ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Event
xAOD
xAODForward
Root
AFPSiHit_v2.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
13
14
15
// xAOD include(s):
16
#include "
xAODCore/AuxStoreAccessorMacros.h
"
17
18
// Local include(s):
19
#include "
xAODForward/versions/AFPSiHit_v2.h
"
20
21
22
namespace
xAOD
23
{
24
AFPSiHit_v2::AFPSiHit_v2
() :
SG
::AuxElement()
25
{ }
26
27
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
AFPSiHit_v2
,
float
, depositedCharge, setDepositedCharge)
28
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
AFPSiHit_v2
,
float
,
timeOverThreshold
, setTimeOverThreshold)
29
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
AFPSiHit_v2
,
int
, stationID, setStationID)
30
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
AFPSiHit_v2
,
int
, pixelLayerID, setPixelLayerID)
31
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
AFPSiHit_v2
,
int
, pixelRowIDChip, setPixelRowIDChip)
32
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
(
AFPSiHit_v2
,
int
, pixelColIDChip, setPixelColIDChip)
33
34
void
AFPSiHit_v2
::
toPersistent
() {
35
}
36
37
int
AFPSiHit_v2::pixelHorizID
()
const
38
{
39
// use pixel rows because detectors are rotated and subtract
40
// from 336, because the axis is reversed
41
return
336 -
pixelRowIDChip
();
42
}
43
44
void
AFPSiHit_v2::setPixelHorizID
(
const
int
horizontalID)
45
{
46
// use pixel rows because detectors are rotated and subtract
47
// from 336, because the axis is reversed
48
setPixelRowIDChip
(336 - horizontalID);
49
}
50
51
52
int
AFPSiHit_v2::pixelVertID
()
const
53
{
54
// use pixel columns because detectors are rotated
55
return
pixelColIDChip
();
56
}
57
58
void
AFPSiHit_v2::setPixelVertID
(
const
int
verticalID)
59
{
60
// use pixel columns because detectors are rotated
61
setPixelColIDChip
(verticalID);
62
}
63
}
// end xAOD
AFPSiHit_v2.h
Header file for AFPSiHit_v2 class representing a hit in AFP track detector.
AuxStoreAccessorMacros.h
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
#define AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(CL, TYPE, NAME, SETTER)
Macro creating the accessors of primitive auxiliary properties.
Definition
AuxStoreAccessorMacros.h:36
xAOD::AFPSiHit_v2
Class representing a hit in silicon detector.
Definition
AFPSiHit_v2.h:30
xAOD::AFPSiHit_v2::AFPSiHit_v2
AFPSiHit_v2()
Definition
AFPSiHit_v2.cxx:24
xAOD::AFPSiHit_v2::pixelColIDChip
int pixelColIDChip() const
Index of the pixel column in chip coordinate system.
xAOD::AFPSiHit_v2::setPixelHorizID
void setPixelHorizID(const int horizontalID)
Set index of the pixel along X axis in LHC coordinate system.
Definition
AFPSiHit_v2.cxx:44
xAOD::AFPSiHit_v2::pixelHorizID
int pixelHorizID() const
Index of the pixel along X axis in LHC coordinate system.
Definition
AFPSiHit_v2.cxx:37
xAOD::AFPSiHit_v2::setPixelVertID
void setPixelVertID(const int verticalID)
Set index of the pixel along Y axis in LHC coordinate system.
Definition
AFPSiHit_v2.cxx:58
xAOD::AFPSiHit_v2::setPixelRowIDChip
void setPixelRowIDChip(int rowID)
Set pixel row index in the chip coordinate system.
xAOD::AFPSiHit_v2::pixelRowIDChip
int pixelRowIDChip() const
Index of the pixel row in chip coordinate system.
xAOD::AFPSiHit_v2::pixelVertID
int pixelVertID() const
Index of the pixel along Y axis in LHC coordinate system.
Definition
AFPSiHit_v2.cxx:52
xAOD::AFPSiHit_v2::toPersistent
void toPersistent()
Function making sure that the object is ready for persistification i.e. saving.
Definition
AFPSiHit_v2.cxx:34
xAOD::AFPSiHit_v2::setPixelColIDChip
void setPixelColIDChip(int colID)
Set pixel column index in the chip coordinate system.
timeOverThreshold
double timeOverThreshold(unsigned int m_word)
Definition
driftCircle.h:116
SG
Forward declaration.
Definition
CaloCellPacker_400_500.h:32
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition
ICaloAffectedTool.h:24
Generated on
for ATLAS Offline Software by
1.17.0