1 #ifndef St_pxlRowColumnStatusC_h
2 #define St_pxlRowColumnStatusC_h
5 #include "tables/St_pxlRowColumnStatus_Table.h"
6 #include "StPxlUtil/StPxlConstants.h"
11 pxlRowColumnStatus_st *Struct(Int_t i = 0)
const {
return ((St_pxlRowColumnStatus*) Table())->GetTable()+i;}
12 UInt_t getNumRows()
const {
return GetNRows();}
13 UChar_t* rows(Int_t i = 0)
const {
return Struct(i)->rows;}
14 UChar_t* cols(Int_t i = 0)
const {
return Struct(i)->cols;}
15 Int_t rowStatus(Int_t sector, Int_t ladder, Int_t sensor, Int_t row)
const {
16 return (Int_t) (rows()[kNumberOfPxlRowsOnSensor * ((sector - 1) * (kNumberOfPxlSensorsPerLadder * kNumberOfPxlLaddersPerSector) + (ladder - 1) * kNumberOfPxlSensorsPerLadder + (sensor - 1)) + row]);
18 Int_t columnStatus(Int_t sector, Int_t ladder, Int_t sensor, Int_t
column)
const {
19 return (Int_t) (cols()[kNumberOfPxlColumnsOnSensor * ((sector - 1) * (kNumberOfPxlSensorsPerLadder * kNumberOfPxlLaddersPerSector) + (ladder - 1) * kNumberOfPxlSensorsPerLadder + (sensor - 1)) + column]);
26 ClassDefChair(St_pxlRowColumnStatus, pxlRowColumnStatus_st )