Changes in external/TrackCovariance/ObsTrk.h [a617744:a0f5d71] in git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
external/TrackCovariance/ObsTrk.h
ra617744 ra0f5d71 6 6 #include <TMatrixDSym.h> 7 7 #include <TDecompChol.h> 8 #include "TrkUtil.h"9 8 #include "SolGridCov.h" 10 9 // … … 14 13 // INFN - Sezione di Pisa, Italy 15 14 // 16 class ObsTrk: public TrkUtil 17 { 15 class ObsTrk{ 18 16 // 19 17 // Class to handle simulation of tracking resolution … … 22 20 // 23 21 private: 24 Double_t fB; // Solenoid magnetic field25 SolGridCov *fGC; // Covariance matrix grid22 Double_t fB; // Solenoid magnetic field 23 SolGridCov *fGC; // Covariance matrix grid 26 24 Double_t fGenQ; // Generated track charge 27 25 Double_t fObsQ; // Observed track charge … … 30 28 TVector3 fGenP; // Generated track momentum at track origin 31 29 TVector3 fObsP; // Observed track momentum @ track minimum approach 32 TVectorD fGenPar; // Generated helix track parameters (D, phi0, C, z0, cot(th)) in meters 33 TVectorD fGenParMm; // Generated helix track parameters (D, phi0, C, z0, cot(th)) in mm 30 TVectorD fGenPar; // Generated helix track parameters (D, phi0, C, z0, cot(th)) 34 31 TVectorD fGenParACTS; // Generated helix track parameters (D, z0, phi0, th, q/p, time 35 TVectorD fGenParILC; // Generated helix track parameters (w, phi0, d0, z0, tan(lambda)) 36 TVectorD fObsPar; // Observed helix track parameters (D, phi0, C, z0, cot(th)) in meters 37 TVectorD fObsParMm; // Observed helix track parameters (D, phi0, C, z0, cot(th)) in mm 32 TVectorD fGenParILC; // Generated helix track parameters (w, phi0, d0, z0, tan(lambda)) 33 TVectorD fObsPar; // Observed helix track parameters (D, phi0, C, z0, cot(th)) 38 34 TVectorD fObsParACTS; // Observed helix track parameters (D, z0, phi0, th, q/p, time 39 TVectorD fObsParILC; // Observed helix track parameters (d0, phi0, w, z0, tan(lambda)) 40 TMatrixDSym fCov; // Interpolated covariance of track in meters 41 TMatrixDSym fCovMm; // Interpolated covariance of track parameters in mm 35 TVectorD fObsParILC; // Observed helix track parameters (d0, phi0, w, z0, tan(lambda)) 36 TMatrixDSym fCov; // INterpolated covariance of track parameters 42 37 TMatrixDSym fCovACTS; // Covariance of track parameters in ACTS format 43 38 // (D, z0, phi0, theta, q/p, time) 44 TMatrixDSym fCovILC; // Covariance of track parameters in ILC format39 TMatrixDSym fCovILC; // Covariance of track parameters in ILC format 45 40 // (d0, phi0, w, z0, tan(lambda)) 46 41 // 47 // Service routines42 // Conversion to ACTS parametrization 48 43 // 49 TVectorD GenToObsPar(TVectorD gPar, SolGridCov* GC); 44 TVectorD ParToACTS(TVectorD Par); // Parameter conversion 45 TMatrixDSym CovToACTS(TMatrixDSym Cov); // Covariance 46 // 47 // Conversion to ILC parametrization 48 // 49 TVectorD ParToILC(TVectorD Par); // Parameter conversion 50 TMatrixDSym CovToILC(TMatrixDSym Cov); // Covariance conversion 50 51 // 51 52 public: … … 53 54 // Constructors 54 55 // x(3) track origin, p(3) track momentum at origin, Q charge, B magnetic field in Tesla 55 ObsTrk(TVector3 x, TVector3 p, Double_t Q, Double_t B, SolGridCov *GC); // Initialize and generate smeared 56 ObsTrk(Double_t *x, Double_t *p, Double_t Q, Double_t B, SolGridCov* GC); // Initialize and generate smeared track 56 ObsTrk(TVector3 x, TVector3 p, Double_t Q, Double_t B, SolGridCov *GC); // Initialize and generate smeared track 57 57 // Destructor 58 58 ~ObsTrk(); 59 // 60 // Service routines 61 // 62 TVectorD XPtoPar(TVector3 x, TVector3 p, Double_t Q); 63 TVectorD GenToObsPar(TVectorD gPar, SolGridCov *GC); 64 TVector3 ParToX(TVectorD Par); 65 TVector3 ParToP(TVectorD Par); 66 Double_t ParToQ(TVectorD Par); 59 67 // 60 68 // Accessors … … 66 74 TVector3 GetGenP() { return fGenP; } 67 75 // D, phi0, C, z0, cot(th) 68 TVectorD GetGenPar() { return fGenPar; } // in meters 69 TVectorD GetGenParMm() { return fGenParMm; } // in mm 76 TVectorD GetGenPar() { return fGenPar; } 70 77 // D, z0, phi0, theta, q/p, time 71 78 TVectorD GetGenParACTS() { return fGenParACTS; } … … 77 84 TVector3 GetObsP() { return fObsP; } 78 85 // D, phi0, C, z0, cot(th) 79 TVectorD GetObsPar() { return fObsPar; } // in meters 80 TVectorD GetObsParMm() { return fObsParMm; } // In mm 86 TVectorD GetObsPar() { return fObsPar; } 81 87 // D, z0, phi0, theta, q/p, time 82 88 TVectorD GetObsParACTS() { return fObsParACTS; } … … 84 90 TVectorD GetObsParILC() { return fObsParILC; } 85 91 // Covariances 86 TMatrixDSym GetCov() { return fCov; } // in meters 87 TMatrixDSym GetCovMm() { return fCov; } // in mm 92 TMatrixDSym GetCov(){ return fCov; } 88 93 TMatrixDSym GetCovACTS(){ return fCovACTS; } 89 94 TMatrixDSym GetCovILC(){ return fCovILC; } 90 //91 95 }; 92 96
Note:
See TracChangeset
for help on using the changeset viewer.