ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
Acts::TrackDensityVertexFinder Class Referencefinal

Finds a vertex seed based on the maximum of a track density function. More...

#include <Acts/Vertexing/TrackDensityVertexFinder.hpp>

Inheritance diagram for Acts::TrackDensityVertexFinder:
[legend]
Collaboration diagram for Acts::TrackDensityVertexFinder:
[legend]

Classes

struct  Config
 The Config struct. More...
struct  State
 State struct for fulfilling interface. More...

Public Member Functions

 TrackDensityVertexFinder (const Config &cfg)
 Constructor for user-defined InputTrack type.
Result< std::vector< Vertex > > find (const std::vector< InputTrack > &trackVector, const VertexingOptions &vertexingOptions, IVertexFinder::State &state) const override
 Function that finds single vertex candidate.
IVertexFinder::State makeState (const Acts::MagneticFieldContext &) const override
 Function to create a state object for this concrete vertex finder.
void setTracksToRemove (IVertexFinder::State &, const std::vector< InputTrack > &) const override
 For vertex finders that have an internal state of active tracks, this method instructs them to mark used tracks for removal.
Public Member Functions inherited from Acts::IVertexFinder
virtual ~IVertexFinder ()=default
 Virtual destructor.

Additional Inherited Members

Public Types inherited from Acts::IVertexFinder
using State = Acts::AnyBase<128>
 Type-erased wrapper for concrete state objects.

Detailed Description

Finds a vertex seed based on the maximum of a track density function.

Each track is modelled as a 2d density function around its d0/z0 perigee parameter values. The z seed position is then found as the position of the maximum of all summed track density functions.

Ref. (1): https://cds.cern.ch/record/2670380

Constructor & Destructor Documentation

◆ TrackDensityVertexFinder()

Acts::TrackDensityVertexFinder::TrackDensityVertexFinder ( const Config & cfg)
explicit

Constructor for user-defined InputTrack type.

Parameters
cfgConfiguration object

Member Function Documentation

◆ find()

Result< std::vector< Vertex > > Acts::TrackDensityVertexFinder::find ( const std::vector< InputTrack > & trackVector,
const VertexingOptions & vertexingOptions,
IVertexFinder::State & state ) const
overridevirtual

Function that finds single vertex candidate.

Parameters
trackVectorInput track collection
vertexingOptionsVertexing options
stateState for fulfilling interfaces
Returns
Vector of vertices, filled with a single vertex (for consistent interfaces)

Implements Acts::IVertexFinder.

◆ makeState()

IVertexFinder::State Acts::TrackDensityVertexFinder::makeState ( const Acts::MagneticFieldContext & mctx) const
overridevirtual

Function to create a state object for this concrete vertex finder.

Parameters
mctxThe magnetic field context
Returns
The state object

Implements Acts::IVertexFinder.

◆ setTracksToRemove()

void Acts::TrackDensityVertexFinder::setTracksToRemove ( IVertexFinder::State & anyState,
const std::vector< InputTrack > & removedTracks ) const
overridevirtual

For vertex finders that have an internal state of active tracks, this method instructs them to mark used tracks for removal.

Parameters
anyStateThe state object
removedTracksThe tracks to be removed

Implements Acts::IVertexFinder.