8 |
#include <TObject.h> |
#include <TObject.h> |
9 |
#include <TObjArray.h> |
#include <TObjArray.h> |
10 |
#include <TClonesArray.h> |
#include <TClonesArray.h> |
11 |
|
#include <TRefArray.h> |
12 |
|
|
13 |
#include <TrkStruct.h> |
#include <TrkStruct.h> |
14 |
|
|
15 |
// z-coordinate of track state-vector reference-plane |
// z-coordinate of track state-vector reference-plane |
16 |
#define ZINI 23.5 |
#define ZINI 23.5 |
17 |
// upper and lower (mechanical) z-coordinate of the tracker |
// upper and lower (mechanical) z-coordinate of the tracker |
18 |
#define ZTRKUP 22.29 |
//#define ZTRKUP 22.29 |
19 |
#define ZTRKDW -22.22 |
//#define ZTRKDW -22.22 |
20 |
|
// (mechanical) z-coordinate of the tracker planes |
21 |
|
#define ZTRK6 -22.23 |
22 |
|
#define ZTRK5 -13.32 |
23 |
|
#define ZTRK4 -4.42 |
24 |
|
#define ZTRK3 4.48 |
25 |
|
#define ZTRK2 13.38 |
26 |
|
#define ZTRK1 22.28 |
27 |
|
// (mechanical) x/y-coordinates of magnet cavity |
28 |
|
#define XTRKL -8.1 |
29 |
|
#define XTRKR 8.1 |
30 |
|
#define YTRKL -6.6 |
31 |
|
#define YTRKR 6.6 |
32 |
|
|
33 |
/** |
/** |
34 |
* \brief Class to describe, by points, a particle trajectory in the apparatus. |
* \brief Class to describe, by points, a particle trajectory in the apparatus. |
163 |
class TrkLevel2 : public TObject { |
class TrkLevel2 : public TObject { |
164 |
|
|
165 |
private: |
private: |
166 |
|
|
167 |
|
// TRefArray *PhysicalTrack; ///< physical tracks (no image) - |
168 |
|
|
169 |
public: |
public: |
170 |
|
|
|
|
|
|
|
|
171 |
Int_t good2; |
Int_t good2; |
172 |
Int_t crc[12]; |
Int_t crc[12]; |
173 |
|
|
178 |
TrkLevel2(); |
TrkLevel2(); |
179 |
// TrkLevel2(cTrkLevel2 *); |
// TrkLevel2(cTrkLevel2 *); |
180 |
|
|
181 |
int ntrk() {return Track->GetEntries();} ///< number of stored track |
int ntrk() {return Track->GetEntries();} ///< number of stored track |
182 |
int nclsx(){return SingletX->GetEntries();} ///< number of x singlets |
int nclsx(){return SingletX->GetEntries();} ///< number of x singlets |
183 |
int nclsy(){return SingletY->GetEntries();} ///< number of y singlets |
int nclsy(){return SingletY->GetEntries();} ///< number of y singlets |
184 |
|
|
185 |
void Dump(); |
void Dump(); |
186 |
void FillCommonVar(cTrkLevel2 *); |
void SetFromLevel2Struct(cTrkLevel2 *); |
187 |
|
void GetLevel2Struct(cTrkLevel2 *) const; |
188 |
void Clear(); |
void Clear(); |
189 |
void LoadField(TString); |
void LoadField(TString); |
190 |
|
Float_t GetZTrk(Int_t); |
191 |
|
Float_t GetXTrkLeft(){return XTRKL;}; |
192 |
|
Float_t GetXTrkRight(){return XTRKR;}; |
193 |
|
Float_t GetYTrkLeft(){return YTRKL;}; |
194 |
|
Float_t GetYTrkRight(){return YTRKR;}; |
195 |
|
|
196 |
|
TrkSinglet *GetSingletX(int); |
197 |
|
TrkSinglet *GetSingletY(int); |
198 |
|
|
199 |
TrkTrack *GetStoredTrack(int i); |
TrkTrack *GetStoredTrack(int i); |
200 |
Int_t GetSeqNo(Int_t i) {return (((TrkTrack *)Track->At(i))->seqno);}; ///< Returns track sequential number |
Int_t GetSeqNo(Int_t i) {return (((TrkTrack *)Track->At(i))->seqno);}; ///< Returns track sequential number |
201 |
TClonesArray *GetTracks_Chi2Sorted(); |
// TClonesArray *GetTracks_Chi2Sorted(); |
202 |
TClonesArray *GetTracks_NFitSorted(); |
// TClonesArray *GetTracks_NFitSorted(); |
203 |
TClonesArray *GetTracks(); |
// TClonesArray *GetTracks(); |
204 |
|
TRefArray *GetTracks_NFitSorted(); |
205 |
|
TRefArray *GetTracks(){return this->GetTracks_NFitSorted();}; |
206 |
|
|
207 |
// int GetNTracks(){return this->GetTracks()->GetEntries();} |
// int GetNTracks(){return this->GetTracks()->GetEntries();} |
208 |
Int_t GetNTracks(); |
Int_t GetNTracks(); |