--- DarthVader/TrackerLevel2/inc/TrkLevel2.h 2006/07/21 11:03:14 1.6 +++ DarthVader/TrackerLevel2/inc/TrkLevel2.h 2007/03/15 12:17:09 1.20 @@ -8,8 +8,12 @@ #include #include #include +#include +#include -#include +//#include +#include +#include // z-coordinate of track state-vector reference-plane #define ZINI 23.5 @@ -52,12 +56,15 @@ Trajectory(); Trajectory(int n); Trajectory(int n, float* pz); + ~Trajectory(){Delete();}; void Dump(); + void Delete(); + int DoTrack2(float* al); float GetLength(){float l=0; for(int i=0; i 0;}; + Bool_t YGood(int ip){ return ygood[ip]> 0;}; + + + void SetMeasure(double *xmeas, double *ymeas, double *zmeas); + void SetResolution(double *rx, double *ry); + void SetGood(int *xg, int *yg); + void LoadField(TString s); + void Fit(double pfixed, int& fail, int iprint); + void FitReset(); + void SetTrackingMode(int trackmode); + void FillMiniStruct(cMini2track&); + void SetFromMiniStruct(cMini2track*); + + TrkCluster *GetClusterX(int ip); + TrkCluster *GetClusterY(int ip); + + Int_t GetClusterX_ID(int ip){return xgood[ip];}; + Int_t GetClusterY_ID(int ip){return ygood[ip];}; + TrkTrack* GetTrkTrack(){return this;}; friend class TrkLevel2; - ClassDef(TrkTrack,1); + ClassDef(TrkTrack,2); }; /** @@ -130,8 +172,11 @@ class TrkSinglet : public TObject { private: + public: + + TRef cls; int plane; ///GetEntries();} ///< number of stored track int nclsx(){return SingletX->GetEntries();} ///< number of x singlets int nclsy(){return SingletY->GetEntries();} ///< number of y singlets void Dump(); - void SetFromLevel2Struct(cTrkLevel2 *); + void SetFromLevel2Struct(cTrkLevel2 *, TrkLevel1 *); + void SetFromLevel2Struct(cTrkLevel2 *s2){ SetFromLevel2Struct(s2, NULL); }; + void SetFromLevel2Struct(TrkLevel1 *l1) { SetFromLevel2Struct(&level2event_, l1); }; + void SetFromLevel2Struct() { SetFromLevel2Struct(&level2event_); }; void GetLevel2Struct(cTrkLevel2 *) const; - void Clear(); void LoadField(TString); + float GetBX(float*); + float GetBY(float*); + float GetBZ(float*); Float_t GetZTrk(Int_t); Float_t GetXTrkLeft(){return XTRKL;}; Float_t GetXTrkRight(){return XTRKR;}; @@ -198,21 +257,21 @@ TrkTrack *GetStoredTrack(int i); Int_t GetSeqNo(Int_t i) {return (((TrkTrack *)Track->At(i))->seqno);}; ///< Returns track sequential number // TClonesArray *GetTracks_Chi2Sorted(); - TClonesArray *GetTracks_NFitSorted(); - TClonesArray *GetTracks(); - +// TClonesArray *GetTracks_NFitSorted(); +// TClonesArray *GetTracks(); + TRefArray *GetTracks_NFitSorted(); + TRefArray *GetTracks(){return this->GetTracks_NFitSorted();}; + // int GetNTracks(){return this->GetTracks()->GetEntries();} - Int_t GetNTracks(); - TrkTrack* GetTrack(int i); + Int_t GetNTracks(); + TrkTrack* GetTrack(int i); TrkTrack* GetTrackImage(int i); - + TrkLevel2* GetTrkLevel2(){return this;} TClonesArray* GetTrackArray(){return Track;};///< returns pointer to the track array - ClassDef(TrkLevel2,1); + ClassDef(TrkLevel2,2); }; - - #endif