Skip to content

Commit 8a46014

Browse files
Javier Castillo Castellanosshahor02
authored andcommitted
Bug fixes in setting parameters
1 parent d2b9c3d commit 8a46014

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

DataFormats/Detectors/Common/src/AlignParam.cxx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ bool AlignParam::setRotation(const TGeoMatrix& m)
103103
double psi, theta, phi;
104104
if (!matrixToAngles(rot, psi, theta, phi)) {
105105
return false;
106-
setRotation(psi, theta, phi);
107106
}
107+
setRotation(psi, theta, phi);
108108
} else {
109109
mPsi = mTheta = mPhi = 0.;
110110
}
@@ -190,7 +190,8 @@ bool AlignParam::setLocalParams(const TGeoMatrix& m)
190190
m1.Multiply(&gprimeinv);
191191
m1.MultiplyLeft(&gprime);
192192

193-
return setLocalParams(m1);
193+
setParams(m1);
194+
return true;
194195
}
195196

196197
//_____________________________________________________________________________

0 commit comments

Comments
 (0)