| 57 |
Trajectory(int n, float* pz); |
Trajectory(int n, float* pz); |
| 58 |
void Dump(); |
void Dump(); |
| 59 |
|
|
| 60 |
|
int DoTrack2(float* al); |
| 61 |
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;}; |
| 62 |
float GetLength(int,int); |
float GetLength(int,int); |
| 63 |
|
|
| 84 |
|
|
| 85 |
// TRef clx[6]; |
// TRef clx[6]; |
| 86 |
// TRef cly[6]; |
// TRef cly[6]; |
| 87 |
TRefArray *clx; |
TRefArray *clx; |
| 88 |
TRefArray *cly; |
TRefArray *cly; |
| 89 |
|
|
| 90 |
float al[5]; ///<TRACK STATE VECTOR |
float al[5]; ///<TRACK STATE VECTOR |
| 91 |
float coval[5][5]; ///<covariance matrix |
float coval[5][5]; ///<covariance matrix |
| 97 |
float resx[6]; ///<spatial resolution on X view |
float resx[6]; ///<spatial resolution on X view |
| 98 |
float resy[6]; ///<spatial resolution on y view |
float resy[6]; ///<spatial resolution on y view |
| 99 |
float chi2; ///<chi2 |
float chi2; ///<chi2 |
| 100 |
int nstep; ///<n. step |
int nstep; ///<n. step |
| 101 |
float xv[6]; ///<calculated x coordinates |
float xv[6]; ///<calculated x coordinates |
| 102 |
float yv[6]; ///<calculated y coordinates |
float yv[6]; ///<calculated y coordinates |
| 103 |
float zv[6]; ///<calculated z coordinates |
float zv[6]; ///<calculated z coordinates |
| 104 |
float axv[6]; ///<calculated angles (deg) on x view |
float axv[6]; ///<calculated angles (deg) on x view |
| 110 |
TrkTrack(); |
TrkTrack(); |
| 111 |
TrkTrack(const TrkTrack&); |
TrkTrack(const TrkTrack&); |
| 112 |
|
|
| 113 |
~TrkTrack(){Delete();}; |
~TrkTrack(){Delete();}; |
| 114 |
|
|
| 115 |
void Dump(); |
void Dump(); |
| 116 |
void Clear(); |
void Clear(); |
| 117 |
void Delete(); |
void Delete(); |
| 118 |
|
|
| 119 |
Int_t GetSeqNo(){return seqno;} ///< Returns the track sequential number |
Int_t GetSeqNo(){return seqno;} ///< Returns the track sequential number |
| 120 |
Int_t GetImageSeqNo(){return image;} ///< Returns the track image sequential number |
Int_t GetImageSeqNo(){return image;} ///< Returns the track image sequential number |
| 128 |
Float_t GetRigidity(); |
Float_t GetRigidity(); |
| 129 |
Float_t GetDeflection(); |
Float_t GetDeflection(); |
| 130 |
Float_t GetDEDX(); |
Float_t GetDEDX(); |
| 131 |
Float_t GetDEDX(Int_t ip){if( !(xgood[ip]+ygood[ip]) ) return 0; return (dedx_x[ip]+dedx_y[ip])/(xgood[ip]+ygood[ip]);}; |
Float_t GetDEDX(Int_t ip){if( !(xgood[ip]+ygood[ip]) ) return 0; return (dedx_x[ip]+dedx_y[ip])/(xgood[ip]+ygood[ip]);}; |
| 132 |
// sono un'imbecille... assegno xm e ym anche quando si tratta di un singolo |
// sono un'imbecille... assegno xm e ym anche quando si tratta di un singolo |
| 133 |
// non posso quindi usare xm e ym per dire se una vista e` inclusa nel fit o no |
// non posso quindi usare xm e ym per dire se una vista e` inclusa nel fit o no |
| 134 |
/* Bool_t XGood(int ip){ return xm[ip] != -100.;}; |
/* Bool_t XGood(int ip){ return xm[ip] != -100.;}; |
| 135 |
Bool_t YGood(int ip){ return ym[ip] != -100.;};*/ |
Bool_t YGood(int ip){ return ym[ip] != -100.;};*/ |
| 136 |
Bool_t XGood(int ip){ return xgood[ip]==1;}; |
Bool_t XGood(int ip){ return xgood[ip]==1;}; |
| 137 |
Bool_t YGood(int ip){ return ygood[ip]==1;}; |
Bool_t YGood(int ip){ return ygood[ip]==1;}; |
| 138 |
|
|
| 139 |
TrkCluster *GetClusterX(int ip){TrkCluster *pt = (TrkCluster*)(clx->At(ip)); return pt;}; |
void SetMeasure(double *xmeas, double *ymeas, double *zmeas); |
| 140 |
TrkCluster *GetClusterY(int ip){TrkCluster *pt = (TrkCluster*)(cly->At(ip)); return pt;}; |
void SetResolution(double *rx, double *ry); |
| 141 |
|
void SetGood(int *xg, int *yg); |
| 142 |
|
void LoadField(TString s); |
| 143 |
|
void Fit(double pfixed, int& fail, int iprint); |
| 144 |
|
void FitReset(); |
| 145 |
|
|
| 146 |
|
TrkCluster *GetClusterX(int ip){TrkCluster *pt = (TrkCluster*)(clx->At(ip)); return pt;}; |
| 147 |
|
TrkCluster *GetClusterY(int ip){TrkCluster *pt = (TrkCluster*)(cly->At(ip)); return pt;}; |
| 148 |
|
|
| 149 |
TrkTrack* GetTrkTrack(){return this;}; |
TrkTrack* GetTrkTrack(){return this;}; |
| 150 |
|
|
| 151 |
friend class TrkLevel2; |
friend class TrkLevel2; |
| 176 |
|
|
| 177 |
void Dump(); |
void Dump(); |
| 178 |
|
|
| 179 |
TrkCluster *GetCluster(){TrkCluster *pt = (TrkCluster*)cls.GetObject(); return pt;}; |
TrkCluster *GetCluster(){TrkCluster *pt = (TrkCluster*)cls.GetObject(); return pt;}; |
| 180 |
|
|
| 181 |
friend class TrkLevel2; |
friend class TrkLevel2; |
| 182 |
|
|
| 213 |
|
|
| 214 |
TrkLevel2(); |
TrkLevel2(); |
| 215 |
// TrkLevel2(cTrkLevel2 *); |
// TrkLevel2(cTrkLevel2 *); |
| 216 |
~TrkLevel2(){Delete();}; |
~TrkLevel2(){Delete();}; |
|
|
|
|
void Clear(); |
|
|
void Delete(); |
|
| 217 |
|
|
| 218 |
int ntrk() {return Track->GetEntries();} ///< number of stored track |
void Clear(); |
| 219 |
|
void Delete(); |
| 220 |
|
|
| 221 |
|
int ntrk() {return Track->GetEntries();} ///< number of stored track |
| 222 |
int nclsx(){return SingletX->GetEntries();} ///< number of x singlets |
int nclsx(){return SingletX->GetEntries();} ///< number of x singlets |
| 223 |
int nclsy(){return SingletY->GetEntries();} ///< number of y singlets |
int nclsy(){return SingletY->GetEntries();} ///< number of y singlets |
| 224 |
|
|
| 225 |
void Dump(); |
void Dump(); |
| 226 |
void SetFromLevel2Struct(cTrkLevel2 *); |
void SetFromLevel2Struct(cTrkLevel2 *); |
| 227 |
void SetFromLevel2Struct(cTrkLevel2 *, TrkLevel1 *); |
void SetFromLevel2Struct(cTrkLevel2 *, TrkLevel1 *); |
| 228 |
void GetLevel2Struct(cTrkLevel2 *) const; |
void GetLevel2Struct(cTrkLevel2 *) const; |
| 229 |
void LoadField(TString); |
void LoadField(TString); |
| 230 |
Float_t GetZTrk(Int_t); |
Float_t GetZTrk(Int_t); |
| 231 |
Float_t GetXTrkLeft(){return XTRKL;}; |
Float_t GetXTrkLeft(){return XTRKL;}; |
| 241 |
// TClonesArray *GetTracks_Chi2Sorted(); |
// TClonesArray *GetTracks_Chi2Sorted(); |
| 242 |
// TClonesArray *GetTracks_NFitSorted(); |
// TClonesArray *GetTracks_NFitSorted(); |
| 243 |
// TClonesArray *GetTracks(); |
// TClonesArray *GetTracks(); |
| 244 |
TRefArray *GetTracks_NFitSorted(); |
TRefArray *GetTracks_NFitSorted(); |
| 245 |
TRefArray *GetTracks(){return this->GetTracks_NFitSorted();}; |
TRefArray *GetTracks(){return this->GetTracks_NFitSorted();}; |
| 246 |
|
|
| 247 |
// int GetNTracks(){return this->GetTracks()->GetEntries();} |
// int GetNTracks(){return this->GetTracks()->GetEntries();} |
| 248 |
Int_t GetNTracks(); |
Int_t GetNTracks(); |
| 249 |
TrkTrack* GetTrack(int i); |
TrkTrack* GetTrack(int i); |
| 250 |
TrkTrack* GetTrackImage(int i); |
TrkTrack* GetTrackImage(int i); |
| 251 |
|
|
| 252 |
TrkLevel2* GetTrkLevel2(){return this;} |
TrkLevel2* GetTrkLevel2(){return this;} |
| 253 |
TClonesArray* GetTrackArray(){return Track;};///< returns pointer to the track array |
TClonesArray* GetTrackArray(){return Track;};///< returns pointer to the track array |
| 254 |
|
|