Skip to content

Commit

Permalink
ALIROOT-5553 Additional protection
Browse files Browse the repository at this point in the history
  • Loading branch information
hristov authored and hristov committed Jul 30, 2014
1 parent 8bd74db commit b3050af
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion TPC/Base/AliTPCROC.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ class AliTPCROC : public TObject {
UInt_t GetNSectors() const { return fNSectorsAll;}
UInt_t GetNRows(UInt_t sector) const { return (sector<fNSectors[1]) ? fNRows[0]:fNRows[1];}
UInt_t GetNChannels(UInt_t sector) const { return (sector<fNSectors[1]) ? fNChannels[0]:fNChannels[1];}
UInt_t GetNPads(UInt_t sector,UInt_t row) const { return (sector<fNSectors[1]) ? fNPads[0][row]:fNPads[1][row];}
UInt_t GetNPads(UInt_t sector,UInt_t row) const {
UInt_t irow=(row<GetNRows(sector))?row:(GetNRows(sector)-1);
return (sector<fNSectors[1]) ? fNPads[0][irow]:fNPads[1][irow];}
const UInt_t * GetRowIndexes(UInt_t sector) const {return (sector<fNSectors[1]) ? fRowPosIndex[0]:fRowPosIndex[1];}
//
//get sector parameters
Expand Down

0 comments on commit b3050af

Please sign in to comment.