Project
Loading...
Searching...
No Matches
o2::tpc::IDCGroupHelperSector Class Reference

Helper class for accessing grouped pads for one sector. More...

#include <IDCGroupHelperSector.h>

Inherited by o2::tpc::IDCFactorization.

Public Member Functions

 IDCGroupHelperSector (const std::array< unsigned char, Mapper::NREGIONS > &groupPads, const std::array< unsigned char, Mapper::NREGIONS > &groupRows, const std::array< unsigned char, Mapper::NREGIONS > &groupLastRowsThreshold, const std::array< unsigned char, Mapper::NREGIONS > &groupLastPadsThreshold, const unsigned int groupNotnPadsSectorEdges)
 
 IDCGroupHelperSector (const ParameterIDCGroupCCDB &groupingParameter)
 
 IDCGroupHelperSector ()=default
 default constructor for ROOT I/O
 
unsigned int getIndexGrouped (const unsigned int sector, const unsigned int region, const unsigned int glrow, const unsigned int pad, unsigned int integrationInterval) const
 
unsigned int getIndexUngrouped (const unsigned int sector, const unsigned int region, unsigned int ulrow, unsigned int upad, unsigned int integrationInterval) const
 
int getOffsetForEdgePad (const unsigned int upad, const unsigned int ulrow, const unsigned int region) const
 
unsigned int getIndexUngroupedGlobal (const unsigned int sector, const unsigned int region, unsigned int ugrow, unsigned int upad, unsigned int integrationInterval) const
 
unsigned int getGroupedPad (const unsigned int region, unsigned int ulrow, unsigned int upad) const
 
unsigned int getGroupedRow (const unsigned int region, unsigned int ulrow) const
 
const auto & getGroupingParameter () const
 
unsigned int getNIDCs (const unsigned int region) const
 
unsigned int getNRows (const unsigned int region) const
 
unsigned int getRegionOffset (const unsigned int region) const
 
unsigned int getNIDCsPerSector () const
 
unsigned int getLastRow (const unsigned int region) const
 
unsigned int getLastPad (const unsigned int region, const unsigned int ulrow) const
 
unsigned int getOffsRow (const unsigned int region, const unsigned int glrow) const
 
unsigned getPadsPerRow (const unsigned int region, const unsigned int glrow) const
 

Static Public Member Functions

static unsigned int getUngroupedIndexGlobal (const unsigned int sector, const unsigned int region, unsigned int urow, unsigned int upad, unsigned int integrationInterval)
 

Protected Member Functions

void initIDCGroupHelperSector ()
 init function for setting the members
 

Protected Attributes

ParameterIDCGroupCCDB mGroupingPar {}
 struct containg the grouping parameter
 
std::array< unsigned int, Mapper::NREGIONSmNIDCsPerCRU {}
 total number of IDCs per region per integration interval
 
unsigned int mNIDCsPerSector {}
 number of grouped IDCs per sector
 
std::array< unsigned int, Mapper::NREGIONSmRows {}
 number of grouped rows per region
 
std::array< unsigned int, Mapper::NREGIONSmRegionOffs {}
 offset for the region per region
 
std::array< std::vector< unsigned int >, Mapper::NREGIONSmPadsPerRow {}
 number of pads per row per region
 
std::array< std::vector< unsigned int >, Mapper::NREGIONSmOffsRow {}
 offset to calculate the index in the data from row and pad per region
 

Detailed Description

Helper class for accessing grouped pads for one sector.

Definition at line 28 of file IDCGroupHelperSector.h.

Constructor & Destructor Documentation

◆ IDCGroupHelperSector() [1/3]

o2::tpc::IDCGroupHelperSector::IDCGroupHelperSector ( const std::array< unsigned char, Mapper::NREGIONS > &  groupPads,
const std::array< unsigned char, Mapper::NREGIONS > &  groupRows,
const std::array< unsigned char, Mapper::NREGIONS > &  groupLastRowsThreshold,
const std::array< unsigned char, Mapper::NREGIONS > &  groupLastPadsThreshold,
const unsigned int  groupNotnPadsSectorEdges 
)
inline

constructor

Parameters
groupPadsnumber of pads in pad direction which will be grouped
groupRowsnumber of pads in row direction which will be grouped
groupLastRowsThresholdminimum number of pads in row direction for the last group in row direction
groupLastPadsThresholdminimum number of pads in pad direction for the last group in pad direction

Definition at line 36 of file IDCGroupHelperSector.h.

◆ IDCGroupHelperSector() [2/3]

o2::tpc::IDCGroupHelperSector::IDCGroupHelperSector ( const ParameterIDCGroupCCDB groupingParameter)
inline

constructor

Parameters
groupingParameterstruct holding the grouping parameter

Definition at line 41 of file IDCGroupHelperSector.h.

◆ IDCGroupHelperSector() [3/3]

o2::tpc::IDCGroupHelperSector::IDCGroupHelperSector ( )
default

default constructor for ROOT I/O

Member Function Documentation

◆ getGroupedPad()

unsigned int o2::tpc::IDCGroupHelperSector::getGroupedPad ( const unsigned int  region,
unsigned int  ulrow,
unsigned int  upad 
) const
Returns
returns grouped pad for ungrouped row and pad
Parameters
regionregion
ulrowlocal ungrouped row in a region
upadungrouped pad

Definition at line 16 of file IDCGroupHelperSector.cxx.

◆ getGroupedRow()

unsigned int o2::tpc::IDCGroupHelperSector::getGroupedRow ( const unsigned int  region,
unsigned int  ulrow 
) const
Returns
returns the row of the group from the local ungrouped row in a region
Parameters
regionregion
ulrowlocal ungrouped row in a region

Definition at line 21 of file IDCGroupHelperSector.cxx.

◆ getGroupingParameter()

const auto & o2::tpc::IDCGroupHelperSector::getGroupingParameter ( ) const
inline
Returns
grouping parameter

Definition at line 89 of file IDCGroupHelperSector.h.

◆ getIndexGrouped()

unsigned int o2::tpc::IDCGroupHelperSector::getIndexGrouped ( const unsigned int  sector,
const unsigned int  region,
const unsigned int  glrow,
const unsigned int  pad,
unsigned int  integrationInterval 
) const
inline
Returns
returns index to the data
Parameters
sectorsector
regionTPC region
glrowgrouped local row
padpad of the grouped IDCs
integrationIntervalintegration interval

Definition at line 52 of file IDCGroupHelperSector.h.

◆ getIndexUngrouped()

unsigned int o2::tpc::IDCGroupHelperSector::getIndexUngrouped ( const unsigned int  sector,
const unsigned int  region,
unsigned int  ulrow,
unsigned int  upad,
unsigned int  integrationInterval 
) const
inline
Returns
returns the index to the grouped data with ungrouped inputs
Parameters
sectorsector
regionTPC region
ulrowlocal row of the ungrouped IDCs
upadpad number of the ungrouped IDCs
integrationIntervalintegration interval

Definition at line 60 of file IDCGroupHelperSector.h.

◆ getIndexUngroupedGlobal()

unsigned int o2::tpc::IDCGroupHelperSector::getIndexUngroupedGlobal ( const unsigned int  sector,
const unsigned int  region,
unsigned int  ugrow,
unsigned int  upad,
unsigned int  integrationInterval 
) const
inline
Returns
returns the index to the grouped data with ungrouped inputs
Parameters
sectorsector
regionTPC region
ugrowglobal row of the ungrouped IDCs
upadpad number of the ungrouped IDCs
integrationIntervalintegration interval

Definition at line 75 of file IDCGroupHelperSector.h.

◆ getLastPad()

unsigned int o2::tpc::IDCGroupHelperSector::getLastPad ( const unsigned int  region,
const unsigned int  ulrow 
) const
Returns
returns last ungrouped pad for given global row
Parameters
ulrowungrouped local row

Definition at line 38 of file IDCGroupHelperSector.cxx.

◆ getLastRow()

unsigned int o2::tpc::IDCGroupHelperSector::getLastRow ( const unsigned int  region) const
Returns
returns last ungrouped row

Definition at line 26 of file IDCGroupHelperSector.cxx.

◆ getNIDCs()

unsigned int o2::tpc::IDCGroupHelperSector::getNIDCs ( const unsigned int  region) const
inline
Returns
returns number of IDCs for given region

Definition at line 92 of file IDCGroupHelperSector.h.

◆ getNIDCsPerSector()

unsigned int o2::tpc::IDCGroupHelperSector::getNIDCsPerSector ( ) const
inline
Returns
returns number of IDCs for a whole sector

Definition at line 101 of file IDCGroupHelperSector.h.

◆ getNRows()

unsigned int o2::tpc::IDCGroupHelperSector::getNRows ( const unsigned int  region) const
inline
Returns
returns number of grouped rows for given region

Definition at line 95 of file IDCGroupHelperSector.h.

◆ getOffsetForEdgePad()

int o2::tpc::IDCGroupHelperSector::getOffsetForEdgePad ( const unsigned int  upad,
const unsigned int  ulrow,
const unsigned int  region 
) const
Returns
returns offset of the index for a pad which is not grouped (in the region where mGroupPadsSectorEdges is true). returns for pads near local pad number = 0 negative value and for pads near local pad number = max value positive value
Parameters
upadpad number of the ungrouped IDCs
ulrowlocal row of the ungrouped IDCs
regionTPC region

Definition at line 59 of file IDCGroupHelperSector.cxx.

◆ getOffsRow()

unsigned int o2::tpc::IDCGroupHelperSector::getOffsRow ( const unsigned int  region,
const unsigned int  glrow 
) const
inline
Returns
returns offsey to calculate the index
Parameters
glrowgrouped local row

Definition at line 112 of file IDCGroupHelperSector.h.

◆ getPadsPerRow()

unsigned o2::tpc::IDCGroupHelperSector::getPadsPerRow ( const unsigned int  region,
const unsigned int  glrow 
) const
inline
Returns
returns number of grouped pads per row
Parameters
glrowgrouped local row

Definition at line 116 of file IDCGroupHelperSector.h.

◆ getRegionOffset()

unsigned int o2::tpc::IDCGroupHelperSector::getRegionOffset ( const unsigned int  region) const
inline
Returns
returns region offset for calculating the index

Definition at line 98 of file IDCGroupHelperSector.h.

◆ getUngroupedIndexGlobal()

static unsigned int o2::tpc::IDCGroupHelperSector::getUngroupedIndexGlobal ( const unsigned int  sector,
const unsigned int  region,
unsigned int  urow,
unsigned int  upad,
unsigned int  integrationInterval 
)
inlinestatic
Returns
returns index to ungrouped data from ungrouped pad and row
Parameters
sectorsector
regionregion
urowrow of the ungrouped IDCs
upadpad number of the ungrouped IDCs
integrationIntervalintegration interval

Definition at line 124 of file IDCGroupHelperSector.h.

◆ initIDCGroupHelperSector()

void o2::tpc::IDCGroupHelperSector::initIDCGroupHelperSector ( )
protected

init function for setting the members

Definition at line 43 of file IDCGroupHelperSector.cxx.

Member Data Documentation

◆ mGroupingPar

ParameterIDCGroupCCDB o2::tpc::IDCGroupHelperSector::mGroupingPar {}
protected

struct containg the grouping parameter

Definition at line 127 of file IDCGroupHelperSector.h.

◆ mNIDCsPerCRU

std::array<unsigned int, Mapper::NREGIONS> o2::tpc::IDCGroupHelperSector::mNIDCsPerCRU {}
protected

total number of IDCs per region per integration interval

Definition at line 128 of file IDCGroupHelperSector.h.

◆ mNIDCsPerSector

unsigned int o2::tpc::IDCGroupHelperSector::mNIDCsPerSector {}
protected

number of grouped IDCs per sector

Definition at line 129 of file IDCGroupHelperSector.h.

◆ mOffsRow

std::array<std::vector<unsigned int>, Mapper::NREGIONS> o2::tpc::IDCGroupHelperSector::mOffsRow {}
protected

offset to calculate the index in the data from row and pad per region

Definition at line 133 of file IDCGroupHelperSector.h.

◆ mPadsPerRow

std::array<std::vector<unsigned int>, Mapper::NREGIONS> o2::tpc::IDCGroupHelperSector::mPadsPerRow {}
protected

number of pads per row per region

Definition at line 132 of file IDCGroupHelperSector.h.

◆ mRegionOffs

std::array<unsigned int, Mapper::NREGIONS> o2::tpc::IDCGroupHelperSector::mRegionOffs {}
protected

offset for the region per region

Definition at line 131 of file IDCGroupHelperSector.h.

◆ mRows

std::array<unsigned int, Mapper::NREGIONS> o2::tpc::IDCGroupHelperSector::mRows {}
protected

number of grouped rows per region

Definition at line 130 of file IDCGroupHelperSector.h.


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