Skip to content

Commit 42c13bf

Browse files
Fix row and column assignment in detector functions
1 parent f30965d commit 42c13bf

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

  • Detectors/Upgrades/ALICE3/IOTOF/simulation/include/IOTOFSimulation

Detectors/Upgrades/ALICE3/IOTOF/simulation/include/IOTOFSimulation/Segmentation.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class Segmentation
7676
void detectorToLocalUnchecked(L row, L col, T& xRow, T& zCol, const int subDetectorID)
7777
{
7878
if (subDetectorID != 0 && subDetectorID != 1) {
79-
iRow = iCol = -1;
79+
row = col = -1;
8080
return false;
8181
}
8282
const ChipSpecifics& specsConfig = (subDetectorID == 0) ? mITofSpecsConfig : mOTofSpecsConfig;
@@ -87,7 +87,7 @@ class Segmentation
8787
void detectorToLocalUnchecked(L row, L col, math_utils::Point3D<T>& loc, const int subDetectorID)
8888
{
8989
if (subDetectorID != 0 && subDetectorID != 1) {
90-
iRow = iCol = -1;
90+
row = col = -1;
9191
return false;
9292
}
9393
const ChipSpecifics& specsConfig = (subDetectorID == 0) ? mITofSpecsConfig : mOTofSpecsConfig;
@@ -97,7 +97,7 @@ class Segmentation
9797
void detectorToLocalUnchecked(L row, L col, std::array<T, 3>& loc, const int subDetectorID)
9898
{
9999
if (subDetectorID != 0 && subDetectorID != 1) {
100-
iRow = iCol = -1;
100+
row = col = -1;
101101
return false;
102102
}
103103
const ChipSpecifics& specsConfig = (subDetectorID == 0) ? mITofSpecsConfig : mOTofSpecsConfig;
@@ -112,7 +112,7 @@ class Segmentation
112112
bool detectorToLocal(L row, L col, T& xRow, T& zCol, const int subDetectorID)
113113
{
114114
if (subDetectorID != 0 && subDetectorID != 1) {
115-
iRow = iCol = -1;
115+
row = col = -1;
116116
return false;
117117
}
118118
const ChipSpecifics& specsConfig = (subDetectorID == 0) ? mITofSpecsConfig : mOTofSpecsConfig;
@@ -127,7 +127,7 @@ class Segmentation
127127
bool detectorToLocal(L row, L col, math_utils::Point3D<T>& loc, const int subDetectorID)
128128
{
129129
if (subDetectorID != 0 && subDetectorID != 1) {
130-
iRow = iCol = -1;
130+
row = col = -1;
131131
return false;
132132
}
133133
const ChipSpecifics& specsConfig = (subDetectorID == 0) ? mITofSpecsConfig : mOTofSpecsConfig;
@@ -141,7 +141,7 @@ class Segmentation
141141
bool detectorToLocal(L row, L col, std::array<T, 3>& loc, const int subDetectorID)
142142
{
143143
if (subDetectorID != 0 && subDetectorID != 1) {
144-
iRow = iCol = -1;
144+
row = col = -1;
145145
return false;
146146
}
147147
const ChipSpecifics& specsConfig = (subDetectorID == 0) ? mITofSpecsConfig : mOTofSpecsConfig;
@@ -212,4 +212,4 @@ inline bool Segmentation::localToDetector(float xRow, float zCol, int& iRow, int
212212
} // namespace iotof
213213
} // namespace o2
214214

215-
#endif
215+
#endif

0 commit comments

Comments
 (0)