Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Andreas Stefl <[email protected]>
  • Loading branch information
Matthewharri and andiwand authored Aug 19, 2024
1 parent 4a140af commit f457684
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,20 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.

#pragma once

#include "Acts/Material/Material.hpp"

class GeoMaterial;

namespace Acts {
namespace Acts::GeoModel {

namespace GeoModel {
/// @brief Convert GeoMaterial to Acts::Material
///
/// @param gm The GeoMaterial to be converted
/// @return the Acts::Material
Material geoMaterialConverter(const GeoMaterial* gm,
bool useMolarDensity = true);

} // namespace GeoModel
} // namespace Acts
} // namespace Acts::GeoModel
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.

#pragma once

#include "Acts/Detector/DetectorVolume.hpp"
Expand All @@ -13,9 +14,8 @@

class GeoShape;

namespace Acts {
namespace Acts::GeoModel {

namespace GeoModel {
/// @brief Convert a GeoModel shape to a DetectorVolume
///
/// @param shape the GeoModel shape
Expand All @@ -24,5 +24,5 @@ namespace GeoModel {
std::shared_ptr<Experimental::DetectorVolume> convertVolume(
const GeometryContext& context, const GeoShape* shape,
const std::string& name, const GeoTrf::Transform3D transform);
} // namespace GeoModel
} // namespace Acts

} // namespace Acts::GeoModel
8 changes: 4 additions & 4 deletions Plugins/GeoModel/src/GeoModelToDetectorVolume.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
#include <GeoModelKernel/GeoTube.h>
#include <GeoModelKernel/GeoTubs.h>

namespace Acts {
namespace GeoModel {
namespace Acts::GeoModel {

std::shared_ptr<Experimental::DetectorVolume> convertVolume(
const GeometryContext& context, const GeoShape* shape,
const std::string& name, const GeoTrf::Transform3D transform) {
Expand Down Expand Up @@ -164,5 +164,5 @@ std::shared_ptr<Experimental::DetectorVolume> convertVolume(
}
throw std::runtime_error("FATAL: Unsupported GeoModel shape");
}
} // namespace GeoModel
} // namespace Acts

} // namespace Acts::GeoModel

0 comments on commit f457684

Please sign in to comment.