BOSS 7.1.2
BESIII Offline Software System
Loading...
Searching...
No Matches
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 Int_t trackId() const { return m_trackId; }
18 Double_t helix(Int_t i) const { return m_helix[i]; }
19 Int_t charge() const;
20 Double_t pxy() const;
21 Double_t px() const;
22 Double_t py() const;
23 Double_t pz() const;
24 Double_t p() const;
25 Double_t theta() const;
26 Double_t phi() const;
27 Double_t x() const;
28 Double_t y() const;
29 Double_t z() const;
30 Double_t r() const;
31 Int_t stat() const { return m_stat; }
32 Double_t chi2() const { return m_chi2; }
33 Int_t ndof() const { return m_ndof; }
34 Double_t err(Int_t i) const { return m_err[i];}
35 Int_t nhits( ) const { return m_nhits; }
36 Int_t nster() const { return m_nster; }
37 Int_t nlayer() const { return m_nlayer; }
38 // vector<Int_t> vecHits() const { return m_vecHits ; }
39 //Get rec
40 Double_t vx0( void ) const { return m_vx0; }
41 Double_t vy0( void ) const { return m_vy0; }
42 Double_t vz0( void ) const { return m_vz0; }
43 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
void setVZ0(Double_t vz0)
Double_t chi2() const
void setStat(const Int_t stat)
void setVX0(Double_t vx0)
void setNdof(const Int_t ndof)
Double_t y() const
Double_t theta() const
Double_t p() const
Double_t px() const
Double_t x() const
void setErr(const Double_t er[15])
Double_t py() const
Double_t z() const
void setHelix(const Double_t helix[5])
Double_t pz() const
Double_t pxy() const
Double_t phi() const
Int_t ndof() const
void setNhits(const Int_t nh)
void setNster(const Int_t ns)
void setNlayer(const Int_t nlayer)
Int_t nster() const
Double_t vy0(void) const
void setChi2(const Double_t chi)
Double_t vz0(void) const
Double_t r() const
Double_t helix(Int_t i) const
Double_t err(Int_t i) const
void setTRecMdcTrack(const TRecMdcTrack *mdcTrk)
void setTrackId(const Int_t trackId)
Double_t fiTerm(void) const
Double_t vx0(void) const
Int_t charge() const
void setFiTerm(Double_t fiterm)
Int_t trackId() const
Int_t nhits() const
Int_t nlayer() const
void setVY0(Double_t vy0)
Int_t stat() const
#define ns(x)
Definition xmltok.c:1504