BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
mdcTwoInv.h File Reference

Go to the source code of this file.

Functions

int mdcTwoInv (double matrix[3], double invmat[3])

Function Documentation

◆ mdcTwoInv()

int mdcTwoInv ( double matrix[3],
double invmat[3] )
inline

Definition at line 1 of file InstallArea/x86_64-el9-gcc13-dbg/include/MdcTrkRecon/mdcTwoInv.h.

1 {
2
3 double det = matrix[0] * matrix[2] - matrix[1] * matrix[1];
4 if ( det == 0.0 )
5 {
6 invmat[0] = invmat[2] = invmat[1] = 0.00000;
7 return 1;
8 }
9 else
10 {
11 double detinv = 1. / det;
12 invmat[0] = matrix[2] * detinv;
13 invmat[2] = matrix[0] * detinv;
14 invmat[1] = -matrix[1] * detinv;
15 return 0;
16 }
17}

Referenced by MdcSegInfoAxialO::calcFromOrigin(), MdcSegGrouper::calcParBySegs(), MdcSegInfoSterO::calcStereo(), and MdcSegInfoCsmc::calcStraight().