--- DarthVader/TrackerLevel2/inc/TrkLevel2.h 2007/01/16 10:03:49 1.16 +++ DarthVader/TrackerLevel2/inc/TrkLevel2.h 2007/03/29 17:06:39 1.23 @@ -11,7 +11,8 @@ #include #include -#include +//#include +#include #include // z-coordinate of track state-vector reference-plane @@ -87,6 +88,7 @@ TRefArray *clx; TRefArray *cly; +/* float al[5]; /// 0;}; + Bool_t YGood(int ip){ return ygood[ip]> 0;}; + void SetMeasure(double *xmeas, double *ymeas, double *zmeas); void SetResolution(double *rx, double *ry); @@ -144,12 +147,18 @@ void LoadField(TString s); void Fit(double pfixed, int& fail, int iprint); void FitReset(); + void SetTrackingMode(int trackmode); + void SetPrecisionFactor(double fact); + void SetStepMin(int istepmin); void FillMiniStruct(cMini2track&); void SetFromMiniStruct(cMini2track*); - TrkCluster *GetClusterX(int ip){TrkCluster *pt = (TrkCluster*)(clx->At(ip)); return pt;}; - TrkCluster *GetClusterY(int ip){TrkCluster *pt = (TrkCluster*)(cly->At(ip)); return pt;}; + 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;}; @@ -230,10 +239,15 @@ 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 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;};