The class for PXD cluster shape classifier payload.
More...
#include <PXDClusterShapeClassifierPar.h>
|
| PXDClusterShapeClassifierPar () |
| Default constructor.
|
|
void | addShapeLikelyhood (int shape_index, float likelyhood) |
| Add shape likelyhood.
|
|
const std::map< int, float > & | getShapeLikelyhoodMap () const |
| Return shape likelyhood map
|
|
const PXDClusterOffsetPar * | getOffset (int shape_index, float eta) const |
| Returns position offset if available, otherwise returns nullptr.
|
|
void | addShape (int shape_index) |
| Add shape for position correction.
|
|
void | addEtaPercentile (int shape_index, float percentile) |
| Add eta percentile to shape for position correction.
|
|
void | addEtaLikelyhood (int shape_index, float likelyhood) |
| Add eta likelyhood to shape for position correction.
|
|
void | addEtaOffset (int shape_index, PXDClusterOffsetPar &offset) |
| Add offset to shape for position correction.
|
|
unsigned int | getEtaIndex (int shape_index, float eta) const |
| Get eta index for position correction.
|
|
const std::map< int, std::vector< float > > & | getPercentilesMap () const |
| Return percentiles map for position correction.
|
|
const std::map< int, std::vector< float > > & | getLikelyhoodMap () const |
| Return likelyhood map for position correction.
|
|
const std::map< int, std::vector< PXDClusterOffsetPar > > & | getOffsetMap () const |
| Return offset map for position correction.
|
|
The class for PXD cluster shape classifier payload.
Definition at line 26 of file PXDClusterShapeClassifierPar.h.
◆ PXDClusterShapeClassifierPar()
◆ addEtaLikelyhood()
void addEtaLikelyhood |
( |
int |
shape_index, |
|
|
float |
likelyhood |
|
) |
| |
|
inline |
Add eta likelyhood to shape for position correction.
Definition at line 59 of file PXDClusterShapeClassifierPar.h.
std::map< int, std::vector< float > > m_likelyhoods
Map of likelyhoods
◆ addEtaOffset()
Add offset to shape for position correction.
Definition at line 62 of file PXDClusterShapeClassifierPar.h.
62{
m_offsets[shape_index].push_back(offset);}
std::map< int, std::vector< PXDClusterOffsetPar > > m_offsets
Map of position offsets (corrections)
◆ addEtaPercentile()
void addEtaPercentile |
( |
int |
shape_index, |
|
|
float |
percentile |
|
) |
| |
|
inline |
Add eta percentile to shape for position correction.
Definition at line 56 of file PXDClusterShapeClassifierPar.h.
std::map< int, std::vector< float > > m_percentiles
Map of percentiles
◆ addShape()
void addShape |
( |
int |
shape_index | ) |
|
|
inline |
◆ addShapeLikelyhood()
void addShapeLikelyhood |
( |
int |
shape_index, |
|
|
float |
likelyhood |
|
) |
| |
|
inline |
◆ getEtaIndex()
unsigned int getEtaIndex |
( |
int |
shape_index, |
|
|
float |
eta |
|
) |
| const |
|
inline |
Get eta index for position correction.
Definition at line 65 of file PXDClusterShapeClassifierPar.h.
66 {
68 for (int i = etaPercentiles.size() - 1; i >= 0; --i) {
69 if (eta >= etaPercentiles[i])
70 return i;
71 }
72 return 0;
73 }
◆ getLikelyhoodMap()
const std::map< int, std::vector< float > > & getLikelyhoodMap |
( |
| ) |
const |
|
inline |
◆ getOffset()
Returns position offset if available, otherwise returns nullptr.
Definition at line 38 of file PXDClusterShapeClassifierPar.h.
39 {
41 return nullptr;
42 }
44 return &
m_offsets.at(shape_index)[eta_index];
45 }
unsigned int getEtaIndex(int shape_index, float eta) const
Get eta index for position correction.
◆ getOffsetMap()
◆ getPercentilesMap()
const std::map< int, std::vector< float > > & getPercentilesMap |
( |
| ) |
const |
|
inline |
◆ getShapeLikelyhoodMap()
const std::map< int, float > & getShapeLikelyhoodMap |
( |
| ) |
const |
|
inline |
◆ m_likelyhoods
std::map<int, std::vector<float> > m_likelyhoods |
|
private |
◆ m_offsets
◆ m_percentiles
std::map<int, std::vector<float> > m_percentiles |
|
private |
◆ m_shape_likelyhoods
std::map<int, float> m_shape_likelyhoods |
|
private |
The documentation for this class was generated from the following file: