Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ActsTransformations Class Reference

#include <coresoftware/blob/master/offline/packages/trackbase_historic/ActsTransformations.h>

Public Member Functions

 ActsTransformations ()=default
 
Acts::BoundSquareMatrix rotateSvtxTrackCovToActs (const SvtxTrack *) const
 
Acts::BoundSquareMatrix rotateSvtxTrackCovToActs (const SvtxTrackState *) const
 
Acts::BoundSquareMatrix rotateActsCovToSvtxTrack (const ActsTrackFittingAlgorithm::TrackParameters &) const
 
void setVerbosity (int verbosity)
 
void printMatrix (const std::string &message, const Acts::BoundSquareMatrix &matrix) const
 
void calculateDCA (const ActsTrackFittingAlgorithm::TrackParameters param, Acts::Vector3 vertex, Acts::BoundSquareMatrix cov, Acts::GeometryContext &geoCtxt, float &dca3Dxy, float &dca3Dz, float &dca3DxyCov, float &dca3DzCov) const
 
void fillSvtxTrackStates (const Acts::ConstVectorMultiTrajectory &traj, const size_t &trackTip, SvtxTrack *svtxTrack, Acts::GeometryContext &geoContext) const
 

Private Attributes

int m_verbosity = 0
 

Detailed Description

This is a helper class for rotating track covariance matrices to and from the basis that Acts expects. The covariance matrix is nominally given in the global basis (x,y,z,px,py,pz). Acts expects the covariance matrix in a local basis with respect to the given reference point that is provided as an option to the KalmanFitter.

Definition at line 34 of file ActsTransformations.h.

View newest version in sPHENIX GitHub at line 34 of file ActsTransformations.h

Constructor & Destructor Documentation

ActsTransformations::ActsTransformations ( )
default

Member Function Documentation

void ActsTransformations::calculateDCA ( const ActsTrackFittingAlgorithm::TrackParameters  param,
Acts::Vector3  vertex,
Acts::BoundSquareMatrix  cov,
Acts::GeometryContext geoCtxt,
float &  dca3Dxy,
float &  dca3Dz,
float &  dca3DxyCov,
float &  dca3DzCov 
) const

Calculate the DCA for a given Acts fitted track parameters and vertex

Correct for initial vertex estimation

Definition at line 211 of file ActsTransformations.cc.

View newest version in sPHENIX GitHub at line 211 of file ActsTransformations.cc

References Acts::Test::cov, i, j, Acts::GenericBoundTrackParameters< particle_hypothesis_t >::momentum(), ActsTests::PropagationDatasets::phi, Acts::Test::pos, Acts::GenericBoundTrackParameters< particle_hypothesis_t >::position(), and physmon_track_finding_ttbar::r.

+ Here is the call graph for this function:

void ActsTransformations::fillSvtxTrackStates ( const Acts::ConstVectorMultiTrajectory traj,
const size_t &  trackTip,
SvtxTrack svtxTrack,
Acts::GeometryContext geoContext 
) const

Only fill the track states with non-outlier measurement

covariance

Definition at line 263 of file ActsTransformations.cc.

View newest version in sPHENIX GitHub at line 263 of file ActsTransformations.cc

References Acts::UnitConstants::cm, i, SvtxTrack::insert_state(), j, m_verbosity, Acts::MeasurementFlag, momentum, out, Acts::ParticleHypothesis::pion(), Acts::GenericBoundTrackParameters< particle_hypothesis_t >::position(), rotateActsCovToSvtxTrack(), SvtxTrackState_v2::set_cluskey(), SvtxTrackState_v2::set_error(), SvtxTrackState_v2::set_px(), SvtxTrackState_v2::set_py(), SvtxTrackState_v2::set_pz(), SvtxTrackState_v2::set_x(), SvtxTrackState_v2::set_y(), SvtxTrackState_v2::set_z(), filter::state, and Acts::MultiTrajectory< derived_t >::visitBackwards().

Referenced by PHActsGSF::updateSvtxTrack(), PHCosmicsTrkFitter::updateSvtxTrack(), and PHActsTrkFitter::updateSvtxTrack().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void ActsTransformations::printMatrix ( const std::string &  message,
const Acts::BoundSquareMatrix matrix 
) const

Definition at line 208 of file ActsTransformations.cc.

View newest version in sPHENIX GitHub at line 208 of file ActsTransformations.cc

References m_verbosity.

Referenced by rotateActsCovToSvtxTrack(), and rotateSvtxTrackCovToActs().

+ Here is the caller graph for this function:

Acts::BoundSquareMatrix ActsTransformations::rotateActsCovToSvtxTrack ( const ActsTrackFittingAlgorithm::TrackParameters params) const

Rotates an Acts covariance matrix from (d0, z0, phi, theta, q/p, time) local curvilinear coordinates to global cartesian coordinates (x,y,z,px,py,pz) coordinates

Convert to sPHENIX units

Definition at line 133 of file ActsTransformations.cc.

View newest version in sPHENIX GitHub at line 133 of file ActsTransformations.cc

References Acts::UnitConstants::cm, Acts::UnitConstants::cm2, Acts::GenericBoundTrackParameters< particle_hypothesis_t >::covariance(), Acts::eBoundLoc0, Acts::eBoundLoc1, Acts::eBoundPhi, Acts::eBoundQOverP, Acts::eBoundTheta, Acts::eBoundTime, i, j, Acts::GenericBoundTrackParameters< particle_hypothesis_t >::momentum(), merge_hashes::p, printMatrix(), and square().

Referenced by PHActsTrackPropagator::addTrackState(), PHTpcResiduals::addTrackState(), fillSvtxTrackStates(), PHActsVertexPropagator::updateSvtxTrack(), PHActsGSF::updateSvtxTrack(), PHActsTrackProjection::updateSvtxTrack(), PHCosmicsTrkFitter::updateSvtxTrack(), and PHActsTrkFitter::updateSvtxTrack().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Acts::BoundSquareMatrix ActsTransformations::rotateSvtxTrackCovToActs ( const SvtxTrack track) const

Rotates an SvtxTrack covariance matrix from (x,y,z,px,py,pz) global cartesian coordinates to (d0, z0, phi, theta, q/p, time) coordinates for Acts. The track fitter performs the fitting with respect to the nominal origin of sPHENIX, so we rotate accordingly

Definition at line 39 of file ActsTransformations.cc.

View newest version in sPHENIX GitHub at line 39 of file ActsTransformations.cc

References SvtxTrack::find_state().

Referenced by PHActsInitialVertexFinder::getTrackPointers(), and PHTpcResiduals::makeTrackParams().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Acts::BoundSquareMatrix ActsTransformations::rotateSvtxTrackCovToActs ( const SvtxTrackState state) const

Rotates an SvtxTrack state covariance matrix from (x,y,z,px,py,pz) global cartesian coordinates to (d0, z0, phi, theta, q/p, time) coordinates for Acts. The track fitter performs the fitting with respect to the nominal origin of sPHENIX, so we rotate accordingly

Convert Svtx to mm and GeV units as Acts expects

First we rotate to (x,y,z,time,Tx,Ty,Tz,q/p) to take advantage of the already created Acts rotation matrix from this basis into the Acts local basis We basically go backwards from rotateActsCovToSvtxTrack to get the Acts cov from the SvtxTrack cov

Definition at line 43 of file ActsTransformations.cc.

View newest version in sPHENIX GitHub at line 43 of file ActsTransformations.cc

References Acts::UnitConstants::cm, Acts::UnitConstants::cm2, Acts::eBoundLoc0, Acts::eBoundLoc1, Acts::eBoundPhi, Acts::eBoundQOverP, Acts::eBoundTheta, Acts::eBoundTime, SvtxTrackState::get_error(), SvtxTrackState::get_px(), SvtxTrackState::get_py(), SvtxTrackState::get_pz(), i, j, merge_hashes::p, printMatrix(), and square().

+ Here is the call graph for this function:

void ActsTransformations::setVerbosity ( int  verbosity)
inline

Definition at line 55 of file ActsTransformations.h.

View newest version in sPHENIX GitHub at line 55 of file ActsTransformations.h

References m_verbosity, and verbosity.

Referenced by PHActsInitialVertexFinder::getTrackPointers(), PHActsVertexPropagator::updateSvtxTrack(), PHActsGSF::updateSvtxTrack(), PHCosmicsTrkFitter::updateSvtxTrack(), and PHActsTrkFitter::updateSvtxTrack().

+ Here is the caller graph for this function:

Member Data Documentation

int ActsTransformations::m_verbosity = 0
private

Definition at line 76 of file ActsTransformations.h.

View newest version in sPHENIX GitHub at line 76 of file ActsTransformations.h

Referenced by fillSvtxTrackStates(), printMatrix(), and setVerbosity().


The documentation for this class was generated from the following files: