Commit 61051589 authored by Tobias Bisanz's avatar Tobias Bisanz
Browse files

Fixed linter readability-implicit-bool-conversion, though it's more code noise

parent 9d05a14f
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -99,7 +99,8 @@ namespace allpix {
                G4ThreeVector position_vector = toG4Vector(position_);
                auto* daughter_rotation = gdml_daughter->GetRotation();
                // It seems that in the case of a trivial rotation the daughter_rotation can be a nullptr
                auto* rotation_matrix = (daughter_rotation ? new G4RotationMatrix(*daughter_rotation * *rotation_)
                auto* rotation_matrix =
                    ((daughter_rotation != nullptr) ? new G4RotationMatrix(*daughter_rotation * *rotation_)
                                                    : new G4RotationMatrix(*rotation_));
                LOG(TRACE) << "Rotation matrix: " << *rotation_matrix;
                gdml_daughter->SetTranslation(gdml_daughter->GetTranslation() + position_vector);