 |
Belle II Software
release-05-01-25
|
13 #include <pxd/dbobjects/PXDClusterPositionEstimatorPar.h>
14 #include <pxd/dbobjects/PXDClusterShapeIndexPar.h>
15 #include <pxd/dataobjects/PXDCluster.h>
16 #include <vxd/dataobjects/VxdID.h>
17 #include <framework/database/DBObjPtr.h>
20 #include <pxd/reconstruction/Pixel.h>
35 class PXDClusterPositionEstimator {
64 float computeEta(
const std::set<Pixel>& pixels,
int vStart,
int vSize,
double thetaU,
double thetaV)
const;
67 int computeShapeIndex(
const std::set<Pixel>& pixels,
int uStart,
int vStart,
int vSize,
double thetaU,
71 const std::string
getShortName(
const std::set<Pixel>& pixels,
int uStart,
int vStart,
int vSize,
double thetaU,
75 const std::string
getMirroredShortName(
const std::set<Pixel>& pixels,
int uStart,
int vStart,
int vSize,
double thetaU,
79 const std::string
getFullName(
const std::set<Pixel>& pixels,
int uStart,
int vStart)
const;
93 const Pixel&
getHeadPixel(
const std::set<Pixel>& pixels,
int vStart,
int vSize,
double thetaU,
double thetaV)
const;
96 const Pixel&
getTailPixel(
const std::set<Pixel>& pixels,
int vStart,
int vSize,
double thetaU,
double thetaV)
const;
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.
Class to uniquely identify a any structure of the PXD and SVD.
The class for PXD cluster position offset payload.
PXDClusterPositionEstimatorPar m_positionEstimatorPar
Currrent valid PXDClusterPositionEstimatorPar.
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.
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.
Class to represent one pixel, used in clustering for fast access.
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.
The class for PXD cluster position lookup table payload.
The class for PXD cluster shape index payload.
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.
int getSectorIndex(double thetaU, double thetaV) const
Get sector index from angles.
static PXDClusterPositionEstimator & getInstance()
Main (and only) way to access the PXDClusterPositionEstimator.
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 PXDClusterShapeIndexPar & getShapeIndexParameters() const
Return shape index parameters from Database.
PXDClusterShapeIndexPar m_shapeIndexPar
Current valid PXDClusterShapeIndex.
Abstract base class for different kinds of events.
int getClusterkind(const PXDCluster &cluster) const
Return kind of cluster needed to find cluster position correction.
void setPositionEstimatorFromDB()
Set PositionEstimator from DB.
float getShapeLikelyhood(const PXDCluster &cluster, double tu, double tv) const
Return cluster shape likelyhood.
const PXDClusterOffsetPar * getClusterOffset(const PXDCluster &cluster, double tu, double tv) const
Return pointer to cluster offsets, can be nullptr.
std::unique_ptr< DBObjPtr< PXDClusterPositionEstimatorPar > > m_positionEstimatorFromDB
PXDClusterPositionEstimatorPar retrieved from DB.
The PXD Cluster class This class stores all information about reconstructed PXD clusters The position...
void setShapeIndexFromDB()
Set ShapeIndex from DB.
PXDClusterPositionEstimator()
Singleton class, hidden constructor.
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...
const std::string getFullName(const std::set< Pixel > &pixels, int uStart, int vStart) const
Return a name for the 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.
Singleton class that estimates cluster positions taking into account the estimated track incidence an...
PXDClusterPositionEstimator & operator=(const PXDClusterPositionEstimator &)=delete
Singleton class, forbidden assignment operator.
std::unique_ptr< DBObjPtr< PXDClusterShapeIndexPar > > m_shapeIndexFromDB
PXDClusterShapeIndex retrieved from DB.
void initialize()
Initialize PXDClusterPositionEstimator from DB.
const PXDClusterPositionEstimatorPar & getPositionEstimatorParameters() const
Return cluster position estimator parameters from Database.