BOSS 7.0.3
BESIII Offline Software System
Loading...
Searching...
No Matches
Event/RootEventData/RootEventData-00-03-80/RootEventData/TRecMdcTrack.h
Go to the documentation of this file.
1#ifndef RootEventData_TRecMdcTrack_H
2#define RootEventData_TRecMdcTrack_H 1
3
4#include "TObject.h"
5#include <vector>
6
7using namespace std;
8
9class TRecMdcTrack : public TObject {
10
11public:
12
14
16 //Get
17 const Int_t trackId() const { return m_trackId; }
18 const Double_t helix(Int_t i) const { return m_helix[i]; }
19 const Int_t charge() const;
20 const Double_t pxy() const;
21 const Double_t px() const;
22 const Double_t py() const;
23 const Double_t pz() const;
24 const Double_t p() const;
25 const Double_t theta() const;
26 const Double_t phi() const;
27 const Double_t x() const;
28 const Double_t y() const;
29 const Double_t z() const;
30 const Double_t r() const;
31 const Int_t stat() const { return m_stat; }
32 const Double_t chi2() const { return m_chi2; }
33 const Int_t ndof() const { return m_ndof; }
34 const Double_t err(Int_t i) const { return m_err[i];}
35 const Int_t nhits( ) const { return m_nhits; }
36 const Int_t nster() const { return m_nster; }
37 const Int_t nlayer() const { return m_nlayer; }
38 // vector<Int_t> vecHits() const { return m_vecHits ; }
39 //Get rec
40 const Double_t vx0( void ) const { return m_vx0; }
41 const Double_t vy0( void ) const { return m_vy0; }
42 const Double_t vz0( void ) const { return m_vz0; }
43 const Double_t fiTerm( void ) const { return m_fiTerm; }
44
45 //Set
46 void setTrackId(const Int_t trackId ) { m_trackId = trackId; }
47 void setHelix(const Double_t helix[5]) {
48 for(Int_t i=0; i<5; i++) m_helix[i] = helix[i];
49 }
50 void setStat(const Int_t stat ) { m_stat = stat; }
51 void setChi2(const Double_t chi ) { m_chi2 = chi; }
52 void setNdof(const Int_t ndof ) { m_ndof = ndof; }
53
54 void setErr(const Double_t er[15] ) {
55 for (Int_t i=0;i<15;i++) m_err[i] = er[i];
56 }
57
58 void setNhits(const Int_t nh ) { m_nhits=nh; }
59 void setNster(const Int_t ns ) { m_nster=ns; }
60 void setNlayer(const Int_t nlayer ) { m_nlayer = nlayer; }
61 // void setVecHits(vector<Int_t>& vecHits) { m_vecHits = vecHits; }
62 //Set rec
63 void setVX0(Double_t vx0) { m_vx0 = vx0; }
64 void setVY0(Double_t vy0) { m_vy0 = vy0; }
65 void setVZ0(Double_t vz0) { m_vz0 = vz0; }
66 void setFiTerm(Double_t fiterm) { m_fiTerm = fiterm;}
67 void setTRecMdcTrack(const TRecMdcTrack *mdcTrk){
68 for(int i=0;i<5;i++){
69 m_helix[i]=mdcTrk->helix(i);
70 }
71 for(int i=0;i<15;i++){
72 m_err[i]=mdcTrk->err(i);
73 }
74 m_trackId=mdcTrk->trackId();
75 m_stat=mdcTrk->stat();
76 m_chi2=mdcTrk->chi2();
77 m_ndof=mdcTrk->ndof();
78 m_nster=mdcTrk->nster();
79 m_nlayer=mdcTrk->nlayer();
80 m_vx0=mdcTrk->vx0();
81 m_vy0=mdcTrk->vy0();
82 m_vz0=mdcTrk->vz0();
83 m_fiTerm =mdcTrk->fiTerm();
84 }
85 private:
86 Int_t m_trackId; // Track Id Wensp add 2005-10-19
87 Double_t m_helix[5];// 5 track parameters
88 Int_t m_stat; // Track Fit Quality
89 Double_t m_chi2;
90 Int_t m_ndof;
91 Double_t m_err[15]; // Error Matrix
92 Int_t m_nhits; // number of total hits contained
93 Int_t m_nster; // number of stereo hits contained
94 Int_t m_nlayer; // number of layer hits contained
95 // vector<Int_t> m_vecHits; // Hit list of the track wensp Add 2005-10-20
96
97 //Rec
98 Double_t m_vx0; // The coordinate of pivot(cm)
99 Double_t m_vy0; //
100 Double_t m_vz0; //
101 Double_t m_fiTerm; // phi angle value at track terminated point
102
103 ClassDef(TRecMdcTrack,3)
104};
105
106#endif
const Double_t x() const
const Double_t phi() const
const Double_t pz() const
const Double_t z() const
const Double_t p() const
const Double_t px() const
const Double_t y() const
const Double_t pxy() const
const Double_t theta() const
const Double_t r() const
const Int_t charge() const
const Double_t py() const
#define ns(x)
Definition: xmltok.c:1504