Belle II Software development
|
Singleton class that estimates cluster positions taking into account the estimated track incidence angles into the sensor. More...
#include <PXDClusterPositionEstimator.h>
Public Member Functions | |
void | initialize () |
Initialize PXDClusterPositionEstimator from DB. | |
void | setShapeIndexFromDB () |
Set ShapeIndex from DB. | |
void | setPositionEstimatorFromDB () |
Set PositionEstimator from DB. | |
const PXDClusterPositionEstimatorPar & | getPositionEstimatorParameters () const |
Return cluster position estimator parameters from Database. | |
const PXDClusterShapeIndexPar & | getShapeIndexParameters () const |
Return shape index parameters from Database. | |
const PXDClusterOffsetPar * | getClusterOffset (const PXDCluster &cluster, double tu, double tv) const |
Return pointer to cluster offsets, can be nullptr. | |
float | getShapeLikelyhood (const PXDCluster &cluster, double tu, double tv) const |
Return cluster shape likelyhood. | |
float | computeEta (const std::set< Pixel > &pixels, int vStart, int vSize, double thetaU, double thetaV) const |
Return the normed charge ratio between head and tail pixels (size>=2) or the charge of the seed (size=1) . | |
int | computeShapeIndex (const std::set< Pixel > &pixels, int uStart, int vStart, int vSize, double thetaU, double thetaV) const |
Return the shape index of the pixels. | |
const std::string | getShortName (const std::set< Pixel > &pixels, int uStart, int vStart, int vSize, double thetaU, double thetaV) const |
Return the name for the pixel set. | |
const std::string | getMirroredShortName (const std::set< Pixel > &pixels, int uStart, int vStart, int vSize, double thetaU, double thetaV) const |
Return the mirrored name for the pixel set. | |
const std::string | getFullName (const std::set< Pixel > &pixels, int uStart, int vStart) const |
Return a name for the pixel set. | |
int | getClusterkind (const PXDCluster &cluster) const |
Return kind of cluster needed to find cluster position correction. | |
int | getClusterkind (const std::vector< Belle2::PXD::Pixel > &pixels, const Belle2::VxdID &sensorID) const |
Return kind of cluster needed to find cluster position correction. | |
int | getSectorIndex (double thetaU, double thetaV) const |
Get sector index from angles. | |
Static Public Member Functions | |
static PXDClusterPositionEstimator & | getInstance () |
Main (and only) way to access the PXDClusterPositionEstimator. | |
Private Member Functions | |
const Pixel & | getHeadPixel (const std::set< Pixel > &pixels, int vStart, int vSize, double thetaU, double thetaV) const |
Return reference to the head pixel in pixel set. | |
const Pixel & | getTailPixel (const std::set< Pixel > &pixels, int vStart, int vSize, double thetaU, double thetaV) const |
Return reference to the tail pixel in pixel set. | |
const Pixel & | getLastPixelWithVOffset (const std::set< Pixel > &pixels, int vStart, int vOffset) const |
Return reference to the last pixel in pixel set with given vOffset from vStart. | |
const Pixel & | getFirstPixelWithVOffset (const std::set< Pixel > &pixels, int vStart, int vOffset) const |
Return reference to the first pixel in pixel set with given vOffset from vStart. | |
PXDClusterPositionEstimator () | |
Singleton class, hidden constructor. | |
PXDClusterPositionEstimator (const PXDClusterPositionEstimator &)=delete | |
Singleton class, forbidden copy constructor. | |
PXDClusterPositionEstimator & | operator= (const PXDClusterPositionEstimator &)=delete |
Singleton class, forbidden assignment operator. | |
Private Attributes | |
std::unique_ptr< DBObjPtr< PXDClusterShapeIndexPar > > | m_shapeIndexFromDB |
PXDClusterShapeIndex retrieved from DB. | |
std::unique_ptr< DBObjPtr< PXDClusterPositionEstimatorPar > > | m_positionEstimatorFromDB |
PXDClusterPositionEstimatorPar retrieved from DB. | |
PXDClusterShapeIndexPar | m_shapeIndexPar |
Current valid PXDClusterShapeIndex. | |
PXDClusterPositionEstimatorPar | m_positionEstimatorPar |
Currrent valid PXDClusterPositionEstimatorPar. | |
Singleton class that estimates cluster positions taking into account the estimated track incidence angles into the sensor.
The class also provides an interface to get the likelyhood that a given cluster was created by a charged track with given incidence angles.
Definition at line 33 of file PXDClusterPositionEstimator.h.
|
inlineprivate |
Singleton class, hidden constructor.
Definition at line 103 of file PXDClusterPositionEstimator.h.
float computeEta | ( | const std::set< Pixel > & | pixels, |
int | vStart, | ||
int | vSize, | ||
double | thetaU, | ||
double | thetaV | ||
) | const |
Return the normed charge ratio between head and tail pixels (size>=2) or the charge of the seed (size=1) .
Definition at line 83 of file PXDClusterPositionEstimator.cc.
int computeShapeIndex | ( | const std::set< Pixel > & | pixels, |
int | uStart, | ||
int | vStart, | ||
int | vSize, | ||
double | thetaU, | ||
double | thetaV | ||
) | const |
Return the shape index of the pixels.
Definition at line 189 of file PXDClusterPositionEstimator.cc.
int getClusterkind | ( | const PXDCluster & | cluster | ) | const |
Return kind of cluster needed to find cluster position correction.
Definition at line 227 of file PXDClusterPositionEstimator.cc.
int getClusterkind | ( | const std::vector< Belle2::PXD::Pixel > & | pixels, |
const Belle2::VxdID & | sensorID | ||
) | const |
Return kind of cluster needed to find cluster position correction.
Definition at line 260 of file PXDClusterPositionEstimator.cc.
const Belle2::PXDClusterOffsetPar * getClusterOffset | ( | const PXDCluster & | cluster, |
double | tu, | ||
double | tv | ||
) | const |
Return pointer to cluster offsets, can be nullptr.
Definition at line 57 of file PXDClusterPositionEstimator.cc.
|
private |
Return reference to the first pixel in pixel set with given vOffset from vStart.
Definition at line 157 of file PXDClusterPositionEstimator.cc.
const std::string getFullName | ( | const std::set< Pixel > & | pixels, |
int | uStart, | ||
int | vStart | ||
) | const |
Return a name for the pixel set.
Definition at line 218 of file PXDClusterPositionEstimator.cc.
|
private |
Return reference to the head pixel in pixel set.
Definition at line 98 of file PXDClusterPositionEstimator.cc.
|
static |
Main (and only) way to access the PXDClusterPositionEstimator.
Definition at line 50 of file PXDClusterPositionEstimator.cc.
|
private |
Return reference to the last pixel in pixel set with given vOffset from vStart.
Definition at line 136 of file PXDClusterPositionEstimator.cc.
const std::string getMirroredShortName | ( | const std::set< Pixel > & | pixels, |
int | uStart, | ||
int | vStart, | ||
int | vSize, | ||
double | thetaU, | ||
double | thetaV | ||
) | const |
Return the mirrored name for the pixel set.
Definition at line 200 of file PXDClusterPositionEstimator.cc.
|
inline |
Return cluster position estimator parameters from Database.
Definition at line 47 of file PXDClusterPositionEstimator.h.
int getSectorIndex | ( | double | thetaU, |
double | thetaV | ||
) | const |
Get sector index from angles.
Sectors in thetaU and thetaV are numbered ++, -+, –, +-.
Definition at line 293 of file PXDClusterPositionEstimator.cc.
|
inline |
Return shape index parameters from Database.
Definition at line 50 of file PXDClusterPositionEstimator.h.
float getShapeLikelyhood | ( | const PXDCluster & | cluster, |
double | tu, | ||
double | tv | ||
) | const |
Return cluster shape likelyhood.
Definition at line 72 of file PXDClusterPositionEstimator.cc.
const std::string getShortName | ( | const std::set< Pixel > & | pixels, |
int | uStart, | ||
int | vStart, | ||
int | vSize, | ||
double | thetaU, | ||
double | thetaV | ||
) | const |
Return the name for the pixel set.
Definition at line 173 of file PXDClusterPositionEstimator.cc.
|
private |
Return reference to the tail pixel in pixel set.
Definition at line 117 of file PXDClusterPositionEstimator.cc.
void initialize | ( | ) |
Initialize PXDClusterPositionEstimator from DB.
Definition at line 24 of file PXDClusterPositionEstimator.cc.
void setPositionEstimatorFromDB | ( | ) |
Set PositionEstimator from DB.
Definition at line 45 of file PXDClusterPositionEstimator.cc.
void setShapeIndexFromDB | ( | ) |
Set ShapeIndex from DB.
Definition at line 40 of file PXDClusterPositionEstimator.cc.
|
private |
PXDClusterPositionEstimatorPar retrieved from DB.
Definition at line 112 of file PXDClusterPositionEstimator.h.
|
private |
Currrent valid PXDClusterPositionEstimatorPar.
Definition at line 117 of file PXDClusterPositionEstimator.h.
|
private |
PXDClusterShapeIndex retrieved from DB.
Definition at line 110 of file PXDClusterPositionEstimator.h.
|
private |
Current valid PXDClusterShapeIndex.
Definition at line 115 of file PXDClusterPositionEstimator.h.