ATLAS Offline Software
Loading...
Searching...
No Matches
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):
17
18// Local include(s):
20
21
22namespace xAOD
23{
26
27 AUXSTORE_PRIMITIVE_SETTER_AND_GETTER (AFPSiHit_v2, float, depositedCharge, setDepositedCharge)
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
35 }
36
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
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
Header file for AFPSiHit_v2 class representing a hit in AFP track detector.
#define AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(CL, TYPE, NAME, SETTER)
Macro creating the accessors of primitive auxiliary properties.
AuxElement()
Default constructor.
Class representing a hit in silicon detector.
Definition AFPSiHit_v2.h:30
int pixelColIDChip() const
Index of the pixel column in chip coordinate system.
void setPixelHorizID(const int horizontalID)
Set index of the pixel along X axis in LHC coordinate system.
int pixelHorizID() const
Index of the pixel along X axis in LHC coordinate system.
void setPixelVertID(const int verticalID)
Set index of the pixel along Y axis in LHC coordinate system.
void setPixelRowIDChip(int rowID)
Set pixel row index in the chip coordinate system.
int pixelRowIDChip() const
Index of the pixel row in chip coordinate system.
int pixelVertID() const
Index of the pixel along Y axis in LHC coordinate system.
void toPersistent()
Function making sure that the object is ready for persistification i.e. saving.
void setPixelColIDChip(int colID)
Set pixel column index in the chip coordinate system.
double timeOverThreshold(unsigned int m_word)
Forward declaration.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.