![]() |
ATLAS Offline Software
|
#include <NNPixelClusterCalibratorHelpers.h>
Public Types | |
| enum class | Index : index_t { chargeOffset = 0 , windowSize = 7 , center = (windowSize - 1) / 2 , halfSize = center , chargeEnd = windowSize * windowSize , pitchYOffset = chargeEnd , pitchXOffset = pitchYOffset + windowSize , layer = pitchXOffset + windowSize , bec = layer + 1 , phi = bec + 1 , theta = phi + 1 , totalSize = theta + 1 } |
| using | payload_t = float |
| using | index_t = int |
Public Member Functions | |
| NNinput () | |
| std::vector< payload_t > & | payload () |
| const std::vector< payload_t > & | payload () const |
| float | totCharge () const |
| void | setPixelCharge (index_t x, index_t y, payload_t charge) |
| void | setPixelXPitch (index_t i, payload_t pitch) |
| payload_t | getPixelXPitch (index_t i) const |
| void | setPixelYPitch (index_t i, payload_t pitch) |
| void | set (Index i, payload_t v) |
| float | indexCoordToRealCoord (float coord, Index pitchOffset) |
| translates position returned from the network to mm The position returned from the network is given in the "index" space while it needs to be be in mm. | |
| float | precisionToRealCoord (float prec, Index pitchOffset) |
| translate RMS that is output from NN to detector units (mm) Conversion is done by integrating the actual pitches, so non-uniform pitch (ITk long/end pixels, 25 um modules) is handled. | |
Static Public Member Functions | |
| static int | toNNinputIndex (index_t pixelIndex, index_t centerIndex) |
| Translate from module indices to NNinput indices e.g. | |
| static int | toModuleIndex (index_t nnIndex, index_t centerIndex) |
| Reverse operation to toNNInputIndex. | |
| static bool | inWindow (index_t x, index_t y) |
Public Attributes | |
| InDetDD::SiCellId | centerCell |
| ! | |
| InDetDD::SiLocalPosition | centerPosition |
Private Member Functions | |
| void | checkRange (index_t i, const std::string &context) const |
| ! storage for NN input | |
Private Attributes | |
| std::vector< payload_t > | m_payload |
Definition at line 20 of file NNPixelClusterCalibratorHelpers.h.
| using ActsTrk::NNinput::index_t = int |
Definition at line 23 of file NNPixelClusterCalibratorHelpers.h.
| using ActsTrk::NNinput::payload_t = float |
Definition at line 22 of file NNPixelClusterCalibratorHelpers.h.
|
strong |
| Enumerator | |
|---|---|
| chargeOffset | |
| windowSize | |
| center | |
| halfSize | |
| chargeEnd | |
| pitchYOffset | |
| pitchXOffset | |
| layer | |
| bec | |
| phi | |
| theta | |
| totalSize | |
Definition at line 24 of file NNPixelClusterCalibratorHelpers.h.
|
inline |
Definition at line 38 of file NNPixelClusterCalibratorHelpers.h.
! storage for NN input
validates index arguments passed to setters
Definition at line 181 of file NNPixelClusterCalibratorHelpers.h.
Definition at line 63 of file NNPixelClusterCalibratorHelpers.h.
|
inline |
translates position returned from the network to mm The position returned from the network is given in the "index" space while it needs to be be in mm.
Simplifying, the returned position need to be multiplied by pitch however, due to uneven pitch size the translation is slightly trickier. The code is reverse engineered from: https://pixsplit.docs.cern.ch/export/ and associated python implementation
| coord | - position in nn coordinates |
| pitchOffset | - either pitchXOffset or pitchYOffset - place where pitches vectors are stored |
Definition at line 108 of file NNPixelClusterCalibratorHelpers.h.
Definition at line 92 of file NNPixelClusterCalibratorHelpers.h.
|
inline |
Definition at line 40 of file NNPixelClusterCalibratorHelpers.h.
Definition at line 42 of file NNPixelClusterCalibratorHelpers.h.
|
inline |
translate RMS that is output from NN to detector units (mm) Conversion is done by integrating the actual pitches, so non-uniform pitch (ITk long/end pixels, 25 um modules) is handled.
size is m_sizeX in phi (x), m_sizeY in eta (y). this code is adopted from NNClusterizationFactory
| prec | precision returned by NN |
| pitchOffset | either pitchXOffset or pitchYOffset |
Definition at line 151 of file NNPixelClusterCalibratorHelpers.h.
Definition at line 72 of file NNPixelClusterCalibratorHelpers.h.
Definition at line 50 of file NNPixelClusterCalibratorHelpers.h.
Definition at line 58 of file NNPixelClusterCalibratorHelpers.h.
Definition at line 67 of file NNPixelClusterCalibratorHelpers.h.
Reverse operation to toNNInputIndex.
| nnIndex | pixel index in NN repsentation |
| centerIndex | cluster center |
Definition at line 88 of file NNPixelClusterCalibratorHelpers.h.
Translate from module indices to NNinput indices e.g.
if the cluster is of size 3 and indices of pixels are 23,24,25
| pixelIndex | |
| centerIndex |
Definition at line 80 of file NNPixelClusterCalibratorHelpers.h.
|
inline |
| InDetDD::SiCellId ActsTrk::NNinput::centerCell |
!
to avoid need to calculate them once more time when translating from index biases to local module coordinates
Definition at line 174 of file NNPixelClusterCalibratorHelpers.h.
| InDetDD::SiLocalPosition ActsTrk::NNinput::centerPosition |
Definition at line 175 of file NNPixelClusterCalibratorHelpers.h.
|
private |
Definition at line 178 of file NNPixelClusterCalibratorHelpers.h.