Belle II Software  release-08-01-10
PXDClusterPositionEstimatorPar Class Reference

The class for PXD cluster position lookup table payload. More...

#include <PXDClusterPositionEstimatorPar.h>

Inheritance diagram for PXDClusterPositionEstimatorPar:
Collaboration diagram for PXDClusterPositionEstimatorPar:

Public Member Functions

 PXDClusterPositionEstimatorPar ()
 Default constructor.
 
 ~ PXDClusterPositionEstimatorPar ()
 Destructor.
 
void addGrid (int clusterkind, const TH2F &grid)
 Add grid for clusterkind.
 
const std::map< int, TH2F > & getGridMap () const
 Return grid map.
 
void setShapeClassifier (const PXDClusterShapeClassifierPar &classifier, int uBin, int vBin, int clusterkind)
 Set shape classifier.
 
const PXDClusterShapeClassifierPargetShapeClassifier (int uBin, int vBin, int clusterkind) const
 Returns shape classifier.
 
const PXDClusterShapeClassifierPargetShapeClassifier (double thetaU, double thetaV, int clusterkind) const
 Returns shape classifier for incidence angles and clusterkind.
 
bool hasClassifier (double thetaU, double thetaV, int clusterkind) const
 Returns True if there is a classifier available.
 
const PXDClusterOffsetPargetOffset (int shape_index, float eta, double thetaU, double thetaV, int clusterkind) const
 Returns correction (offset) for cluster shape relative to center of pixel (startU/startV) if available, otherwise returns nullptr.
 
float getShapeLikelyhood (int shape_index, double thetaU, double thetaV, int clusterkind) const
 Returns shape likelyhood. More...
 

Private Member Functions

 ClassDef (PXDClusterPositionEstimatorPar, 2)
 ClassDef, must be the last term before the closing {}.
 

Private Attributes

std::map< int, TH2F > m_gridmap
 Map of angular grids for different clusterkinds

 
std::map< int, std::vector< PXDClusterShapeClassifierPar > > m_shapeClassifiers
 Map of cluster shape classifiers for different clusterkinds.
 

Detailed Description

The class for PXD cluster position lookup table payload.

Definition at line 27 of file PXDClusterPositionEstimatorPar.h.

Member Function Documentation

◆ getShapeLikelyhood()

float getShapeLikelyhood ( int  shape_index,
double  thetaU,
double  thetaV,
int  clusterkind 
) const
inline

Returns shape likelyhood.

Returns zero if shape not known, otherwise positive float

Definition at line 113 of file PXDClusterPositionEstimatorPar.h.

114  {
115  // Return zero if there no classifier
116  if (not hasClassifier(thetaU, thetaV, clusterkind)) {
117  return 0;
118  }
119  auto likelyhoodMap = getShapeClassifier(thetaU, thetaV, clusterkind).getShapeLikelyhoodMap();
120 
121  // Return zero if no likelyhood was estimated
122  auto it = likelyhoodMap.find(shape_index);
123  if (it == likelyhoodMap.end())
124  return 0;
125 
126  return it->second;
127  }
const PXDClusterShapeClassifierPar & getShapeClassifier(int uBin, int vBin, int clusterkind) const
Returns shape classifier.
bool hasClassifier(double thetaU, double thetaV, int clusterkind) const
Returns True if there is a classifier available.
const std::map< int, float > & getShapeLikelyhoodMap() const
Return shape likelyhood map

The documentation for this class was generated from the following file: