Skip to content

Commit cfb2c3a

Browse files
AizatDaribayevaalibuildnjacazio
authored
[ALICE3] Adding error msg for TGeo features and QA macro for reco (#15183)
* Adding error msg for TGeo features and QA macro for reco * Please consider the following formatting changes * Fix range setting for hSigmaVsPt histogram --------- Co-authored-by: ALICE Action Bot <alibuild@cern.ch> Co-authored-by: Nicolò Jacazio <njacazio@users.noreply.github.com>
1 parent 4575347 commit cfb2c3a

File tree

2 files changed

+450
-141
lines changed

2 files changed

+450
-141
lines changed

Detectors/Upgrades/ALICE3/TRK/base/include/TRKBase/GeometryTGeo.h

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,17 +106,23 @@ class GeometryTGeo : public o2::detectors::DetMatrixCache
106106

107107
float getSensorRefAlphaMLOT(int chipId) const
108108
{
109-
assert(getSubDetID(chipId) != 0 && "Called MLOT getter with VD chipId");
109+
if (getSubDetID(chipId) == 0) {
110+
LOG(error) << "getSensorRefAlphaMLOT(): VD layers are not supported yet! chipID = " << chipId
111+
<< "please provide chipId for ML/OT! ";
112+
return std::numeric_limits<float>::quiet_NaN();
113+
}
110114
const int local = chipId - getNumberOfActivePartsVD();
111-
assert(local >= 0 && local < (int)mCacheRefAlphaMLOT.size());
112115
return mCacheRefAlphaMLOT[local];
113116
}
114117

115118
float getSensorXMLOT(int chipId) const
116119
{
117-
assert(getSubDetID(chipId) != 0 && "Called MLOT getter with VD chipId");
120+
if (getSubDetID(chipId) == 0) {
121+
LOG(error) << "getSensorXMLOT(): VD layers are not supported yet! chipID = " << chipId
122+
<< "please provide chipId for ML/OT! ";
123+
return std::numeric_limits<float>::quiet_NaN();
124+
}
118125
const int local = chipId - getNumberOfActivePartsVD();
119-
assert(local >= 0 && local < (int)mCacheRefXMLOT.size());
120126
return mCacheRefXMLOT[local];
121127
}
122128

0 commit comments

Comments
 (0)