ATLAS Offline Software
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 
15 // xAOD include(s):
17 
18 // Local include(s):
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)
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 
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
xAOD::AUXSTORE_PRIMITIVE_SETTER_AND_GETTER
AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(BTagging_v1, float, IP2D_pb, setIP2D_pb) AUXSTORE_PRIMITIVE_SETTER_AND_GETTER(BTagging_v1
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
AuxStoreAccessorMacros.h
xAOD::AFPSiHit_v2::setPixelColIDChip
void setPixelColIDChip(int colID)
Set pixel column index in the chip coordinate system.
xAOD::AFPSiHit_v2
Class representing a hit in silicon detector.
Definition: AFPSiHit_v2.h:30
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
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::pixelColIDChip
int pixelColIDChip() const
Index of the pixel column 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::setPixelHorizID
void setPixelHorizID(const int horizontalID)
Set index of the pixel along X axis in LHC coordinate system.
Definition: AFPSiHit_v2.cxx:44
AFPSiHit_v2.h
Header file for AFPSiHit_v2 class representing a hit in AFP track detector.
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::pixelRowIDChip
int pixelRowIDChip() const
Index of the pixel row in chip coordinate system.
xAOD::AFPSiHit_v2::setPixelRowIDChip
void setPixelRowIDChip(int rowID)
Set pixel row index in the chip coordinate system.
xAOD::AFPSiHit_v2::AFPSiHit_v2
AFPSiHit_v2()
Definition: AFPSiHit_v2.cxx:24
timeOverThreshold
double timeOverThreshold(unsigned int m_word)
Definition: driftCircle.h:116