Fork me on GitHub

source: git/external/TrackCovariance/ObsTrk.h@ 7bca620

Last change on this file since 7bca620 was ebf40fd, checked in by Franco BEDESCHI <bed@…>, 3 years ago

Major update to handle highly displaced tracks

  • Property mode set to 100644
File size: 3.8 KB
RevLine 
[a617744]1//
2#ifndef G__OBSTRK_H
3#define G__OBSTRK_H
4#include <TVector3.h>
5#include <TVectorD.h>
6#include <TMatrixDSym.h>
7#include <TDecompChol.h>
[ebf40fd]8#include "SolGeom.h"
[a617744]9#include "TrkUtil.h"
10#include "SolGridCov.h"
11//
12// Class to handle smearing of generated charged particle tracks
13//
14// Author: F. Bedeschi
15// INFN - Sezione di Pisa, Italy
16//
17class ObsTrk: public TrkUtil
18{
19 //
20 // Class to handle simulation of tracking resolution
21 // Prefix Obs marks variables after resolution smearing
22 // Prefix Gen marks variables before resolution smearing
23 //
24private:
25 Double_t fB; // Solenoid magnetic field
[ebf40fd]26 SolGridCov* fGC; // Covariance matrix grid
27 SolGeom* fG; // Tracker geometry
[a617744]28 Double_t fGenQ; // Generated track charge
29 Double_t fObsQ; // Observed track charge
30 TVector3 fGenX; // Generated track origin (x,y,z)
31 TVector3 fObsX; // Observed track origin (x,y,z) @ track min. approach
32 TVector3 fGenP; // Generated track momentum at track origin
33 TVector3 fObsP; // Observed track momentum @ track minimum approach
34 TVectorD fGenPar; // Generated helix track parameters (D, phi0, C, z0, cot(th)) in meters
35 TVectorD fGenParMm; // Generated helix track parameters (D, phi0, C, z0, cot(th)) in mm
36 TVectorD fGenParACTS; // Generated helix track parameters (D, z0, phi0, th, q/p, time
37 TVectorD fGenParILC; // Generated helix track parameters (w, phi0, d0, z0, tan(lambda))
38 TVectorD fObsPar; // Observed helix track parameters (D, phi0, C, z0, cot(th)) in meters
39 TVectorD fObsParMm; // Observed helix track parameters (D, phi0, C, z0, cot(th)) in mm
40 TVectorD fObsParACTS; // Observed helix track parameters (D, z0, phi0, th, q/p, time
41 TVectorD fObsParILC; // Observed helix track parameters (d0, phi0, w, z0, tan(lambda))
42 TMatrixDSym fCov; // Interpolated covariance of track in meters
43 TMatrixDSym fCovMm; // Interpolated covariance of track parameters in mm
44 TMatrixDSym fCovACTS; // Covariance of track parameters in ACTS format
45 // (D, z0, phi0, theta, q/p, time)
46 TMatrixDSym fCovILC; // Covariance of track parameters in ILC format
47 // (d0, phi0, w, z0, tan(lambda))
48 //
49 // Service routines
50 //
[ebf40fd]51 TVectorD GenToObsPar(TVectorD gPar);
[a617744]52 //
53public:
54 //
55 // Constructors
56 // x(3) track origin, p(3) track momentum at origin, Q charge, B magnetic field in Tesla
[ebf40fd]57 ObsTrk(TVector3 x, TVector3 p, Double_t Q, SolGridCov *GC, SolGeom *G); // Initialize and generate smeared
58 ObsTrk(Double_t *x, Double_t *p, Double_t Q, SolGridCov* GC, SolGeom *G); // Initialize and generate smeared track
[a617744]59 // Destructor
60 ~ObsTrk();
61 //
62 // Accessors
63 //
64 // Generator level:
65 // X, P, Q
66 Double_t GetGenQ() { return fGenQ; }
67 TVector3 GetGenX() { return fGenX; }
68 TVector3 GetGenP() { return fGenP; }
69 // D, phi0, C, z0, cot(th)
70 TVectorD GetGenPar() { return fGenPar; } // in meters
71 TVectorD GetGenParMm() { return fGenParMm; } // in mm
72 // D, z0, phi0, theta, q/p, time
73 TVectorD GetGenParACTS() { return fGenParACTS; }
74 // d0, phi0, w, z0, tan(lambda)
75 TVectorD GetGenParILC() { return fGenParILC; }
76 // Observed level X, P, Q
77 Double_t GetObsQ() { return fObsQ; }
78 TVector3 GetObsX() { return fObsX; }
79 TVector3 GetObsP() { return fObsP; }
80 // D, phi0, C, z0, cot(th)
81 TVectorD GetObsPar() { return fObsPar; } // in meters
82 TVectorD GetObsParMm() { return fObsParMm; } // In mm
83 // D, z0, phi0, theta, q/p, time
84 TVectorD GetObsParACTS() { return fObsParACTS; }
85 // d0, phi0, w, z0, tan(lambda)
86 TVectorD GetObsParILC() { return fObsParILC; }
87 // Covariances
88 TMatrixDSym GetCov() { return fCov; } // in meters
89 TMatrixDSym GetCovMm() { return fCov; } // in mm
90 TMatrixDSym GetCovACTS(){ return fCovACTS; }
91 TMatrixDSym GetCovILC(){ return fCovILC; }
92 //
93};
94
95#endif
Note: See TracBrowser for help on using the repository browser.