File tree Expand file tree Collapse file tree 2 files changed +451
-142
lines changed
Detectors/Upgrades/ALICE3/TRK Expand file tree Collapse file tree 2 files changed +451
-142
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments