ATLAS Offline Software
|
Translates pixels rows and columns to position in standard ATLAS coordinates system. More...
#include <AFPSiRowColToLocalCSTool.h>
Public Member Functions | |
AFPSiRowColToLocalCSTool (const std::string &type, const std::string &name, const IInterface *parent) | |
virtual StatusCode | initialize () override |
Prepare transformation matrices. More... | |
virtual StatusCode | finalize () override |
does nothing More... | |
virtual xAOD::AFPSiHitsCluster * | newXAODLocal (const int stationID, const int layerID, const AFP::SiLocAlignData &LA, const AFP::SiGlobAlignData &GA, const AFPSiClusterBasicObj &cluster, std::unique_ptr< xAOD::AFPSiHitsClusterContainer > &xAODContainer) const override |
void | fillXAOD (const int stationID, const int layerID, const ROOT::Math::XYZPoint &position, const ROOT::Math::XYZPoint &positionError, xAOD::AFPSiHitsCluster *xAODCluster) const |
Sets xAOD information about station, layer, position and error based on the ROOT::Math::XYZPoint objects. More... | |
Private Member Functions | |
void | initTransformationMatricesSize (std::list< std::vector< std::vector< ROOT::Math::Transform3D > > * > &matrices, const std::vector< int > &layersInStations) |
The method initialises matrices to have the size defined in layersInStations. More... | |
Private Attributes | |
Gaudi::Property< std::vector< int > > | m_numberOfLayersInStations {this, "numberOfLayersInStations",{4,4,4,4}, "Array defining number of stations and layers in each station. The size of the array in argument defines number of stations, the value in each entry defines number of layers in the station."} |
Vector defining number of stations and number of layers in each station. More... | |
std::vector< std::vector< ROOT::Math::Transform3D > > | m_transformations |
Array of transformations that position in each layers. More... | |
Gaudi::Property< std::vector< double > > | m_transformationsInit {this, "transformations", {}, "Initialisation of the transformation matrices (4x3). It is not full transformation only part. Must be defined simultaneously with transformationsErr."} |
Vector containing initial values for m_transformations matrices. More... | |
std::vector< std::vector< ROOT::Math::Transform3D > > | m_transformationsErr |
Array of transformations that are applied to position uncertainties. More... | |
Gaudi::Property< std::vector< double > > | m_transformationsErrInit {this, "transformationsErr", {}, "Initialisation of the error transformation matrices (4x3). It is not full transformation only part. Must be defined simultaneously with transformations."} |
Vector containing initial values for m_transformationsErr matrices. More... | |
Gaudi::Property< double > | m_pixelHorizSize {this, "pixelHorizSize", 0.05, "Size of the pixel in horizontal direction when mounted (default = 0.05 mm)"} |
Size of the pixel in horizontal direction when mounted (default = 0.05 mm) More... | |
Gaudi::Property< double > | m_pixelVertSize {this, "pixelVertSize", 0.25, "Size of the pixel in vertical direction when mounted (default = 0.25 mm)"} |
Size of the pixel in vertical direction when mounted (default = 0.25 mm) More... | |
Translates pixels rows and columns to position in standard ATLAS coordinates system.
The class rewrites AFPSiClusterBasicObj into xAOD::AFPSiHitsCluster objects and changes columns and rows into position in standard ATLAS coordinate system.
Definition at line 43 of file AFPSiRowColToLocalCSTool.h.
AFPSiRowColToLocalCSTool::AFPSiRowColToLocalCSTool | ( | const std::string & | type, |
const std::string & | name, | ||
const IInterface * | parent | ||
) |
Definition at line 25 of file AFPSiRowColToLocalCSTool.cxx.
void AFPSiRowColToLocalCSTool::fillXAOD | ( | const int | stationID, |
const int | layerID, | ||
const ROOT::Math::XYZPoint & | position, | ||
const ROOT::Math::XYZPoint & | positionError, | ||
xAOD::AFPSiHitsCluster * | xAODCluster | ||
) | const |
Sets xAOD information about station, layer, position and error based on the ROOT::Math::XYZPoint objects.
param[in] stationID ID number of the station where the cluster is param[in] layerID ID number of the layer where the cluster is param[in] position point object with the position of the cluster centre param[in] positionError point object with the uncertainty of the position of the cluster centre param[out] xAODCluster xAOD object to be filled with provided information
Definition at line 184 of file AFPSiRowColToLocalCSTool.cxx.
|
overridevirtual |
does nothing
Definition at line 180 of file AFPSiRowColToLocalCSTool.cxx.
|
overridevirtual |
Prepare transformation matrices.
Definition at line 50 of file AFPSiRowColToLocalCSTool.cxx.
|
private |
The method initialises matrices to have the size defined in layersInStations.
Definition at line 33 of file AFPSiRowColToLocalCSTool.cxx.
|
overridevirtual |
Definition at line 199 of file AFPSiRowColToLocalCSTool.cxx.
|
private |
Vector defining number of stations and number of layers in each station.
The size of the vector sets number of stations. Each element defines number of pixel layers in the station. It is used to initialise m_transformations and m_transformationsErr. If not set in job options 4 stations, each with 4 layers are created.
Definition at line 80 of file AFPSiRowColToLocalCSTool.h.
|
private |
Size of the pixel in horizontal direction when mounted (default = 0.05 mm)
This value is used to multiply pixel horizontal ID in order to obtain position.
Definition at line 118 of file AFPSiRowColToLocalCSTool.h.
|
private |
Size of the pixel in vertical direction when mounted (default = 0.25 mm)
This value is used to multiply pixel vertical ID in order to obtain position.
Definition at line 124 of file AFPSiRowColToLocalCSTool.h.
|
private |
Array of transformations that position in each layers.
These transformations combined with m_transformationsErr are applied to the pixels and provide full local alignment. They are not applied to the uncertainties and should contain mainly translation. These are 4x4 matrices.
Definition at line 88 of file AFPSiRowColToLocalCSTool.h.
|
private |
Array of transformations that are applied to position uncertainties.
These transformations are applied both to the pixel positions and uncertainties. They should not contain translations, because it will add an offset to the error. These are 4x4 matrices.
Definition at line 103 of file AFPSiRowColToLocalCSTool.h.
|
private |
Vector containing initial values for m_transformationsErr matrices.
The first four numbers are the first row in the first transformation matrix, the second four numbers are the second row. Numbers on positions from 16 to 32 represent second matrix, etc.
Definition at line 111 of file AFPSiRowColToLocalCSTool.h.
|
private |
Vector containing initial values for m_transformations matrices.
The first four numbers are the first row in the first transformation matrix, the second four numbers are the second row. Numbers on positions from 16 to 32 represent second matrix, etc.
Definition at line 96 of file AFPSiRowColToLocalCSTool.h.