ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
intersection_config.hpp
1// This file is part of the ACTS project.
2//
3// Copyright (C) 2016 CERN for the benefit of the ACTS project
4//
5// This Source Code Form is subject to the terms of the Mozilla Public
6// License, v. 2.0. If a copy of the MPL was not distributed with this
7// file, You can obtain one at https://mozilla.org/MPL/2.0/.
8
9#pragma once
10
11// Project include(s)
12#include "detray/definitions/detail/qualifiers.hpp"
13#include "detray/definitions/units.hpp"
14
15// System include(s)
16#include <ostream>
17
18namespace detray::intersection {
19
21struct config {
35
37 DETRAY_HOST
38 friend std::ostream& operator<<(std::ostream& out, const config& cfg) {
39 out << " Min. mask tolerance : "
41 << " Max. mask tolerance : "
43 << " Mask tolerance scalor : " << cfg.mask_tolerance_scalor << "\n"
44 << " Path tolerance : "
45 << cfg.path_tolerance / detray::unit<float>::um << " [um]\n"
46 << " Overstep tolerance : "
47 << cfg.overstep_tolerance / detray::unit<float>::um << " [um]\n";
48
49 return out;
50 }
51};
52
53} // namespace detray::intersection
Intersector configuration.
Definition intersection_config.hpp:21
float max_mask_tolerance
Maximal tolerance: loose tolerance when still far away from surface.
Definition intersection_config.hpp:27
float overstep_tolerance
How far behind the track position to look for candidates.
Definition intersection_config.hpp:34
float mask_tolerance_scalor
Scale factor on the path used for the mask tolerance calculation.
Definition intersection_config.hpp:29
float min_mask_tolerance
Tolerance on the mask 'is_inside' check:Minimal tolerance: ~ position uncertainty on surface.
Definition intersection_config.hpp:25
float path_tolerance
Maximal absolute path distance for a track to be considered 'on surface'.
Definition intersection_config.hpp:32
friend std::ostream & operator<<(std::ostream &out, const config &cfg)
Print the intersector configuration.
Definition intersection_config.hpp:38
static constexpr scalar_t um
Length, native unit mm.
Definition units.hpp:25
static constexpr scalar_t mm
Native length unit, the millimetre.
Definition units.hpp:27