Project
Loading...
Searching...
No Matches
o2::tpc::IDCAverageGroupHelper< IDCAverageGroupCRU > Class Reference

Helper class for performing the grouping per CRU. More...

#include <IDCAverageGroupHelper.h>

Public Member Functions

 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
 

Detailed Description

Helper class for performing the grouping per CRU.

Definition at line 46 of file IDCAverageGroupHelper.h.

Constructor & Destructor Documentation

◆ 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

constructor

Definition at line 50 of file IDCAverageGroupHelper.h.

Member Function Documentation

◆ addValue() [1/2]

void o2::tpc::IDCAverageGroupHelper< IDCAverageGroupCRU >::addValue ( const unsigned int  padInRegion)

add a value to the averaging object

Parameters
padInRegionpad index in the processed region to the value which will be added

◆ addValue() [2/2]

void o2::tpc::IDCAverageGroupHelper< IDCAverageGroupCRU >::addValue ( const unsigned int  padInRegion,
const float  weight 
)

add a value to the averaging object

Parameters
padInRegionpad index in the processed region to the value which will be added
weightweight of the value

◆ clearRobustAverage()

void o2::tpc::IDCAverageGroupHelper< IDCAverageGroupCRU >::clearRobustAverage ( )

clearing the object for averaging

◆ getCRU()

auto o2::tpc::IDCAverageGroupHelper< IDCAverageGroupCRU >::getCRU ( ) const
inline
Returns
returns processed CRU

Definition at line 56 of file IDCAverageGroupHelper.h.

◆ getEdgePadGroupingType()

EdgePadGroupingMethod o2::tpc::IDCAverageGroupHelper< IDCAverageGroupCRU >::getEdgePadGroupingType ( ) const
inline
Returns
returns which type of grouping is performed for the sector edge pads

Definition at line 138 of file IDCAverageGroupHelper.h.

◆ getGroupedIDC()

float o2::tpc::IDCAverageGroupHelper< IDCAverageGroupCRU >::getGroupedIDC ( const bool  withweights) const
Returns
returns grouped and averaged IDC value

◆ getGroupedIDCValGlobal()

float o2::tpc::IDCAverageGroupHelper< IDCAverageGroupCRU >::getGroupedIDCValGlobal ( unsigned int  ugrow,
unsigned int  upad 
) const
inline
Returns
returns the stored grouped IDC value for local ungrouped pad row and ungrouped pad
Parameters
ugrowglobal ungrouped row
upadpad number of the ungrouped IDCs

Definition at line 101 of file IDCAverageGroupHelper.h.

◆ getGroupedPadsSectorEdges()

unsigned int o2::tpc::IDCAverageGroupHelper< IDCAverageGroupCRU >::getGroupedPadsSectorEdges ( ) const
inline
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()

int o2::tpc::IDCAverageGroupHelper< IDCAverageGroupCRU >::getGroupPads ( ) const
inline
Returns
returns grouping parameter

Definition at line 62 of file IDCAverageGroupHelper.h.

◆ getGroupRows()

int o2::tpc::IDCAverageGroupHelper< IDCAverageGroupCRU >::getGroupRows ( ) const
inline
Returns
returns grouping parameter

Definition at line 59 of file IDCAverageGroupHelper.h.

◆ getIntegrationInterval()

unsigned int o2::tpc::IDCAverageGroupHelper< IDCAverageGroupCRU >::getIntegrationInterval ( ) const
inline
Returns
returns processed integration interval

Definition at line 126 of file IDCAverageGroupHelper.h.

◆ getLastPad()

unsigned int o2::tpc::IDCAverageGroupHelper< IDCAverageGroupCRU >::getLastPad ( const unsigned int  ulrow) const
inline
Returns
returns last ungrouped pad for given global row
Parameters
ulrowungrouped local row

Definition at line 79 of file IDCAverageGroupHelper.h.

◆ getLastRow()

int o2::tpc::IDCAverageGroupHelper< IDCAverageGroupCRU >::getLastRow ( ) const
inline
Returns
returns last ungrouped row

Definition at line 71 of file IDCAverageGroupHelper.h.

◆ getOffsetForEdgePad()

int o2::tpc::IDCAverageGroupHelper< IDCAverageGroupCRU >::getOffsetForEdgePad ( const unsigned int  upad,
const unsigned int  ulrow 
) const
inline
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()

unsigned int o2::tpc::IDCAverageGroupHelper< IDCAverageGroupCRU >::getPadsInGroupSectorEdges ( const unsigned  indexGroup) const
inline
Returns
returns number of ungrouped pads for grouped pad (example groupPadsSectorEdges=324530: group=0 -> 3, group=1 -> 5, group=2 -> 4...
Parameters
groupindex of the group

Definition at line 145 of file IDCAverageGroupHelper.h.

◆ getPadsPerRow()

unsigned int o2::tpc::IDCAverageGroupHelper< IDCAverageGroupCRU >::getPadsPerRow ( const unsigned int  glrow) const
inline
Returns
returns number of grouped pads per row
Parameters
glrowgrouped local row

Definition at line 75 of file IDCAverageGroupHelper.h.

◆ getRegion()

unsigned int o2::tpc::IDCAverageGroupHelper< IDCAverageGroupCRU >::getRegion ( ) const
inline
Returns
returns processed region

Definition at line 53 of file IDCAverageGroupHelper.h.

◆ getTotalGroupPadsSectorEdges()

unsigned int o2::tpc::IDCAverageGroupHelper< IDCAverageGroupCRU >::getTotalGroupPadsSectorEdges ( ) const
inline
Returns
returns the number of pads at the sector edges which are not grouped

Definition at line 68 of file IDCAverageGroupHelper.h.

◆ getUngroupedIDCVal()

float o2::tpc::IDCAverageGroupHelper< IDCAverageGroupCRU >::getUngroupedIDCVal ( const unsigned int  padInRegion) const
inline
Returns
returns ungrouped IDC value
Parameters
padInRegionlocal pad number in processed region

Definition at line 96 of file IDCAverageGroupHelper.h.

◆ getWeight()

float o2::tpc::IDCAverageGroupHelper< IDCAverageGroupCRU >::getWeight ( const unsigned int  relPosRow,
const unsigned int  relPosPad 
) const
inline
Returns
returns weighting in pad or row direction
Parameters
relPosRowdistance in pads to the group of IDCs in row direction
relPosPaddistance in pads to the group of IDCs in pad direction

Definition at line 92 of file IDCAverageGroupHelper.h.

◆ getWeightPad()

float o2::tpc::IDCAverageGroupHelper< IDCAverageGroupCRU >::getWeightPad ( const unsigned int  relPosPad) const
inline
Returns
returns weighting in pad direction for nth outer pad
Parameters
relPosPaddistance in pads to the group of IDCs

Definition at line 83 of file IDCAverageGroupHelper.h.

◆ getWeightRow()

float o2::tpc::IDCAverageGroupHelper< IDCAverageGroupCRU >::getWeightRow ( const unsigned int  relPosRow) const
inline
Returns
returns weighting in row direction for nth outer pad
Parameters
relPosRowdistance in pads to the group of IDCs

Definition at line 87 of file IDCAverageGroupHelper.h.

◆ set()

void o2::tpc::IDCAverageGroupHelper< IDCAverageGroupCRU >::set ( const unsigned int  threadNum,
const unsigned int  integrationInterval 
)

setting the members for correct data access

Parameters
threadNumthread index
integrationIntervalintegration interval

◆ setGroupedIDC()

void o2::tpc::IDCAverageGroupHelper< IDCAverageGroupCRU >::setGroupedIDC ( const unsigned int  rowGrouped,
const unsigned int  padGrouped,
const bool  withweights 
)
inline

calculating and setting the grouped IDC value

Parameters
rowGroupedgrouped row index
padGroupedgrouped pad index

Definition at line 115 of file IDCAverageGroupHelper.h.

◆ setSectorEdgeIDC()

void o2::tpc::IDCAverageGroupHelper< IDCAverageGroupCRU >::setSectorEdgeIDC ( const unsigned int  ulrow,
const unsigned int  upad 
)
inline

setting the IDC value at the edge of the sector

Parameters
ulrowungrouped local row
upadungrouped pad
valvalue which will be stored

Definition at line 135 of file IDCAverageGroupHelper.h.


The documentation for this class was generated from the following file: