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