55 |
Trajectory(); |
Trajectory(); |
56 |
Trajectory(int n); |
Trajectory(int n); |
57 |
Trajectory(int n, float* pz); |
Trajectory(int n, float* pz); |
58 |
|
~Trajectory(){Delete();}; |
59 |
void Dump(); |
void Dump(); |
60 |
|
void Delete(); |
61 |
|
|
62 |
int DoTrack2(float* al); |
int DoTrack2(float* al); |
63 |
float GetLength(){float l=0; for(int i=0; i<npoint;i++)l=l+tl[i]; return l;}; |
float GetLength(){float l=0; for(int i=0; i<npoint;i++)l=l+tl[i]; return l;}; |
84 |
|
|
85 |
public: |
public: |
86 |
|
|
|
// TRef clx[6]; |
|
|
// TRef cly[6]; |
|
87 |
TRefArray *clx; |
TRefArray *clx; |
88 |
TRefArray *cly; |
TRefArray *cly; |
89 |
|
|
106 |
float dedx_x[6]; ///<signal in MIP (scaled to 300 micrometer) |
float dedx_x[6]; ///<signal in MIP (scaled to 300 micrometer) |
107 |
float dedx_y[6]; ///<signal in MIP (scaled to 300 micrometer) |
float dedx_y[6]; ///<signal in MIP (scaled to 300 micrometer) |
108 |
|
|
|
|
|
109 |
TrkTrack(); |
TrkTrack(); |
110 |
TrkTrack(const TrkTrack&); |
TrkTrack(const TrkTrack&); |
111 |
|
|
112 |
~TrkTrack(){Delete();}; |
~TrkTrack(){ Delete(); }; |
113 |
|
|
114 |
void Dump(); |
void Dump(); |
115 |
void Clear(); |
void Clear(); |
116 |
|
void Clear(Option_t *option){Clear();}; |
117 |
void Delete(); |
void Delete(); |
118 |
|
void Copy(TrkTrack&); |
119 |
|
// void Set(); |
120 |
|
|
121 |
Int_t GetSeqNo(){return seqno;} ///< Returns the track sequential number |
Int_t GetSeqNo(){return seqno;} ///< Returns the track sequential number |
122 |
Int_t GetImageSeqNo(){return image;} ///< Returns the track image sequential number |
Int_t GetImageSeqNo(){return image;} ///< Returns the track image sequential number |
123 |
Bool_t HasImage(){return !(image==-1);} ///< Returns true if the track has an image |
Bool_t HasImage(){return !(image==-1);} ///< Returns true if the track has an image |
144 |
void LoadField(TString s); |
void LoadField(TString s); |
145 |
void Fit(double pfixed, int& fail, int iprint); |
void Fit(double pfixed, int& fail, int iprint); |
146 |
void FitReset(); |
void FitReset(); |
147 |
|
|
148 |
|
void FillMiniStruct(cMini2track&); |
149 |
|
void SetFromMiniStruct(cMini2track*); |
150 |
|
|
151 |
TrkCluster *GetClusterX(int ip){TrkCluster *pt = (TrkCluster*)(clx->At(ip)); return pt;}; |
TrkCluster *GetClusterX(int ip){TrkCluster *pt = (TrkCluster*)(clx->At(ip)); return pt;}; |
152 |
TrkCluster *GetClusterY(int ip){TrkCluster *pt = (TrkCluster*)(cly->At(ip)); return pt;}; |
TrkCluster *GetClusterY(int ip){TrkCluster *pt = (TrkCluster*)(cly->At(ip)); return pt;}; |
170 |
|
|
171 |
public: |
public: |
172 |
|
|
173 |
TRef cls; |
TRef cls; |
174 |
|
|
175 |
int plane; ///<plane |
int plane; ///<plane |
176 |
float coord[2]; ///<coordinate (on sensor 1 and 2) |
float coord[2]; ///<coordinate (on sensor 1 and 2) |
178 |
|
|
179 |
TrkSinglet(); |
TrkSinglet(); |
180 |
TrkSinglet(const TrkSinglet&); |
TrkSinglet(const TrkSinglet&); |
181 |
|
~TrkSinglet(){Delete();}; |
182 |
|
|
183 |
void Dump(); |
void Dump(); |
184 |
|
void Clear(); |
185 |
|
void Clear(Option_t *option){Clear();}; |
186 |
|
void Delete(){Clear();}; |
187 |
|
|
188 |
TrkCluster *GetCluster(){TrkCluster *pt = (TrkCluster*)cls.GetObject(); return pt;}; |
TrkCluster *GetCluster(){TrkCluster *pt = (TrkCluster*)cls.GetObject(); return pt;}; |
189 |
|
|
207 |
class TrkLevel2 : public TObject { |
class TrkLevel2 : public TObject { |
208 |
|
|
209 |
private: |
private: |
210 |
|
|
|
// TRefArray *PhysicalTrack; ///< physical tracks (no image) - |
|
|
|
|
211 |
public: |
public: |
212 |
|
|
213 |
Int_t good[12]; ///< event status |
Int_t good[12]; ///< event status |
|
// Int_t good2; |
|
|
// Int_t crc[12]; |
|
214 |
|
|
215 |
TClonesArray *Track; ///< fitted tracks |
TClonesArray *Track; ///< fitted tracks |
216 |
TClonesArray *SingletX; ///< x singlets |
TClonesArray *SingletX; ///< x singlets |
221 |
~TrkLevel2(){Delete();}; |
~TrkLevel2(){Delete();}; |
222 |
|
|
223 |
void Clear(); |
void Clear(); |
224 |
|
void Clear(Option_t *option){Clear();}; |
225 |
void Delete(); |
void Delete(); |
226 |
|
void Set(); |
227 |
|
|
228 |
int ntrk() {return Track->GetEntries();} ///< number of stored track |
int ntrk() {return Track->GetEntries();} ///< number of stored track |
229 |
int nclsx(){return SingletX->GetEntries();} ///< number of x singlets |
int nclsx(){return SingletX->GetEntries();} ///< number of x singlets |