Helper class for performing the grouping per CRU.
More...
#include <IDCAverageGroupHelper.h>
|
| IDCAverageGroupHelper (IDCGroup &idcsGrouped, const std::vector< float > &weightsPad, const std::vector< float > &weightsRow, const std::vector< float > &idcsUngrouped, std::vector< RobustAverage > &robustAverage, const unsigned int cru) |
| constructor
|
|
unsigned int | getRegion () const |
|
auto | getCRU () const |
|
int | getGroupRows () const |
|
int | getGroupPads () const |
|
int | getOffsetForEdgePad (const unsigned int upad, const unsigned int ulrow) const |
|
unsigned int | getTotalGroupPadsSectorEdges () const |
|
int | getLastRow () const |
|
unsigned int | getPadsPerRow (const unsigned int glrow) const |
|
unsigned int | getLastPad (const unsigned int ulrow) const |
|
float | getWeightPad (const unsigned int relPosPad) const |
|
float | getWeightRow (const unsigned int relPosRow) const |
|
float | getWeight (const unsigned int relPosRow, const unsigned int relPosPad) const |
|
float | getUngroupedIDCVal (const unsigned int padInRegion) const |
|
float | getGroupedIDCValGlobal (unsigned int ugrow, unsigned int upad) const |
|
void | addValue (const unsigned int padInRegion, const float weight) |
|
void | addValue (const unsigned int padInRegion) |
|
void | setGroupedIDC (const unsigned int rowGrouped, const unsigned int padGrouped, const bool withweights) |
|
float | getGroupedIDC (const bool withweights) const |
|
void | set (const unsigned int threadNum, const unsigned int integrationInterval) |
|
unsigned int | getIntegrationInterval () const |
|
void | clearRobustAverage () |
| clearing the object for averaging
|
|
void | setSectorEdgeIDC (const unsigned int ulrow, const unsigned int upad) |
|
EdgePadGroupingMethod | getEdgePadGroupingType () const |
|
unsigned int | getGroupedPadsSectorEdges () const |
|
unsigned int | getPadsInGroupSectorEdges (const unsigned indexGroup) const |
|
Helper class for performing the grouping per CRU.
Definition at line 46 of file IDCAverageGroupHelper.h.
◆ IDCAverageGroupHelper()
o2::tpc::IDCAverageGroupHelper< IDCAverageGroupCRU >::IDCAverageGroupHelper |
( |
IDCGroup & |
idcsGrouped, |
|
|
const std::vector< float > & |
weightsPad, |
|
|
const std::vector< float > & |
weightsRow, |
|
|
const std::vector< float > & |
idcsUngrouped, |
|
|
std::vector< RobustAverage > & |
robustAverage, |
|
|
const unsigned int |
cru |
|
) |
| |
|
inline |
◆ addValue() [1/2]
add a value to the averaging object
- Parameters
-
padInRegion | pad index in the processed region to the value which will be added |
◆ addValue() [2/2]
add a value to the averaging object
- Parameters
-
padInRegion | pad index in the processed region to the value which will be added |
weight | weight of the value |
◆ clearRobustAverage()
clearing the object for averaging
◆ getCRU()
◆ getEdgePadGroupingType()
- Returns
- returns which type of grouping is performed for the sector edge pads
Definition at line 138 of file IDCAverageGroupHelper.h.
◆ getGroupedIDC()
- Returns
- returns grouped and averaged IDC value
◆ getGroupedIDCValGlobal()
- Returns
- returns the stored grouped IDC value for local ungrouped pad row and ungrouped pad
- Parameters
-
ugrow | global ungrouped row |
upad | pad number of the ungrouped IDCs |
Definition at line 101 of file IDCAverageGroupHelper.h.
◆ getGroupedPadsSectorEdges()
- Returns
- returns the number of differently grouped pads per row: returns sum of digits in integer whoch are not 0 (example: 0: returns 0, 11: returns 2, 321: returns 3)
Definition at line 141 of file IDCAverageGroupHelper.h.
◆ getGroupPads()
◆ getGroupRows()
◆ getIntegrationInterval()
◆ getLastPad()
◆ getLastRow()
◆ getOffsetForEdgePad()
- Returns
- returns offset of the index for a pad which is not grouped (in the region where mGroupPadsSectorEdges is true).
Definition at line 65 of file IDCAverageGroupHelper.h.
◆ getPadsInGroupSectorEdges()
- Returns
- returns number of ungrouped pads for grouped pad (example groupPadsSectorEdges=324530: group=0 -> 3, group=1 -> 5, group=2 -> 4...
- Parameters
-
Definition at line 145 of file IDCAverageGroupHelper.h.
◆ getPadsPerRow()
◆ getRegion()
◆ getTotalGroupPadsSectorEdges()
- Returns
- returns the number of pads at the sector edges which are not grouped
Definition at line 68 of file IDCAverageGroupHelper.h.
◆ getUngroupedIDCVal()
- Returns
- returns ungrouped IDC value
- Parameters
-
padInRegion | local pad number in processed region |
Definition at line 96 of file IDCAverageGroupHelper.h.
◆ getWeight()
- Returns
- returns weighting in pad or row direction
- Parameters
-
relPosRow | distance in pads to the group of IDCs in row direction |
relPosPad | distance in pads to the group of IDCs in pad direction |
Definition at line 92 of file IDCAverageGroupHelper.h.
◆ getWeightPad()
- Returns
- returns weighting in pad direction for nth outer pad
- Parameters
-
relPosPad | distance in pads to the group of IDCs |
Definition at line 83 of file IDCAverageGroupHelper.h.
◆ getWeightRow()
- Returns
- returns weighting in row direction for nth outer pad
- Parameters
-
relPosRow | distance in pads to the group of IDCs |
Definition at line 87 of file IDCAverageGroupHelper.h.
◆ set()
setting the members for correct data access
- Parameters
-
threadNum | thread index |
integrationInterval | integration interval |
◆ setGroupedIDC()
calculating and setting the grouped IDC value
- Parameters
-
rowGrouped | grouped row index |
padGrouped | grouped pad index |
Definition at line 115 of file IDCAverageGroupHelper.h.
◆ setSectorEdgeIDC()
setting the IDC value at the edge of the sector
- Parameters
-
ulrow | ungrouped local row |
upad | ungrouped pad |
val | value which will be stored |
Definition at line 135 of file IDCAverageGroupHelper.h.
The documentation for this class was generated from the following file: