Changeset ebf40fd in git for external/TrackCovariance/TrkUtil.h
- Timestamp:
- Nov 29, 2021, 3:18:22 PM (3 years ago)
- Branches:
- master
- Children:
- bd376e3
- Parents:
- 9a7ea36
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
external/TrackCovariance/TrkUtil.h
r9a7ea36 rebf40fd 28 28 TVectorD XPtoPar(TVector3 x, TVector3 p, Double_t Q); 29 29 TVector3 ParToP(TVectorD Par); 30 TMatrixDSym RegInv(TMatrixDSym& Min); 31 // 32 // Track trajectory derivatives 33 TMatrixD derXdPar(TVectorD par, Double_t s); // derivatives of position wrt parameters 34 TVectorD derXds(TVectorD par, Double_t s); // derivatives of position wrt phase 35 TVectorD dsdPar_R(TVectorD par, Double_t R); // derivatives of phase at constant R 36 TVectorD dsdPar_z(TVectorD par, Double_t z); // derivatives of phase at constant z 30 37 // 31 38 // Conversion to ACTS parametrization … … 54 61 Double_t c = 2.99792458e8; // speed of light m/sec 55 62 //return TMath::C()*1.0e-9; // Incompatible with root5 56 return c*1.0e-9; // Reduced speed of light63 return c*1.0e-9; // Reduced speed of light 57 64 } 58 65 // … … 63 70 static TVector3 ParToP(TVectorD Par, Double_t Bz); // Get Momentum from track parameters 64 71 static Double_t ParToQ(TVectorD Par); // Get track charge 72 static void LineDistance(TVector3 x0, TVector3 y0, TVector3 dirx, TVector3 diry, Double_t &sx, Double_t &sy, Double_t &distance); 73 // 74 // Track trajectory 75 // 76 static TVector3 Xtrack(TVectorD par, Double_t s); // Parametric track trajectory 77 TVectorD derRphi_R(TVectorD par, Double_t R); // Derivatives of R-phi at constant R 78 TVectorD derZ_R(TVectorD par, Double_t R); // Derivatives of z at constant R 79 TVectorD derRphi_Z(TVectorD par, Double_t z); // Derivatives of R-phi at constant z 80 TVectorD derR_Z(TVectorD par, Double_t z); // Derivatives of R at constant z 81 // 82 // Smear with given covariance matrix 83 // 84 static TVectorD CovSmear(TVectorD x, TMatrixDSym C); 65 85 // 66 86 // Conversion from meters to mm … … 68 88 static TVectorD ParToMm(TVectorD Par); // Parameter conversion 69 89 static TMatrixDSym CovToMm(TMatrixDSym Cov); // Covariance conversion 90 // 91 // Inside cylindrical volume 92 // 93 static Bool_t IsInside(TVector3 x, Double_t Rout, Double_t Zmin, Double_t Zmax) 94 { 95 Bool_t Is = kFALSE; 96 if (x.Pt() <= Rout && x.z() >= Zmin && x.z() <= Zmax)Is = kTRUE; 97 return Is; 98 } 70 99 // 71 100 // Cluster counting in gas
Note:
See TracChangeset
for help on using the changeset viewer.