Skip to content

Commit

Permalink
Merge pull request #23829 from cardinia/from-CMSSW_10_2_X_2018-07-18-…
Browse files Browse the repository at this point in the history
…1100

Sign change for translations in the Geometry Comparison Tool
  • Loading branch information
cmsbuild committed Aug 9, 2018
2 parents 0064b4a + 274a926 commit 3c74d02
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Alignment/OfflineValidation/plugins/TrackerGeometryCompare.cc
Expand Up @@ -645,9 +645,10 @@ void TrackerGeometryCompare::compareGeometries(Alignable* refAli, Alignable* cur
// 'diffAlignables' returns 'refAli - curAli' for translations and 'curAli - refAli' for rotations.
// The plan is to unify this at some point, but a simple change of the sign for one of them was postponed
// to do some further checks to understand the rotations better
CLHEP::Hep3Vector dR(diff[0],diff[1],diff[2]);
//Updated July 2018: as requested the sign in the translations has been changed to match the one in rotations. A test was done to change the diffAlignables function and solve the issue there, but proved quite time consuming. To unify the sign convention in the least amount of time the choice was made to change the sign here.
CLHEP::Hep3Vector dR(-diff[0],-diff[1],-diff[2]);
CLHEP::Hep3Vector dW(diff[3],diff[4],diff[5]);
CLHEP::Hep3Vector dRLocal(diff[6],diff[7],diff[8]);
CLHEP::Hep3Vector dRLocal(-diff[6],-diff[7],-diff[8]);
CLHEP::Hep3Vector dWLocal(diff[9],diff[10],diff[11]);

// Translations
Expand Down

0 comments on commit 3c74d02

Please sign in to comment.