Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor!: remove ProtoBinning in favour of ProtoAxis #4046

Open
wants to merge 28 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
f9b3531
ACTS compiles again
asalzburger Jan 22, 2025
6eec537
Update Core/src/Detector/MultiWireStructureBuilder.cpp
asalzburger Jan 22, 2025
53ef7cf
Update Core/include/Acts/Utilities/BinningData.hpp
asalzburger Jan 22, 2025
e1a9178
fixing compilation
asalzburger Jan 23, 2025
4541711
Merge branch 'main' into feat-gen3-proto-axis
asalzburger Jan 23, 2025
f3d8a77
indexed surfaces
asalzburger Jan 23, 2025
29d722c
Merge branch 'main' into feat-gen3-proto-axis
asalzburger Jan 24, 2025
fb8b439
feat-gen3-proto-axis
asalzburger Jan 24, 2025
ce7b8d5
Merge branch 'main' into feat-gen3-proto-axis
asalzburger Jan 24, 2025
7454c9f
Gen2 ready it seems
asalzburger Jan 24, 2025
3e1570b
fixing unit test
asalzburger Jan 25, 2025
097dd28
Merge branch 'main' into feat-gen3-proto-axis
asalzburger Feb 4, 2025
e384cd9
trying to fix compilation problem
asalzburger Feb 4, 2025
ef46155
remove some issues from SonarCloud
asalzburger Feb 4, 2025
a66b196
removing SonarCloud issues
asalzburger Feb 4, 2025
867bef4
adding BinUtiltiy/BinningData tests
asalzburger Feb 4, 2025
369aec8
Merge branch 'main' into feat-gen3-proto-axis
asalzburger Feb 4, 2025
5502c34
a few more tests
asalzburger Feb 4, 2025
25e454a
SonarCloud v3
asalzburger Feb 5, 2025
0236f2b
Merge branch 'main' into feat-gen3-proto-axis
asalzburger Feb 5, 2025
9f9b876
Merge branch 'main' into feat-gen3-proto-axis
asalzburger Feb 7, 2025
9e56742
Merge branch 'main' into feat-gen3-proto-axis
asalzburger Feb 10, 2025
183d026
fixing SonarClound issues next round
asalzburger Feb 10, 2025
e7adab4
Merge branch 'main' into feat-gen3-proto-axis
asalzburger Feb 10, 2025
22db3d6
adding Core
asalzburger Feb 10, 2025
6ab8ec7
Merge branch 'main' into feat-gen3-proto-axis
asalzburger Feb 11, 2025
9b6934e
Merge branch 'main' into feat-gen3-proto-axis
asalzburger Feb 11, 2025
1142bce
Merge branch 'main' into feat-gen3-proto-axis
asalzburger Feb 14, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Core/include/Acts/Detector/Blueprint.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@

#include "Acts/Definitions/Algebra.hpp"
#include "Acts/Definitions/Common.hpp"
#include "Acts/Detector/ProtoBinning.hpp"
#include "Acts/Geometry/Extent.hpp"
#include "Acts/Geometry/VolumeBounds.hpp"
#include "Acts/Utilities/AxisDefinitions.hpp"
#include "Acts/Utilities/ProtoAxis.hpp"
#include "Acts/Utilities/StringHelpers.hpp"

#include <map>
Expand Down Expand Up @@ -99,7 +99,7 @@ struct Node final {
std::vector<AxisDirection> binning = {};

/// Portal proto material binning
std::map<unsigned int, BinningDescription> portalMaterialBinning = {};
std::map<unsigned int, std::vector<ProtoAxis>> portalMaterialBinning = {};

/// Auxiliary information
std::vector<std::string> auxiliary = {};
Expand Down
4 changes: 2 additions & 2 deletions Core/include/Acts/Detector/CylindricalContainerBuilder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@

#include "Acts/Detector/Blueprint.hpp"
#include "Acts/Detector/DetectorComponents.hpp"
#include "Acts/Detector/ProtoBinning.hpp"
#include "Acts/Detector/interface/IDetectorComponentBuilder.hpp"
#include "Acts/Geometry/GeometryContext.hpp"
#include "Acts/Utilities/AxisDefinitions.hpp"
#include "Acts/Utilities/Logger.hpp"
#include "Acts/Utilities/ProtoAxis.hpp"

#include <map>
#include <memory>
Expand Down Expand Up @@ -56,7 +56,7 @@ class CylindricalContainerBuilder : public IDetectorComponentBuilder {
/// The geometry id generator
std::shared_ptr<const IGeometryIdGenerator> geoIdGenerator = nullptr;
/// Material binning to be assigned to portals
std::map<unsigned int, BinningDescription> portalMaterialBinning = {};
std::map<unsigned int, std::vector<ProtoAxis>> portalMaterialBinning = {};
/// An eventual reverse geometry id generation
bool geoIdReverseGen = false;
/// Auxiliary information, mainly for screen output
Expand Down
4 changes: 2 additions & 2 deletions Core/include/Acts/Detector/DetectorVolumeBuilder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
#pragma once

#include "Acts/Detector/DetectorComponents.hpp"
#include "Acts/Detector/ProtoBinning.hpp"
#include "Acts/Detector/interface/IDetectorComponentBuilder.hpp"
#include "Acts/Geometry/GeometryContext.hpp"
#include "Acts/Utilities/Logger.hpp"
#include "Acts/Utilities/ProtoAxis.hpp"

#include <memory>
#include <string>
Expand Down Expand Up @@ -43,7 +43,7 @@ class DetectorVolumeBuilder : public IDetectorComponentBuilder {
/// The geometry id generator
std::shared_ptr<const IGeometryIdGenerator> geoIdGenerator = nullptr;
/// Material binning to be assigned to portals
std::map<unsigned int, BinningDescription> portalMaterialBinning = {};
std::map<unsigned int, std::vector<ProtoAxis>> portalMaterialBinning = {};
/// Add eventual internal volume to root
bool addInternalsToRoot = false;
/// Auxiliary information
Expand Down
6 changes: 2 additions & 4 deletions Core/include/Acts/Detector/LayerStructureBuilder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,13 @@

#include "Acts/Definitions/Algebra.hpp"
#include "Acts/Detector/DetectorComponents.hpp"
#include "Acts/Detector/ProtoBinning.hpp"
#include "Acts/Detector/ProtoSupport.hpp"
#include "Acts/Detector/interface/IInternalStructureBuilder.hpp"
#include "Acts/Detector/interface/ISurfacesProvider.hpp"
#include "Acts/Geometry/GeometryContext.hpp"
#include "Acts/Surfaces/Surface.hpp"
#include "Acts/Utilities/BinningData.hpp"
#include "Acts/Utilities/BinningType.hpp"
#include "Acts/Utilities/Logger.hpp"
#include "Acts/Utilities/ProtoAxis.hpp"

#include <array>
#include <cstddef>
Expand Down Expand Up @@ -84,7 +82,7 @@ class LayerStructureBuilder : public IInternalStructureBuilder {
/// Definition of Supports
std::vector<ProtoSupport> supports = {};
/// Definition of Binnings
std::vector<ProtoBinning> binnings = {};
std::vector<ProtoAxis> binnings = {};
/// Optional extent (if already parsed), will trigger binning autorange
/// check
std::optional<Extent> extent = std::nullopt;
Expand Down
4 changes: 2 additions & 2 deletions Core/include/Acts/Detector/MultiWireStructureBuilder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
#pragma once

#include "Acts/Detector/LayerStructureBuilder.hpp"
#include "Acts/Detector/ProtoBinning.hpp"
#include "Acts/Detector/interface/IDetectorComponentBuilder.hpp"
#include "Acts/Detector/interface/IExternalStructureBuilder.hpp"
#include "Acts/Detector/interface/IInternalStructureBuilder.hpp"
#include "Acts/Geometry/GeometryContext.hpp"
#include "Acts/Surfaces/Surface.hpp"
#include "Acts/Utilities/Logger.hpp"
#include "Acts/Utilities/ProtoAxis.hpp"

#include <iostream>
#include <string>
Expand All @@ -41,7 +41,7 @@ class MultiWireStructureBuilder {
std::vector<double> mlBounds = {};

// The binning of the multi wire structure
std::vector<ProtoBinning> mlBinning = {};
std::vector<ProtoAxis> mlBinning = {};

/// A tolerance config
float toleranceOverlap = 10.;
Expand Down
192 changes: 0 additions & 192 deletions Core/include/Acts/Detector/ProtoBinning.hpp

This file was deleted.

4 changes: 2 additions & 2 deletions Core/include/Acts/Detector/ProtoSupport.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@

#include "Acts/Definitions/Algebra.hpp"
#include "Acts/Definitions/Common.hpp"
#include "Acts/Detector/ProtoBinning.hpp"
#include "Acts/Surfaces/Surface.hpp"
#include "Acts/Utilities/AxisDefinitions.hpp"
#include "Acts/Utilities/BinningData.hpp"
#include "Acts/Utilities/ProtoAxis.hpp"

#include <optional>
#include <stdexcept>
Expand Down Expand Up @@ -63,7 +63,7 @@ struct ProtoSupport {
std::shared_ptr<Surface> surface = nullptr;

/// The (optional) binning description for proto material
std::optional<BinningDescription> protoMaterialBinning = std::nullopt;
std::optional<std::vector<ProtoAxis>> protoMaterialBinning = std::nullopt;

/// Potential splits into planar approximations (valid for cylinder/disc)
unsigned int splits = 1u;
Expand Down
Loading
Loading