Skip to content

Commit 3912592

Browse files
committed
Align: Fix using local delta matrix
Signed-off-by: Felix Schlepper <felix.schlepper@cern.ch>
1 parent 44cd710 commit 3912592

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

DataFormats/Detectors/Common/src/AlignParam.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,9 @@ bool AlignParam::applyToGeometry(int printLevel) const
308308
TGeoHMatrix* align = new TGeoHMatrix(createMatrix());
309309
if (mIsGlobal) {
310310
align->Multiply(node->GetMatrix());
311-
TGeoHMatrix* g = node->GetMatrix(node->GetLevel() - 1);
312311
align->MultiplyLeft(node->GetMatrix(node->GetLevel() - 1)->Inverse());
312+
} else {
313+
align->MultiplyLeft(node->GetOriginalMatrix());
313314
}
314315

315316
node->Align(align);

0 commit comments

Comments
 (0)