Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -106,17 +106,23 @@ class GeometryTGeo : public o2::detectors::DetMatrixCache

float getSensorRefAlphaMLOT(int chipId) const
{
assert(getSubDetID(chipId) != 0 && "Called MLOT getter with VD chipId");
if (getSubDetID(chipId) == 0) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ciao @AizatDaribayeva is it ok that the behaviour change ? What are the cases when this happens?

LOG(error) << "getSensorRefAlphaMLOT(): VD layers are not supported yet! chipID = " << chipId
<< "please provide chipId for ML/OT! ";
return std::numeric_limits<float>::quiet_NaN();
}
const int local = chipId - getNumberOfActivePartsVD();
assert(local >= 0 && local < (int)mCacheRefAlphaMLOT.size());
return mCacheRefAlphaMLOT[local];
}

float getSensorXMLOT(int chipId) const
{
assert(getSubDetID(chipId) != 0 && "Called MLOT getter with VD chipId");
if (getSubDetID(chipId) == 0) {
LOG(error) << "getSensorXMLOT(): VD layers are not supported yet! chipID = " << chipId
<< "please provide chipId for ML/OT! ";
return std::numeric_limits<float>::quiet_NaN();
}
const int local = chipId - getNumberOfActivePartsVD();
assert(local >= 0 && local < (int)mCacheRefXMLOT.size());
return mCacheRefXMLOT[local];
}

Expand Down
Loading
Loading