StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StiDebug.h
Go to the documentation of this file.
1 
4 #ifndef StiDebug_H
5 #define StiDebug_H 1
6 #include "TDataSet.h"
7 #include "TArrayF.h"
8 
12 class StiKalmanTrack;
13 class TH1;
14 class TObjArray;
15 
16 class StiDebug
17 {
18 public:
19 static void Break(int kase);
20 static void FpeOn();
21 static int Debug();
22 static void SetDebug(int idb) {mgDebug=idb;};
23 static void Count(const char *key,double val);
24 static void Count(const char *key,const char *val);
25 static void Count(const char *key,const char *val,double valy);
26 static void Count(const char *key,double val,double left,double rite);
27 static void Count(const char *key,double valx,double valy);
28 static void Count(const char *key,double valx, double valy
29  ,double leftx,double ritex
30  ,double lefty,double ritey);
31 static void Sumary(int nHist=4);
32 static void show(StiKalmanTrack *kt);
33 static void Init();
34 static void Finish();
35 static void tally(const char *name,int val=1);
36 static int iFlag(const char *flagName, int dflt=0);
37 static double dFlag(const char *flagName, double dflt=0);
38 private:
39 static void Draw(int nH,TH1** H);
40 private:
41 
42 static int mgDebug;
43 static int mgRecov;
44 static int mgCheck;
45 #if 0
46 ClassDef(StiDebug,0)
47 #endif
48 
49 };
50 
51 
52 class StiAux_t {
53 public:
54 double resY() const {return xnl[1]-xhl[1];}
55 double resZ() const {return xnl[2]-xhl[2];}
56 double difY() const {return unl[1]-xhl[1];}
57 double difZ() const {return unl[2]-xhl[2];}
58 
59 
60 public:
61  // LOCAL FRAME
62 float xnl[3]; //X,Y,Z of Node.
63 float xhl[3]; //X,Y,Z of Hit.
64 float unl[3]; //X,Y,Z of Untouched Node.
65 float ca; //Cross angle
66 float nYY; float nZZ; //Y & Z errors of Node
67 float hYY; float hZZ; //Y & Z errors of Hit
68 float uYY; float uZZ; //Y & Z errors of Untouched Node
69 
70  // GLOBAL FRAME
71 float xng[3]; //X,Y,Z of Node.
72 float xhg[3]; //X,Y,Z of Hit
73 float psi; //Psi angle
74 float dip; //Dip angle
75 
76  // INVARIANT
77 float rho; //Curvature
78 float chi2;
79 //reserv
80 float reserv[10];
81 };
82 
83 class StiAux : public TDataSet
84 {
85 public:
86  StiAux();
87 StiAux_t* Get(int id) const;
88 int AddIt(StiAux_t *add);
89 int GetN() const {return fN;}
90 void PrintIt(int id);
91 public:
92 int fN;
93 TArrayF fArr;
94 ClassDef(StiAux,1)
95 
96 };
97 #endif
98 
Definition of Kalman Track.