00001
00004 #ifndef StiDebug_H
00005 #define StiDebug_H 1
00006 #include "TDataSet.h"
00007 #include "TArrayF.h"
00008
00012 class StiKalmanTrack;
00013 class TH1;
00014 class TObjArray;
00015
00016 class StiDebug
00017 {
00018 public:
00019 static void Break(int kase);
00020 static void FpeOn();
00021 static void show(StiKalmanTrack *kt);
00022 static void Init();
00023 static void Finish();
00024 static void hist (const char *name,double val);
00025 static int tally(const char *name,int val=1);
00026 static int iFlag(const char *flagName, int dflt=0);
00027 static double dFlag(const char *flagName, double dflt=0);
00028 private:
00029
00030 static TObjArray *mgHist;
00031 static TObjArray *mgTally;
00032
00033 };
00034
00035
00036 class StiAux_t {
00037 public:
00038 double resY() const {return xnl[1]-xhl[1];}
00039 double resZ() const {return xnl[2]-xhl[2];}
00040 double difY() const {return unl[1]-xhl[1];}
00041 double difZ() const {return unl[2]-xhl[2];}
00042
00043
00044 public:
00045
00046 float xnl[3];
00047 float xhl[3];
00048 float unl[3];
00049 float ca;
00050 float nYY; float nZZ;
00051 float hYY; float hZZ;
00052 float uYY; float uZZ;
00053
00054
00055 float xng[3];
00056 float xhg[3];
00057 float psi;
00058 float dip;
00059
00060
00061 float rho;
00062 float chi2;
00063
00064 float reserv[10];
00065 };
00066
00067 class StiAux : public TDataSet
00068 {
00069 public:
00070 StiAux();
00071 StiAux_t* Get(int id) const;
00072 int AddIt(StiAux_t *add);
00073 int GetN() const {return fN;}
00074 void PrintIt(int id);
00075 public:
00076 int fN;
00077 TArrayF fArr;
00078 ClassDef(StiAux,1)
00079
00080 };
00081 #endif
00082