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

#include <IDCAverageGroupHelper.h>

Public Member Functions

 IDCAverageGroupHelper (IDCDelta< float > &idcsGrouped, const std::array< std::vector< float >, Mapper::NREGIONS > &weightsPad, const std::array< std::vector< float >, Mapper::NREGIONS > &weightsRow, const IDCDelta< float > &idcsUngrouped, std::vector< RobustAverage > &robustAverage, const IDCGroupHelperSector &idcGroupHelperSector)
 
unsigned int getRegion () const
 
auto getCRU () const
 
Sector getSector () const
 
Side getSide () 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 getGroupedIDCValGlobal (unsigned int urow, unsigned int upad) const
 
float getUngroupedIDCVal (const unsigned int padInRegion) const
 
unsigned int getIntegrationInterval () 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 setThreadNum (const unsigned int threadNum)
 
void setIntegrationInterval (const unsigned int integrationInterval)
 set integration interval for current processed region
 
void setCRU (const CRU cru)
 set current processed CRU
 
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

Definition at line 160 of file IDCAverageGroupHelper.h.

Constructor & Destructor Documentation

◆ IDCAverageGroupHelper()

o2::tpc::IDCAverageGroupHelper< IDCAverageGroupTPC >::IDCAverageGroupHelper ( IDCDelta< float > &  idcsGrouped,
const std::array< std::vector< float >, Mapper::NREGIONS > &  weightsPad,
const std::array< std::vector< float >, Mapper::NREGIONS > &  weightsRow,
const IDCDelta< float > &  idcsUngrouped,
std::vector< RobustAverage > &  robustAverage,
const IDCGroupHelperSector idcGroupHelperSector 
)
inline

Definition at line 163 of file IDCAverageGroupHelper.h.

Member Function Documentation

◆ addValue() [1/2]

void o2::tpc::IDCAverageGroupHelper< IDCAverageGroupTPC >::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< IDCAverageGroupTPC >::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< IDCAverageGroupTPC >::clearRobustAverage ( )

clearing the object for averaging

◆ getCRU()

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

Definition at line 169 of file IDCAverageGroupHelper.h.

◆ getEdgePadGroupingType()

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

Definition at line 260 of file IDCAverageGroupHelper.h.

◆ getGroupedIDC()

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

◆ getGroupedIDCValGlobal()

float o2::tpc::IDCAverageGroupHelper< IDCAverageGroupTPC >::getGroupedIDCValGlobal ( unsigned int  urow,
unsigned int  upad 
) const
Returns
returns the stored DeltaIDC value for local ungrouped pad row and ungrouped pad
Parameters
urowrow of the ungrouped IDCs
upadpad number of the ungrouped IDCs

◆ getGroupedPadsSectorEdges()

unsigned int o2::tpc::IDCAverageGroupHelper< IDCAverageGroupTPC >::getGroupedPadsSectorEdges ( ) const
inline

Definition at line 262 of file IDCAverageGroupHelper.h.

◆ getGroupPads()

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

Definition at line 181 of file IDCAverageGroupHelper.h.

◆ getGroupRows()

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

Definition at line 178 of file IDCAverageGroupHelper.h.

◆ getIntegrationInterval()

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

Definition at line 222 of file IDCAverageGroupHelper.h.

◆ getLastPad()

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

Definition at line 198 of file IDCAverageGroupHelper.h.

◆ getLastRow()

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

Definition at line 190 of file IDCAverageGroupHelper.h.

◆ getOffsetForEdgePad()

int o2::tpc::IDCAverageGroupHelper< IDCAverageGroupTPC >::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 184 of file IDCAverageGroupHelper.h.

◆ getPadsInGroupSectorEdges()

unsigned int o2::tpc::IDCAverageGroupHelper< IDCAverageGroupTPC >::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 266 of file IDCAverageGroupHelper.h.

◆ getPadsPerRow()

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

Definition at line 194 of file IDCAverageGroupHelper.h.

◆ getRegion()

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

Definition at line 166 of file IDCAverageGroupHelper.h.

◆ getSector()

Sector o2::tpc::IDCAverageGroupHelper< IDCAverageGroupTPC >::getSector ( ) const
inline
Returns
returns processed sector

Definition at line 172 of file IDCAverageGroupHelper.h.

◆ getSide()

Side o2::tpc::IDCAverageGroupHelper< IDCAverageGroupTPC >::getSide ( ) const
inline
Returns
returns processed side of the TPC

Definition at line 175 of file IDCAverageGroupHelper.h.

◆ getTotalGroupPadsSectorEdges()

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

Definition at line 187 of file IDCAverageGroupHelper.h.

◆ getUngroupedIDCVal()

float o2::tpc::IDCAverageGroupHelper< IDCAverageGroupTPC >::getUngroupedIDCVal ( const unsigned int  padInRegion) const
Parameters
padInRegionlocal pad number in processed region

◆ getWeight()

float o2::tpc::IDCAverageGroupHelper< IDCAverageGroupTPC >::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 211 of file IDCAverageGroupHelper.h.

◆ getWeightPad()

float o2::tpc::IDCAverageGroupHelper< IDCAverageGroupTPC >::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 202 of file IDCAverageGroupHelper.h.

◆ getWeightRow()

float o2::tpc::IDCAverageGroupHelper< IDCAverageGroupTPC >::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 206 of file IDCAverageGroupHelper.h.

◆ setCRU()

void o2::tpc::IDCAverageGroupHelper< IDCAverageGroupTPC >::setCRU ( const CRU  cru)
inline

set current processed CRU

Definition at line 248 of file IDCAverageGroupHelper.h.

◆ setGroupedIDC()

void o2::tpc::IDCAverageGroupHelper< IDCAverageGroupTPC >::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 236 of file IDCAverageGroupHelper.h.

◆ setIntegrationInterval()

void o2::tpc::IDCAverageGroupHelper< IDCAverageGroupTPC >::setIntegrationInterval ( const unsigned int  integrationInterval)

set integration interval for current processed region

◆ setSectorEdgeIDC()

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

setting the IDC value at the edge of the sector

Parameters
ulrowungrouped local row
upadungrouped pad
valvalue which will be stored

◆ setThreadNum()

void o2::tpc::IDCAverageGroupHelper< IDCAverageGroupTPC >::setThreadNum ( const unsigned int  threadNum)
inline
Parameters
threadNumthread index

Definition at line 242 of file IDCAverageGroupHelper.h.


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