| 9 |
#include <TObjArray.h> |
#include <TObjArray.h> |
| 10 |
#include <TClonesArray.h> |
#include <TClonesArray.h> |
| 11 |
#include <TRefArray.h> |
#include <TRefArray.h> |
| 12 |
|
#include <TRef.h> |
| 13 |
|
|
| 14 |
#include <TrkStruct.h> |
#include <TrkStruct.h> |
| 15 |
|
#include <TrkLevel1.h> |
| 16 |
|
|
| 17 |
// z-coordinate of track state-vector reference-plane |
// z-coordinate of track state-vector reference-plane |
| 18 |
#define ZINI 23.5 |
#define ZINI 23.5 |
| 60 |
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;}; |
| 61 |
float GetLength(int,int); |
float GetLength(int,int); |
| 62 |
|
|
| 63 |
ClassDef(Trajectory,1); |
ClassDef(Trajectory,2); |
| 64 |
|
|
| 65 |
}; |
}; |
| 66 |
/** |
/** |
| 78 |
int seqno; ///<stored track sequential number |
int seqno; ///<stored track sequential number |
| 79 |
int image; ///<sequential number of track-image |
int image; ///<sequential number of track-image |
| 80 |
|
|
| 81 |
|
|
| 82 |
public: |
public: |
| 83 |
|
|
| 84 |
|
// TRef clx[6]; |
| 85 |
|
// TRef cly[6]; |
| 86 |
|
TRefArray *clx; |
| 87 |
|
TRefArray *cly; |
| 88 |
|
|
| 89 |
float al[5]; ///<TRACK STATE VECTOR |
float al[5]; ///<TRACK STATE VECTOR |
| 90 |
float coval[5][5]; ///<covariance matrix |
float coval[5][5]; ///<covariance matrix |
| 96 |
float resx[6]; ///<spatial resolution on X view |
float resx[6]; ///<spatial resolution on X view |
| 97 |
float resy[6]; ///<spatial resolution on y view |
float resy[6]; ///<spatial resolution on y view |
| 98 |
float chi2; ///<chi2 |
float chi2; ///<chi2 |
| 99 |
float xv[6]; ///<calculated x coordinates |
int nstep; ///<n. step |
| 100 |
|
float xv[6]; ///<calculated x coordinates |
| 101 |
float yv[6]; ///<calculated y coordinates |
float yv[6]; ///<calculated y coordinates |
| 102 |
float zv[6]; ///<calculated z coordinates |
float zv[6]; ///<calculated z coordinates |
| 103 |
float axv[6]; ///<calculated angles (deg) on x view |
float axv[6]; ///<calculated angles (deg) on x view |
| 110 |
TrkTrack(const TrkTrack&); |
TrkTrack(const TrkTrack&); |
| 111 |
|
|
| 112 |
void Dump(); |
void Dump(); |
| 113 |
|
void Clear(); |
| 114 |
|
|
| 115 |
Int_t GetSeqNo(){return seqno;} ///< Returns the track sequential number |
Int_t GetSeqNo(){return seqno;} ///< Returns the track sequential number |
| 116 |
Int_t GetImageSeqNo(){return image;} ///< Returns the track image sequential number |
Int_t GetImageSeqNo(){return image;} ///< Returns the track image sequential number |
| 117 |
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 |
| 124 |
Float_t GetRigidity(); |
Float_t GetRigidity(); |
| 125 |
Float_t GetDeflection(); |
Float_t GetDeflection(); |
| 126 |
Float_t GetDEDX(); |
Float_t GetDEDX(); |
| 127 |
|
Float_t GetDEDX(Int_t ip){if( !(xgood[ip]+ygood[ip]) ) return 0; return (dedx_x[ip]+dedx_y[ip])/(xgood[ip]+ygood[ip]);}; |
| 128 |
|
// sono un'imbecille... assegno xm e ym anche quando si tratta di un singolo |
| 129 |
|
// non posso quindi usare xm e ym per dire se una vista e` inclusa nel fit o no |
| 130 |
|
/* Bool_t XGood(int ip){ return xm[ip] != -100.;}; |
| 131 |
|
Bool_t YGood(int ip){ return ym[ip] != -100.;};*/ |
| 132 |
|
Bool_t XGood(int ip){ return xgood[ip]==1;}; |
| 133 |
|
Bool_t YGood(int ip){ return ygood[ip]==1;}; |
| 134 |
|
|
| 135 |
|
TrkCluster *GetClusterX(int ip){TrkCluster *pt = (TrkCluster*)(clx->At(ip)); return pt;}; |
| 136 |
|
TrkCluster *GetClusterY(int ip){TrkCluster *pt = (TrkCluster*)(cly->At(ip)); return pt;}; |
| 137 |
|
|
| 138 |
TrkTrack* GetTrkTrack(){return this;}; |
TrkTrack* GetTrkTrack(){return this;}; |
| 139 |
|
|
| 140 |
friend class TrkLevel2; |
friend class TrkLevel2; |
| 141 |
|
|
| 142 |
ClassDef(TrkTrack,1); |
ClassDef(TrkTrack,2); |
| 143 |
|
|
| 144 |
}; |
}; |
| 145 |
/** |
/** |
| 150 |
class TrkSinglet : public TObject { |
class TrkSinglet : public TObject { |
| 151 |
|
|
| 152 |
private: |
private: |
| 153 |
|
|
| 154 |
|
|
| 155 |
public: |
public: |
| 156 |
|
|
| 157 |
|
TRef cls; |
| 158 |
|
|
| 159 |
int plane; ///<plane |
int plane; ///<plane |
| 160 |
float coord[2]; ///<coordinate (on sensor 1 and 2) |
float coord[2]; ///<coordinate (on sensor 1 and 2) |
| 164 |
TrkSinglet(const TrkSinglet&); |
TrkSinglet(const TrkSinglet&); |
| 165 |
|
|
| 166 |
void Dump(); |
void Dump(); |
| 167 |
|
|
| 168 |
|
TrkCluster *GetCluster(){TrkCluster *pt = (TrkCluster*)cls.GetObject(); return pt;}; |
| 169 |
|
|
| 170 |
friend class TrkLevel2; |
friend class TrkLevel2; |
| 171 |
|
|
| 172 |
ClassDef(TrkSinglet,1); |
ClassDef(TrkSinglet,2); |
| 173 |
|
|
| 174 |
}; |
}; |
| 175 |
|
|
| 192 |
|
|
| 193 |
public: |
public: |
| 194 |
|
|
| 195 |
Int_t good2; |
Int_t good[12]; ///< event status |
| 196 |
Int_t crc[12]; |
// Int_t good2; |
| 197 |
|
// Int_t crc[12]; |
| 198 |
|
|
| 199 |
TClonesArray *Track; ///< fitted tracks |
TClonesArray *Track; ///< fitted tracks |
| 200 |
TClonesArray *SingletX; ///< x singlets |
TClonesArray *SingletX; ///< x singlets |
| 209 |
|
|
| 210 |
void Dump(); |
void Dump(); |
| 211 |
void SetFromLevel2Struct(cTrkLevel2 *); |
void SetFromLevel2Struct(cTrkLevel2 *); |
| 212 |
void GetLevel2Struct(cTrkLevel2 *) const; |
void SetFromLevel2Struct(cTrkLevel2 *, TrkLevel1 *); |
| 213 |
|
void GetLevel2Struct(cTrkLevel2 *) const; |
| 214 |
void Clear(); |
void Clear(); |
| 215 |
void LoadField(TString); |
void LoadField(TString); |
| 216 |
Float_t GetZTrk(Int_t); |
Float_t GetZTrk(Int_t); |
| 238 |
TrkLevel2* GetTrkLevel2(){return this;} |
TrkLevel2* GetTrkLevel2(){return this;} |
| 239 |
TClonesArray* GetTrackArray(){return Track;};///< returns pointer to the track array |
TClonesArray* GetTrackArray(){return Track;};///< returns pointer to the track array |
| 240 |
|
|
| 241 |
ClassDef(TrkLevel2,1); |
ClassDef(TrkLevel2,2); |
| 242 |
|
|
| 243 |
}; |
}; |
| 244 |
|
|
|
|
|
|
|
|
| 245 |
#endif |
#endif |