Skip to content

Commit 9e64146

Browse files
committed
Fix reverse order of maxRows and Cols
1 parent 292a0df commit 9e64146

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Detectors/Upgrades/ITS3/simulation/include/ITS3Simulation/ChipDigitsContainer.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,12 @@ class ChipDigitsContainer : public o2::itsmft::ChipDigitsContainer
4343
{
4444
o2::itsmft::ChipDigitsContainer::setChipIndex(idx);
4545
innerBarrel = constants::detID::isDetITS3(getChipIndex());
46-
maxRows = innerBarrel ? SegmentationOB::NRows : SegmentationIB::NRows;
47-
maxCols = innerBarrel ? SegmentationOB::NCols : SegmentationIB::NCols;
46+
maxRows = innerBarrel ? SegmentationIB::NRows : SegmentationOB::NRows;
47+
maxCols = innerBarrel ? SegmentationIB::NCols : SegmentationOB::NCols;
4848
}
49+
50+
int getMaxRows() const { return maxRows; }
51+
int getMaxCols() const { return maxCols; }
4952
bool isIB() const;
5053
/// Adds noise digits, deleted the one using the itsmft::DigiParams interface
5154
void addNoise(UInt_t rofMin, UInt_t rofMax, const o2::itsmft::DigiParams* params, int maxRows = o2::itsmft::SegmentationAlpide::NRows, int maxCols = o2::itsmft::SegmentationAlpide::NCols) = delete;

0 commit comments

Comments
 (0)