Skip to content

Commit bd0e208

Browse files
committed
asd
1 parent d8b9d61 commit bd0e208

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Detectors/ITSMFT/ITS/base/src/GeometryTGeo.cxx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -422,12 +422,15 @@ TGeoHMatrix* GeometryTGeo::extractMatrixSensor(int index) const
422422
// account for the difference between physical sensitive layer (where charge collection is simulated) and effective sensor thicknesses
423423
double delta = Segmentation::SensorLayerThickness - Segmentation::SensorLayerThicknessEff;
424424
#ifdef ENABLE_UPGRADES
425+
static TGeoTranslation tra;
425426
if (mIsLayerITS3[getLayer(index)]) {
426427
delta = its3::SegmentationSuperAlpide::mSensorLayerThickness - its3::SegmentationSuperAlpide::mSensorLayerThicknessEff;
428+
} else {
429+
tra.SetDy(0.5 * delta);
427430
}
428-
#endif
429-
431+
#else
430432
static TGeoTranslation tra(0., 0.5 * delta, 0.);
433+
#endif
431434

432435
matTmp *= tra;
433436

@@ -885,7 +888,7 @@ void GeometryTGeo::extractSensorXAlpha(int isn, float& x, float& alp)
885888
#ifdef ENABLE_UPGRADES
886889
if (mIsLayerITS3[iLayer]) {
887890
// We need to calcualte the line tangent at the mid-point in the geometry
888-
const auto radius = o2::its3::constants::radii[iLayer];
891+
auto radius = o2::its3::constants::radii[iLayer];
889892
const auto phi1 = o2::its3::constants::tile::width / radius;
890893
const auto phi2 = o2::its3::constants::pixelarray::width / radius + phi1;
891894
const auto phi3 = (phi2 - phi1) / 2.; // mid-point in phi

0 commit comments

Comments
 (0)