Skip to content

Commit

Permalink
fix odd
Browse files Browse the repository at this point in the history
  • Loading branch information
andiwand committed Oct 22, 2024
1 parent 3f1b961 commit 8de3c96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,12 @@
#pragma once

#include "Acts/Definitions/Units.hpp"
#include "Acts/Geometry/GeometryContext.hpp"
#include "Acts/Geometry/GeometryIdentifier.hpp"
#include "Acts/Geometry/TrackingGeometry.hpp"
#include "Acts/Material/IMaterialDecorator.hpp"
#include "Acts/Utilities/BinningType.hpp"
#include "Acts/Utilities/Logger.hpp"
#include "ActsExamples/DetectorCommons/Detector.hpp"
#include "ActsExamples/Framework/ProcessCode.hpp"

#include <functional>
#include <memory>
Expand Down
6 changes: 3 additions & 3 deletions Examples/Python/python/acts/examples/odd.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,21 +87,21 @@ def geoid_hook(geoid, surface):

return geoid

dd4hepConfig = acts.examples.dd4hep.DD4hepGeometryService.Config(
dd4hepConfig = acts.examples.dd4hep.DD4hepDetector.Config(
xmlFileNames=[str(odd_xml)],
logLevel=customLogLevel(),
dd4hepLogLevel=customLogLevel(),
geometryIdentifierHook=acts.GeometryIdentifierHook(geoid_hook),
)
detector = acts.examples.dd4hep.DD4hepDetector()
detector = acts.examples.dd4hep.DD4hepDetector(dd4hepConfig)

if mdecorator is None:
mdecorator = acts.examples.RootMaterialDecorator(
fileName=str(odd_dir / "data/odd-material-maps.root"),
level=customLogLevel(minLevel=acts.logging.WARNING),
)

trackingGeometry, decorators = detector.finalize(dd4hepConfig, mdecorator)
trackingGeometry, decorators, _ = detector.trackingGeometry()

OpenDataDetector = namedtuple(
"OpenDataDetector", ["detector", "trackingGeometry", "decorators"]
Expand Down

0 comments on commit 8de3c96

Please sign in to comment.