CGEM BOSS 6.6.5.i
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 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 vector<Int_t> vecClusterId() const { return m_vecClusterId; }
40 //Get rec
41 const Double_t vx0( void ) const { return m_vx0; }
42 const Double_t vy0( void ) const { return m_vy0; }
43 const Double_t vz0( void ) const { return m_vz0; }
44 const Double_t fiTerm( void ) const { return m_fiTerm; }
45
46 //Set
47 void setTrackId(const Int_t trackId ) { m_trackId = trackId; }
48 void setHelix(const Double_t helix[5]) {
49 for(Int_t i=0; i<5; i++) m_helix[i] = helix[i];
50 }
51 void setStat(const Int_t stat ) { m_stat = stat; }
52 void setChi2(const Double_t chi ) { m_chi2 = chi; }
53 void setNdof(const Int_t ndof ) { m_ndof = ndof; }
54
55 void setErr(const Double_t er[15] ) {
56 for (Int_t i=0;i<15;i++) m_err[i] = er[i];
57 }
58
59 void setNhits(const Int_t nh ) { m_nhits=nh; }
60 void setNster(const Int_t ns ) { m_nster=ns; }
61 void setNlayer(const Int_t nlayer ) { m_nlayer = nlayer; }
62 // void setVecHits(vector<Int_t>& vecHits) { m_vecHits = vecHits; }
63 void setVecClusterId(vector<Int_t>& vecCluId) { m_vecClusterId = vecCluId; }
64 //Set rec
65 void setVX0(Double_t vx0) { m_vx0 = vx0; }
66 void setVY0(Double_t vy0) { m_vy0 = vy0; }
67 void setVZ0(Double_t vz0) { m_vz0 = vz0; }
68 void setFiTerm(Double_t fiterm) { m_fiTerm = fiterm;}
69
70 void setTRecMdcTrack(const TRecMdcTrack *mdcTrk){
71 for(int i=0;i<5;i++){
72 m_helix[i]=mdcTrk->helix(i);
73 }
74 for(int i=0;i<15;i++){
75 m_err[i]=mdcTrk->err(i);
76 }
77 m_trackId=mdcTrk->trackId();
78 m_stat=mdcTrk->stat();
79 m_chi2=mdcTrk->chi2();
80 m_ndof=mdcTrk->ndof();
81 m_nster=mdcTrk->nster();
82 m_nlayer=mdcTrk->nlayer();
83 m_vx0=mdcTrk->vx0();
84 m_vy0=mdcTrk->vy0();
85 m_vz0=mdcTrk->vz0();
86 m_fiTerm =mdcTrk->fiTerm();
87 m_vecClusterId=mdcTrk->vecClusterId();
88 }
89
90 private:
91 Int_t m_trackId; // Track Id Wensp add 2005-10-19
92 Double_t m_helix[5];// 5 track parameters
93 Int_t m_stat; // Track Fit Quality
94 Double_t m_chi2;
95 Int_t m_ndof;
96 Double_t m_err[15]; // Error Matrix
97 Int_t m_nhits; // number of total hits contained
98 Int_t m_nster; // number of stereo hits contained
99 Int_t m_nlayer; // number of layer hits contained
100 // vector<Int_t> m_vecHits; // Hit list of the track wensp Add 2005-10-20
101 vector<Int_t> m_vecClusterId; // cluster id list
102
103 //Rec
104 Double_t m_vx0; // The coordinate of pivot(cm)
105 Double_t m_vy0; //
106 Double_t m_vz0; //
107 Double_t m_fiTerm; // phi angle value at track terminated point
108
109 ClassDef(TRecMdcTrack,3)
110};
111
112#endif
const Double_t x() const
void setVZ0(Double_t vz0)
const Double_t phi() const
const Double_t pz() const
void setStat(const Int_t stat)
void setVX0(Double_t vx0)
void setNdof(const Int_t ndof)
const Double_t z() const
const Int_t nster() const
const Double_t vz0(void) const
void setErr(const Double_t er[15])
void setHelix(const Double_t helix[5])
const Double_t p() const
const Double_t px() const
const Int_t nhits() const
const Double_t chi2() const
void setNhits(const Int_t nh)
const Int_t trackId() const
void setNster(const Int_t ns)
const Double_t y() const
void setNlayer(const Int_t nlayer)
void setChi2(const Double_t chi)
void setVecClusterId(vector< Int_t > &vecCluId)
const Int_t stat() const
void setTRecMdcTrack(const TRecMdcTrack *mdcTrk)
const Double_t vy0(void) const
const Double_t fiTerm(void) const
void setTrackId(const Int_t trackId)
const Double_t pxy() const
const Double_t err(Int_t i) const
const Int_t ndof() const
const Double_t theta() const
void setFiTerm(Double_t fiterm)
vector< Int_t > vecClusterId() const
const Double_t r() const
const Int_t nlayer() const
void setVY0(Double_t vy0)
const Int_t charge() const
const Double_t vx0(void) const
const Double_t py() const
const Double_t helix(Int_t i) const
#define ns(x)
Definition xmltok.c:1504