ACTS
Experiment-independent tracking
Loading...
Searching...
No Matches
Acts::Experimental::Gx2fSystem Struct Reference

A container to manage all properties of a gx2f system. More...

#include <Acts/TrackFitting/GlobalChiSquareFitter.hpp>

Public Member Functions

 Gx2fSystem (std::size_t nDims)
 Constructor to initialize matrices and vectors to zero based on specified dimensions.
Eigen::MatrixXd & aMatrix ()
 Accessor for the extended system matrix (mutable version).
const Eigen::MatrixXd & aMatrix () const
 Accessor for the extended system matrix (const version).
Eigen::VectorXd & bVector ()
 Accessor for the extended system vector (mutable version).
const Eigen::VectorXd & bVector () const
 Accessor for the extended system vector (const version).
double & chi2 ()
 Accessor for the accumulated chi-squared value (mutable version).
double chi2 () const
 Accessor for the accumulated chi-squared value (const version).
std::size_t findRequiredNdf ()
 Determines the minimum number of degrees of freedom required for the fit.
bool isWellDefined ()
 Checks if the system has sufficient degrees of freedom for fitting.
std::size_t & ndf ()
 Accessor for the number of degrees of freedom (mutable version).
std::size_t ndf () const
 Accessor for the number of degrees of freedom (const version).
std::size_t nDims () const
 Accessor for the number of dimensions of the extended system.

Detailed Description

A container to manage all properties of a gx2f system.

This struct manages the mathematical infrastructure for the gx2f. It initializes and maintains the extended aMatrix and extended bVector.

Constructor & Destructor Documentation

◆ Gx2fSystem()

Acts::Experimental::Gx2fSystem::Gx2fSystem ( std::size_t nDims)
explicit

Constructor to initialize matrices and vectors to zero based on specified dimensions.

Parameters
nDimsNumber of dimensions for the extended matrix and vector.

Member Function Documentation

◆ aMatrix() [1/2]

Eigen::MatrixXd & Acts::Experimental::Gx2fSystem::aMatrix ( )

Accessor for the extended system matrix (mutable version).

Returns
Mutable reference to the aMatrix for adding measurement and material contributions

◆ aMatrix() [2/2]

const Eigen::MatrixXd & Acts::Experimental::Gx2fSystem::aMatrix ( ) const

Accessor for the extended system matrix (const version).

Returns
Const reference to the aMatrix containing measurement and material contributions

◆ bVector() [1/2]

Eigen::VectorXd & Acts::Experimental::Gx2fSystem::bVector ( )

Accessor for the extended system vector (mutable version).

Returns
Mutable reference to the bVector for adding measurement and material contributions

◆ bVector() [2/2]

const Eigen::VectorXd & Acts::Experimental::Gx2fSystem::bVector ( ) const

Accessor for the extended system vector (const version).

Returns
Const reference to the bVector containing measurement and material contributions

◆ chi2() [1/2]

double & Acts::Experimental::Gx2fSystem::chi2 ( )

Accessor for the accumulated chi-squared value (mutable version).

Returns
Mutable reference to chi-squared sum for modification during fitting

◆ chi2() [2/2]

double Acts::Experimental::Gx2fSystem::chi2 ( ) const

Accessor for the accumulated chi-squared value (const version).

Returns
Current sum of chi-squared contributions from measurements and material

◆ findRequiredNdf()

std::size_t Acts::Experimental::Gx2fSystem::findRequiredNdf ( )

Determines the minimum number of degrees of freedom required for the fit.

Automatically deduces the required NDF based on the system configuration. We have only 3 cases, because we always have l0, l1, phi, theta:

  • 4: no magnetic field -> q/p is empty
  • 5: no time measurement -> time is not fittable
  • 6: full fit with all parameters
Returns
Required NDF based on which parameters can be fitted

◆ isWellDefined()

bool Acts::Experimental::Gx2fSystem::isWellDefined ( )

Checks if the system has sufficient degrees of freedom for fitting.

Returns
True if NDF exceeds the minimum required for the parameter configuration

◆ ndf() [1/2]

std::size_t & Acts::Experimental::Gx2fSystem::ndf ( )

Accessor for the number of degrees of freedom (mutable version).

Returns
Mutable reference to NDF counter for incrementing during measurement processing

◆ ndf() [2/2]

std::size_t Acts::Experimental::Gx2fSystem::ndf ( ) const

Accessor for the number of degrees of freedom (const version).

Returns
Current number of degrees of freedom from processed measurements

◆ nDims()

std::size_t Acts::Experimental::Gx2fSystem::nDims ( ) const

Accessor for the number of dimensions of the extended system.

Returns
Number of dimensions for the aMatrix and bVector (bound parameters + scattering angles)