ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
detray::brute_force_scan< trajectory_t > Struct Template Reference

struct that holds functionality to shoot a parametrized particle trajectory through a detector. More...

#include <detray/test/validation/detector_scanner.hpp>

Inheritance diagram for detray::brute_force_scan< trajectory_t >:
[legend]

Public Types

template<typename D>
using intersection_trace_type = dvector<intersection_record<D>>
 Type of the intersection trace produced for a detector.
using trajectory_type = trajectory_t
 Type of trajectory scanned by this functor.

Public Member Functions

template<concepts::detector detector_t>
auto operator() (const typename detector_t::geometry_context ctx, const detector_t &detector, const trajectory_t &traj, const typename detector_t::scalar_type mask_tol=0.f, const typename detector_t::scalar_type p=1.f *unit< typename detector_t::scalar_type >::GeV)
 Scan a detector along the configured trajectory.

Detailed Description

template<typename trajectory_t>
struct detray::brute_force_scan< trajectory_t >

struct that holds functionality to shoot a parametrized particle trajectory through a detector.

Records intersections with every detector surface along the trajectory.

Member Function Documentation

◆ operator()()

template<typename trajectory_t>
template<concepts::detector detector_t>
auto detray::brute_force_scan< trajectory_t >::operator() ( const typename detector_t::geometry_context ctx,
const detector_t & detector,
const trajectory_t & traj,
const typename detector_t::scalar_type mask_tol = 0.f,
const typename detector_t::scalar_type p = 1.f * unit<typename detector_t::scalar_type>::GeV )

Scan a detector along the configured trajectory.

Parameters
ctxGeometry context for the scan.
detectorDetector to scan.
trajTrajectory to propagate through the detector.
mask_tolTolerance used by surface intersectors.
pMomentum magnitude used for the scan.
Returns
Intersection trace along the trajectory.