ATLAS Offline Software
Loading...
Searching...
No Matches
xAOD::AFPSiHit_v1 Class Reference

Class representing a hit in silicon detector. More...

#include <AFPSiHit_v1.h>

Inheritance diagram for xAOD::AFPSiHit_v1:
Collaboration diagram for xAOD::AFPSiHit_v1:

Public Types

typedef ElementLink< AFPTrackContainerAFPTrackLink_t
 Type of a link to the track.

Public Member Functions

 AFPSiHit_v1 ()
float depositedCharge () const
 Charge deposited in the pixel.
void setDepositedCharge (float charge)
 Method setting value of the charge deposited in the pixel.
float timeOverThreshold () const
 Time over threshold of signal for a pixel.
void setTimeOverThreshold (float timeOverThreshold)
 Method setting value of time over threshold.
int stationID () const
 Index of the station with pixel hit.
void setStationID (int stationID)
 Set index of the station with pixel hit.
int pixelLayerID () const
 Index of the layer of pixels, i.e.
void setPixelLayerID (int layerID)
 Method setting index of the pixel layer with hit.
int pixelRowIDChip () const
 Index of the pixel row in chip coordinate system.
void setPixelRowIDChip (int rowID)
 Set pixel row index in the chip coordinate system.
int pixelColIDChip () const
 Index of the pixel column in chip coordinate system.
void setPixelColIDChip (int colID)
 Set pixel column index in the chip coordinate system.
int pixelHorizID () const
 Index of the pixel along X axis in LHC coordinate system.
void setPixelHorizID (const int horizontalID)
 Set index of the pixel along X axis in LHC coordinate system.
int pixelVertID () const
 Index of the pixel along Y axis in LHC coordinate system.
void setPixelVertID (const int verticalID)
 Set index of the pixel along Y axis in LHC coordinate system.
const std::vector< AFPTrackLink_t > & tracksLinks () const
 Vector of links to tracks for which reconstruction this hit was used.
void setTracksLinks (const std::vector< AFPTrackLink_t > &tracksVector)
 Set vector of links to tracks that use this hit.
void addTrackLink (const AFPTrackLink_t &newTrack)
 Add a link to a track that uses this hit in reconstruction.
void toPersistent ()
 Function making sure that the object is ready for persistification i.e. saving.

Detailed Description

Class representing a hit in silicon detector.

This class provides information about a single hit in AFP silicon detector.

Definition at line 33 of file AFPSiHit_v1.h.

Member Typedef Documentation

◆ AFPTrackLink_t

Type of a link to the track.

Definition at line 38 of file AFPSiHit_v1.h.

Constructor & Destructor Documentation

◆ AFPSiHit_v1()

xAOD::AFPSiHit_v1::AFPSiHit_v1 ( )

Definition at line 25 of file AFPSiHit_v1.cxx.

26 { }
AuxElement(SG::AuxVectorData *container, size_t index)
Base class for elements of a container that can have aux data.

Member Function Documentation

◆ addTrackLink()

void xAOD::AFPSiHit_v1::addTrackLink ( const AFPTrackLink_t & newTrack)

Add a link to a track that uses this hit in reconstruction.

A new link to the track is added to the existing vector of links to the tracks which use this hit in reconstruction.

Parameters
newTracklink to the track

Definition at line 38 of file AFPSiHit_v1.cxx.

39 {
40 tracksLinksAcc( *this ).push_back( link );
41 }
static const SG::AuxElement::Accessor< std::vector< AFPSiHit_v1::AFPTrackLink_t > > tracksLinksAcc("tracksLinks")

◆ depositedCharge()

float xAOD::AFPSiHit_v1::depositedCharge ( ) const

Charge deposited in the pixel.

Charge deposited in the pixel (amplitude of the signal) calculated based on the time over threshold. Time over threshold should be proportional to the deposited charge, but there may be small deviations.

Returns
charge deposited in the pixel

◆ pixelColIDChip()

int xAOD::AFPSiHit_v1::pixelColIDChip ( ) const

Index of the pixel column in chip coordinate system.

Index of the column in chip coordinate system. There are 80 columns numbered from 1. Column number 1 is the bottom one, while column 80 is the topmost one.

Note
Columns in chip coordinate system are horizontal, because the chips are mounted rotated by 90 degrees.
Returns
index of the pixel column which is in horizontal direction

◆ pixelHorizID()

int xAOD::AFPSiHit_v1::pixelHorizID ( ) const

Index of the pixel along X axis in LHC coordinate system.

There are 336 pixels in the horizontal direction numbered from

  1. The numbering is according to the LHC coordinate system i.e. pixel 0 is the outermost pixel and pixel 335 is the innermost (closest to the LHC centre).

This method transforms index from the chip coordinate system to the LHC coordinate system.

Returns
index of the pixel along X axis in LHC coordinate system

Definition at line 51 of file AFPSiHit_v1.cxx.

52 {
53 // use pixel rows because detectors are rotated and subtract
54 // from 336, because the axis is reversed
55 return 336 - pixelRowIDChip();
56 }
int pixelRowIDChip() const
Index of the pixel row in chip coordinate system.

◆ pixelLayerID()

int xAOD::AFPSiHit_v1::pixelLayerID ( ) const

Index of the layer of pixels, i.e.

the silicon detector, with hit.

Index of the pixel layer where the hit was recorded. The layer closest to the interaction point has index 0, the layer furthest away from the interaction point has index 3.

Far Station A Side (ID = 0) Near Station A Side (ID = 1) Near Station C Side (ID = 2) Far Station C Side (ID = 3)
32103210INTERACTION POINT 01230123
Returns
index of the pixels layer with hit

◆ pixelRowIDChip()

int xAOD::AFPSiHit_v1::pixelRowIDChip ( ) const

Index of the pixel row in chip coordinate system.

Index of the row in chip coordinate system. There are 336 rows numbered from 1. Row number 1 is closest to the LHC centre, while row 336 is the outermost.

Note
Rows in chip coordinate system are vertical, because the chips are mounted rotated by 90 degrees.
Returns
index of the pixel row which is in vertical direction

◆ pixelVertID()

int xAOD::AFPSiHit_v1::pixelVertID ( ) const

Index of the pixel along Y axis in LHC coordinate system.

There are 80 pixels in the vertical direction numbered from

  1. The numbering is according to the LHC coordinate system i.e. pixel 0 is the lowest and pixel 79 is the topmost.

This method transforms index from the chip coordinate system to the LHC coordinate system.

Returns
index of the pixel along Y axis in LHC coordinate system

Definition at line 66 of file AFPSiHit_v1.cxx.

67 {
68 // use pixel columns because detectors are rotated
69 return pixelColIDChip();
70 }
int pixelColIDChip() const
Index of the pixel column in chip coordinate system.

◆ setDepositedCharge()

void xAOD::AFPSiHit_v1::setDepositedCharge ( float charge)

Method setting value of the charge deposited in the pixel.

Parameters
chargevalue of the charge deposited in the pixel

◆ setPixelColIDChip()

void xAOD::AFPSiHit_v1::setPixelColIDChip ( int colID)

Set pixel column index in the chip coordinate system.

Index of the column in chip coordinate system can have value between 1 and 80. Column number 1 is the bottom one, while column 80 is the topmost one.

Note
Columns in chip coordinate system are horizontal, because the chips are mounted rotated by 90 degrees.
Parameters
colIDindex of pixel column in chip coordinate system to be assigned to the hit

◆ setPixelHorizID()

void xAOD::AFPSiHit_v1::setPixelHorizID ( const int horizontalID)

Set index of the pixel along X axis in LHC coordinate system.

There are 336 pixels in the horizontal direction numbered from

  1. The numbering is according to the LHC coordinate system i.e. pixel 0 is the outermost pixel and pixel 335 is the inner most (closest to the LHC centre).

This method transforms input from the LHC coordinate system to the chip coordinate system and saves it.

Parameters
horizontalIDindex of pixel along X axis in the LHC coordinate system

Definition at line 58 of file AFPSiHit_v1.cxx.

59 {
60 // use pixel rows because detectors are rotated and subtract
61 // from 336, because the axis is reversed
62 setPixelRowIDChip (336 - horizontalID);
63 }
void setPixelRowIDChip(int rowID)
Set pixel row index in the chip coordinate system.

◆ setPixelLayerID()

void xAOD::AFPSiHit_v1::setPixelLayerID ( int layerID)

Method setting index of the pixel layer with hit.

The index of the layer should be set according to the convention in pixelLayerID()

Parameters
layerIDindex of the pixel layer with hit

◆ setPixelRowIDChip()

void xAOD::AFPSiHit_v1::setPixelRowIDChip ( int rowID)

Set pixel row index in the chip coordinate system.

Index of the row in chip coordinate system can have value between 1 and 336. Row number 1 is closest to the LHC centre, while row 336 is the outermost.

Note
Rows in chip coordinate system are vertical, because the chips are mounted rotated by 90 degrees.
Parameters
rowIDindex of pixel row in chip coordinate system to be assigned to the hit

◆ setPixelVertID()

void xAOD::AFPSiHit_v1::setPixelVertID ( const int verticalID)

Set index of the pixel along Y axis in LHC coordinate system.

There are 80 pixels in the horizontal direction numbered from

  1. The numbering is according to the LHC coordinate system i.e. pixel 0 is the lowest and pixel 79 is the topmost.

This method transforms input from the LHC coordinate system to the chip coordinate system and saves it.

Parameters
verticalIDindex of pixel along Y axis in the LHC coordinate system

Definition at line 72 of file AFPSiHit_v1.cxx.

73 {
74 // use pixel columns because detectors are rotated
75 setPixelColIDChip (verticalID);
76 }
void setPixelColIDChip(int colID)
Set pixel column index in the chip coordinate system.

◆ setStationID()

void xAOD::AFPSiHit_v1::setStationID ( int stationID)

Set index of the station with pixel hit.

Stations indexing follows the scheme

Station ID Station Name Station Position
0 far station A side z = 217 m
1 near station A side z = 205 m
2 near station C side z = -205 m
3 far station C side z = -217 m
Returns
index of the station
Parameters
stationIDindex of the station with the hit

◆ setTimeOverThreshold()

void xAOD::AFPSiHit_v1::setTimeOverThreshold ( float timeOverThreshold)

Method setting value of time over threshold.

Parameters
timeOverThresholdvalue of the time over threshold for a pixel

◆ setTracksLinks()

void xAOD::AFPSiHit_v1::setTracksLinks ( const std::vector< AFPTrackLink_t > & tracksVector)

Set vector of links to tracks that use this hit.

Parameters
tracksVectorvector of links to tracks

◆ stationID()

int xAOD::AFPSiHit_v1::stationID ( ) const

Index of the station with pixel hit.

Stations indexing follows the scheme

Station ID Station Name Station Position
0 far station A side z = 217 m
1 near station A side z = 205 m
2 near station C side z = -205 m
3 far station C side z = -217 m
Returns
index of the station

◆ timeOverThreshold()

float xAOD::AFPSiHit_v1::timeOverThreshold ( ) const

Time over threshold of signal for a pixel.

The length of the signal is proportional to the charge deposited in the pixel. The transformation is configured during the detector running and requires calibration. This is basic quantity which is used to reconstruct charge deposited in the pixel.

Returns
time over threshold of the signal

◆ toPersistent()

void xAOD::AFPSiHit_v1::toPersistent ( )

Function making sure that the object is ready for persistification i.e. saving.

Definition at line 43 of file AFPSiHit_v1.cxx.

43 {
44 // Prepare the tracks links for persistification:
45 if ( tracksLinksAcc.isAvailableWritable( *this ) )
46 for (AFPTrackLink_t trackLink : tracksLinksAcc( *this ) )
47 trackLink.toPersistent();
48 }
ElementLink< AFPTrackContainer > AFPTrackLink_t
Type of a link to the track.
Definition AFPSiHit_v1.h:38

◆ tracksLinks()

const std::vector< AFPTrackLink_t > & xAOD::AFPSiHit_v1::tracksLinks ( ) const

Vector of links to tracks for which reconstruction this hit was used.

This method provides access to the tracks that use this hit. The access is via ElementLink object.

Note
Returns

The documentation for this class was generated from the following files: