ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
ActsFatras::Segmentizer Struct Reference

The Segmentizer splits a surface segment, i.e. More...

#include <ActsFatras/Digitization/Segmentizer.hpp>

Classes

struct  ChannelSegment
 Nested struct for representing channel steps. More...
struct  ChannelStep
 Nested struct for stepping from one channel to the next. More...

Public Types

using Bin2D = std::array<unsigned int, 2>
 Shorthand for a 2D bin.
using BinDelta2D = std::array<int, 2>
 shorthand for a 2D bin delta
using Segment2D = std::array<Acts::Vector2, 2>
 Shorthand for a 2D segment.

Public Member Functions

std::vector< ChannelSegmentsegments (const Acts::GeometryContext &geoCtx, const Acts::Surface &surface, const Acts::BinUtility &segmentation, const Segment2D &segment) const
 Divide the surface segment into channel segments.

Detailed Description

The Segmentizer splits a surface segment, i.e.

after projection onto the readout surface into channel segments.

Member Typedef Documentation

◆ Bin2D

using ActsFatras::Segmentizer::Bin2D = std::array<unsigned int, 2>

Shorthand for a 2D bin.

◆ BinDelta2D

using ActsFatras::Segmentizer::BinDelta2D = std::array<int, 2>

shorthand for a 2D bin delta

◆ Segment2D

Shorthand for a 2D segment.

Member Function Documentation

◆ segments()

std::vector< ChannelSegment > ActsFatras::Segmentizer::segments ( const Acts::GeometryContext & geoCtx,
const Acts::Surface & surface,
const Acts::BinUtility & segmentation,
const Segment2D & segment ) const

Divide the surface segment into channel segments.

Note
Channelizing is done in cartesian coordinates (start/end)
The start and end cartesian vector is supposed to be inside the surface bounds (pre-run through the SurfaceMasker)
The segmentation has to be 2-dimensional, even if the actual readout is 1-dimensional, in latter case one bin in the second coordinate direction is required.
Parameters
geoCtxThe geometry context for the localToGlobal, etc.
surfaceThe surface for the channelizing
segmentationThe segmentation for the channelizing
segmentThe surface segment (cartesian coordinates)
Returns
a vector of ChannelSegment objects