Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into releases
Browse files Browse the repository at this point in the history
  • Loading branch information
andiwand committed Apr 25, 2024
2 parents daafd83 + ee8bec9 commit 094c9f8
Show file tree
Hide file tree
Showing 212 changed files with 2,808 additions and 941 deletions.
3 changes: 0 additions & 3 deletions CI/check_fpe_masks.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from pathlib import Path
import os
import re
import sys

import asyncio
import aiohttp
Expand Down Expand Up @@ -53,12 +52,10 @@ async def check(token: str, repo: str):

loc = f"{rel}:{i}"
this_ok = True
issue_info = number
try:
issue = await gh.getitem(
f"repos/{repo}/issues/{number}"
)
issue_info = issue["html_url"]
except gidgethub.BadRequest as e:
print(
f":red_circle: [bold]FPE mask at {loc} has invalid issue number {number}[/bold]"
Expand Down
3 changes: 0 additions & 3 deletions CI/check_include_guards.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
#!/usr/bin/env python3
from __future__ import print_function

import argparse
import os
from glob import glob
from concurrent.futures import ProcessPoolExecutor
import re
from fnmatch import fnmatch
import sys
Expand Down
4 changes: 0 additions & 4 deletions CI/clang_tidy/run_clang_tidy.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import subprocess
from subprocess import check_call, check_output, CalledProcessError
from pathlib import Path
import json
import re
import sys
import os
Expand Down Expand Up @@ -58,9 +57,6 @@ def main():
args.source.exists() and args.source.is_dir()
), f"{args.source} is not a directory"

with (args.build / "compile_commands.json").open() as f:
compilation_database = json.load(f)

futures = []
files = []
active_files = {}
Expand Down
3 changes: 0 additions & 3 deletions CI/fix_pragma.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
#!/usr/bin/env python3
from __future__ import print_function

import argparse
import os
from glob import glob
from concurrent.futures import ProcessPoolExecutor
import re

code_format = """
Expand Down
2 changes: 1 addition & 1 deletion CI/perf_headwind.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
import sys

from headwind.spec import CollectorResult, Run, Metric
from headwind.spec import CollectorResult, Metric

import pandas as pd

Expand Down
Binary file modified CI/physmon/reference/particles_fatras_hist.root
Binary file not shown.
Binary file modified CI/physmon/reference/particles_geant4_hist.root
Binary file not shown.
Binary file modified CI/physmon/reference/performance_ambi_orthogonal.root
Binary file not shown.
Binary file modified CI/physmon/reference/performance_ambi_seeded.root
Binary file not shown.
Binary file modified CI/physmon/reference/performance_ambi_ttbar.root
Binary file not shown.
Binary file not shown.
Binary file modified CI/physmon/reference/performance_amvf_gridseeder_ttbar_hist.root
Binary file not shown.
Binary file modified CI/physmon/reference/performance_amvf_orthogonal_hist.root
Binary file not shown.
Binary file modified CI/physmon/reference/performance_amvf_seeded_hist.root
Binary file not shown.
Binary file modified CI/physmon/reference/performance_amvf_truth_estimated_hist.root
Binary file not shown.
Binary file modified CI/physmon/reference/performance_amvf_truth_smeared_hist.root
Binary file not shown.
Binary file modified CI/physmon/reference/performance_amvf_ttbar_hist.root
Binary file not shown.
Binary file modified CI/physmon/reference/performance_ckf_orthogonal.root
Binary file not shown.
Binary file modified CI/physmon/reference/performance_ckf_seeded.root
Binary file not shown.
Binary file modified CI/physmon/reference/performance_ckf_truth_estimated.root
Binary file not shown.
Binary file modified CI/physmon/reference/performance_ckf_truth_smeared.root
Binary file not shown.
Binary file modified CI/physmon/reference/performance_ckf_ttbar.root
Binary file not shown.
Binary file modified CI/physmon/reference/performance_gx2f.root
Binary file not shown.
Binary file modified CI/physmon/reference/performance_ivf_orthogonal_hist.root
Binary file not shown.
Binary file modified CI/physmon/reference/performance_ivf_seeded_hist.root
Binary file not shown.
Binary file modified CI/physmon/reference/performance_ivf_truth_estimated_hist.root
Binary file not shown.
Binary file modified CI/physmon/reference/performance_ivf_truth_smeared_hist.root
Binary file not shown.
Binary file modified CI/physmon/reference/tracksummary_ckf_orthogonal_hist.root
Binary file not shown.
Binary file modified CI/physmon/reference/tracksummary_ckf_seeded_hist.root
Binary file not shown.
Binary file modified CI/physmon/reference/tracksummary_ckf_truth_estimated_hist.root
Binary file not shown.
Binary file modified CI/physmon/reference/tracksummary_ckf_truth_smeared_hist.root
Binary file not shown.
Binary file modified CI/physmon/reference/tracksummary_ckf_ttbar_hist.root
Binary file not shown.
1 change: 0 additions & 1 deletion CI/physmon/summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

import argparse
import re
import functools
import os
import csv

Expand Down
3 changes: 3 additions & 0 deletions CI/physmon/workflows/physmon_ckf_tracking.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,12 @@ def run_ckf_tracking(truthSmearedSeeded, truthEstimatedSeeded, label):
pt=(500 * u.MeV, None),
loc0=(-4.0 * u.mm, 4.0 * u.mm),
nMeasurementsMin=6,
maxHoles=2,
maxOutliers=2,
),
CkfConfig(
seedDeduplication=False if truthSmearedSeeded else True,
stayOnSeed=False if truthSmearedSeeded else True,
),
outputDirRoot=tp,
)
Expand Down
3 changes: 3 additions & 0 deletions CI/physmon/workflows/physmon_track_finding_ttbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,12 @@
pt=(500 * u.MeV, None),
loc0=(-4.0 * u.mm, 4.0 * u.mm),
nMeasurementsMin=6,
maxHoles=2,
maxOutliers=2,
),
CkfConfig(
seedDeduplication=True,
stayOnSeed=True,
),
outputDirRoot=tp,
)
Expand Down
7 changes: 7 additions & 0 deletions CI/physmon/workflows/physmon_vertexing.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
SeedFinderConfigArg,
SeedFinderOptionsArg,
SeedingAlgorithm,
CkfConfig,
addCKFTracks,
addAmbiguityResolution,
AmbiguityResolutionConfig,
Expand Down Expand Up @@ -119,6 +120,12 @@ def run_vertexing(fitter, mu, events):
loc0=(-4.0 * u.mm, 4.0 * u.mm),
pt=(500 * u.MeV, None),
nMeasurementsMin=6,
maxHoles=2,
maxOutliers=2,
),
CkfConfig(
seedDeduplication=True,
stayOnSeed=True,
),
)

Expand Down
1 change: 0 additions & 1 deletion CI/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import os
import asyncio
from typing import List, Optional, Tuple
import re
from pathlib import Path
import sys
import http
Expand Down
1 change: 0 additions & 1 deletion CI/util.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import os
import contextlib
import sys

Expand Down
49 changes: 49 additions & 0 deletions Core/include/Acts/Detector/ProtoBinning.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

#include "Acts/Definitions/Algebra.hpp"
#include "Acts/Definitions/Common.hpp"
#include "Acts/Utilities/BinUtility.hpp"
#include "Acts/Utilities/BinningType.hpp"
#include "Acts/Utilities/detail/AxisFwd.hpp"

Expand Down Expand Up @@ -130,6 +131,54 @@ struct ProtoBinning {

/// @brief A binning description, it helps for screen output
struct BinningDescription {
/// Convert the binning description into a bin utility
///
/// @param binUtility the bin utility to be converted into a BinningDescription
static BinningDescription fromBinUtility(const BinUtility& binUtility) {
BinningDescription bDesc;
for (const auto& bData : binUtility.binningData()) {
// One proto binning per binning data
Acts::detail::AxisBoundaryType boundaryType =
bData.option == open ? Acts::detail::AxisBoundaryType::Bound
: Acts::detail::AxisBoundaryType::Closed;
std::vector<ActsScalar> edges;
if (bData.type == equidistant) {
bDesc.binning.push_back(ProtoBinning(bData.binvalue, boundaryType,
bData.min, bData.max, bData.bins(),
0u));

} else {
std::for_each(bData.boundaries().begin(), bData.boundaries().end(),
[&](ActsScalar edge) { edges.push_back(edge); });
bDesc.binning.push_back(
ProtoBinning(bData.binvalue, boundaryType, edges, 0u));
}
}
return bDesc;
}

/// Convert to a BinUtility - only basic types are supported
///
BinUtility toBinUtility() const {
BinUtility binUtility;
for (const auto& b : binning) {
Acts::BinningOption bOption =
b.boundaryType == Acts::detail::AxisBoundaryType::Bound
? Acts::open
: Acts::closed;
if (b.axisType == Acts::detail::AxisType::Equidistant) {
binUtility += BinUtility(b.bins(), b.edges.front(), b.edges.back(),
bOption, b.binValue);
} else {
std::vector<float> edges;
std::for_each(b.edges.begin(), b.edges.end(),
[&](ActsScalar edge) { edges.push_back(edge); });
binUtility += BinUtility(edges, bOption, b.binValue);
}
}
return binUtility;
}

/// The contained binnings
std::vector<ProtoBinning> binning;

Expand Down
1 change: 0 additions & 1 deletion Core/include/Acts/EventData/VectorTrackContainer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ class VectorTrackContainerBase {

bool checkConsistency() const {
std::size_t size = m_tipIndex.size();
(void)size;

bool result = true;
result = result && m_tipIndex.size() == size;
Expand Down
7 changes: 2 additions & 5 deletions Core/include/Acts/Geometry/ProtoLayerHelper.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,11 @@ class ProtoLayerHelper {

/// Constructor with explicit config
///
/// @param config Explicit config struct
/// @param logger logging instance
ProtoLayerHelper(const Config& config,
ProtoLayerHelper(const Config& /*config*/,
std::unique_ptr<const Logger> logger =
getDefaultLogger("ProtoLayerHelper", Logging::INFO))
: m_logger(std::move(logger)) {
(void)config;
}
: m_logger(std::move(logger)) {}
~ProtoLayerHelper() = default;

/// Sort the surfaces into ProtoLayers
Expand Down
Loading

0 comments on commit 094c9f8

Please sign in to comment.