14#include <pxd/dbobjects/PXDClusterOffsetPar.h>
44 return &
m_offsets.at(shape_index)[eta_index];
52 m_offsets[shape_index] = std::vector<PXDClusterOffsetPar>();
68 for (
int i = etaPercentiles.size() - 1; i >= 0; --i) {
69 if (eta >= etaPercentiles[i])
86 std::map<int, std::vector<PXDClusterOffsetPar> >
m_offsets;
The class for PXD cluster position offset payload.
The class for PXD cluster shape classifier payload.
ClassDef(PXDClusterShapeClassifierPar, 2)
ClassDef, must be the last term before the closing {}.
std::map< int, float > m_shape_likelyhoods
Map of shape likelyhoods.
void addShapeLikelyhood(int shape_index, float likelyhood)
Add shape likelyhood.
const std::map< int, std::vector< PXDClusterOffsetPar > > & getOffsetMap() const
Return offset map for position correction.
void addEtaLikelyhood(int shape_index, float likelyhood)
Add eta likelyhood to shape for position correction.
const PXDClusterOffsetPar * getOffset(int shape_index, float eta) const
Returns position offset if available, otherwise returns nullptr.
const std::map< int, std::vector< float > > & getPercentilesMap() const
Return percentiles map for position correction.
void addEtaPercentile(int shape_index, float percentile)
Add eta percentile to shape for position correction.
const std::map< int, std::vector< float > > & getLikelyhoodMap() const
Return likelyhood map for position correction.
unsigned int getEtaIndex(int shape_index, float eta) const
Get eta index for position correction.
std::map< int, std::vector< PXDClusterOffsetPar > > m_offsets
Map of position offsets (corrections)
void addShape(int shape_index)
Add shape for position correction.
PXDClusterShapeClassifierPar()
Default constructor.
std::map< int, std::vector< float > > m_likelyhoods
Map of likelyhoods
const std::map< int, float > & getShapeLikelyhoodMap() const
Return shape likelyhood map
std::map< int, std::vector< float > > m_percentiles
Map of percentiles
void addEtaOffset(int shape_index, PXDClusterOffsetPar &offset)
Add offset to shape for position correction.
Abstract base class for different kinds of events.