-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into cylindervolumes
- Loading branch information
Showing
75 changed files
with
1,492 additions
and
402 deletions.
There are no files selected for viewing
49 changes: 49 additions & 0 deletions
49
Core/include/Acts/EventData/detail/TrackParametersUtils.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
// This file is part of the ACTS project. | ||
// | ||
// Copyright (C) 2016 CERN for the benefit of the ACTS project | ||
// | ||
// 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 https://mozilla.org/MPL/2.0/. | ||
|
||
#pragma once | ||
|
||
#include "Acts/EventData/GenericBoundTrackParameters.hpp" | ||
#include "Acts/EventData/TrackParametersConcept.hpp" | ||
|
||
namespace Acts::detail { | ||
|
||
/// @brief Shorthand for Bound or Free track parameters | ||
template <class parameters_t> | ||
concept isBoundOrFreeTrackParams = | ||
Acts::FreeTrackParametersConcept<parameters_t> || | ||
Acts::BoundTrackParametersConcept<parameters_t>; | ||
|
||
/// @brief Shorthand for GenericBoundTrackParameters | ||
template <class parameters_t> | ||
concept isGenericBoundTrackParams = | ||
std::same_as<parameters_t, Acts::GenericBoundTrackParameters< | ||
typename parameters_t::ParticleHypothesis>>; | ||
|
||
/// @brief Concept that restricts the type of the | ||
/// accumulation grid cell | ||
template <typename grid_t> | ||
concept TrackParamsGrid = requires { | ||
typename grid_t::value_type::first_type; | ||
typename grid_t::value_type::second_type; | ||
|
||
requires isBoundOrFreeTrackParams< | ||
typename grid_t::value_type::first_type::element_type>; | ||
requires isBoundOrFreeTrackParams< | ||
typename grid_t::value_type::second_type::element_type>; | ||
|
||
requires requires(typename grid_t::value_type val) { | ||
{ | ||
val.first | ||
} -> std::same_as< | ||
std::shared_ptr<typename decltype(val.first)::element_type>&>; | ||
{ val.second } -> std::same_as<decltype(val.first)&>; | ||
}; | ||
}; | ||
|
||
} // namespace Acts::detail |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// This file is part of the ACTS project. | ||
// | ||
// Copyright (C) 2016 CERN for the benefit of the ACTS project | ||
// | ||
// 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 https://mozilla.org/MPL/2.0/. | ||
|
||
#pragma once | ||
|
||
#include <cstddef> | ||
|
||
namespace Acts { | ||
|
||
/// @struct NavigatorStatistics | ||
/// | ||
/// @brief A struct to hold statistics of the navigator | ||
struct NavigatorStatistics { | ||
/// Number of renavigation attempts | ||
std::size_t nRenavigations = 0; | ||
|
||
/// Number of volume switches | ||
std::size_t nVolumeSwitches = 0; | ||
}; | ||
|
||
} // namespace Acts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// This file is part of the ACTS project. | ||
// | ||
// Copyright (C) 2016 CERN for the benefit of the ACTS project | ||
// | ||
// 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 https://mozilla.org/MPL/2.0/. | ||
|
||
#pragma once | ||
|
||
#include <Acts/Propagator/NavigatorStatistics.hpp> | ||
#include <Acts/Propagator/StepperStatistics.hpp> | ||
|
||
namespace Acts { | ||
|
||
/// @struct PropagatorStatistics | ||
/// | ||
/// @brief A struct to hold statistics of the propagator | ||
struct PropagatorStatistics { | ||
/// Statistics of the stepper | ||
StepperStatistics stepping; | ||
/// Statistics of the navigator | ||
NavigatorStatistics navigation; | ||
}; | ||
|
||
} // namespace Acts |
Oops, something went wrong.