10#include <calibration/CalibrationAlgorithm.h>
11#include <pxd/dbobjects/PXDClusterShapeIndexPar.h>
12#include <pxd/dbobjects/PXDClusterPositionEstimatorPar.h>
Base class for calibration algorithms.
EResult
The result of calibration.
Class implementing the PXD cluster position calibration algorithm.
float m_clusterEta
Eta value of cluster.
void createShapeClassifier(std::string treename, PXDClusterShapeClassifierPar *shapeClassifier, PXDClusterShapeIndexPar *shapeIndexer)
Returns a new classifier and index trained on cluster tree.
float m_positionOffsetU
Position offset u of cluster.
std::string m_mirroredShapeName
Name of mirrored cluster shape.
std::vector< int > clusterKinds
Vector of clusterkinds to calibrate.
std::string m_shapeName
Branches for tree.
PXDClusterShapeClassifierPar mirrorShapeClassifier(PXDClusterShapeClassifierPar *shapeClassifier, PXDClusterShapeIndexPar *shapeIndexer, int clusterKind)
Returns a mirrored version of shape classifier.
PXDClusterShapeClassifierPar localToGlobal(PXDClusterShapeClassifierPar *localShapeClassifier, PXDClusterShapeIndexPar *localShapeIndexer, PXDClusterShapeIndexPar *globalShapeIndexer)
Returns a shape classifier using global shape indices instead of local ones.
float m_pitchV
Branches for pitchtree.
std::map< std::string, int > m_sizeMap
Helper needed to map the name of a shape to the V size of the cluster.
float m_positionOffsetV
Position offset v of cluster.
int m_clusterKind
Pitch in V.
int maxEtaBins
Maximum number of eta bins for estimating cluster position offsets.
int minClusterForPositionOffset
Minimum number of collected clusters for estimating cluster position offsets.
int minClusterForShapeLikelyhood
Minimum number of collected clusters for estimating shape likelyhood.
PXDClusterPositionCalibrationAlgorithm()
Constructor set the prefix to PXDClusterPositionCalibrationAlgorithm.
virtual EResult calibrate() override
Run algo on data.
std::map< int, float > m_pitchMap
Helper needed to map the clusterkind to the V pitch of the sensor.
std::set< std::string > m_shapeSet
Set of unique shape names.
std::map< std::string, std::string > m_mirrorMap
Helper needed to map the name of a shape to the name of the mirrored shape.
The class for PXD cluster shape classifier payload.
The class for PXD cluster shape index payload.
Abstract base class for different kinds of events.