We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bcafdb6 commit d917d31Copy full SHA for d917d31
1 file changed
Detectors/MUON/MCH/Geometry/Transformer/src/convert-geometry.cxx
@@ -145,9 +145,13 @@ void convertGeom(const TGeoManager& geom)
145
}
146
writer.Key("symname");
147
writer.String(symname.c_str());
148
- auto matrix = ae->GetMatrix();
149
- bool aligned{true};
150
- if (!matrix) {
+ auto pn = ae->GetPhysicalNode();
+ const TGeoHMatrix* matrix{nullptr};
+ bool aligned{false};
151
+ if (pn) {
152
+ matrix = pn->GetMatrix();
153
+ aligned = pn->IsAligned();
154
+ } else {
155
matrix = ae->GetGlobalOrig();
156
aligned = false;
157
0 commit comments