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