HARPO  5.1.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
HarpoKalmanFitting.h
Go to the documentation of this file.
1  #ifndef HARPOKALMANFITTING_H
2 #define HARPOKALMANFITTING_H
3 
5 //
6 // HarpoKalmanFitting
7 //
8 // Track fitting with Kalman filter
9 //
10 
11 #include "TObject.h"
12 #include "HarpoAnalyse.h"
13 #include "HarpoEvent.h"
14 #include "HarpoRecoEvent.h"
15 #include "HarpoKalman.h"
16 #include "TProfile.h"
17 #include "TH1F.h"
18 #include "TH2F.h"
19 #include "TCanvas.h"
20 #include "TPolyLine.h"
21 #include "TMatrixD.h"
22 #include "TGraphErrors.h"
23 
24 #define NTRACK 100
25 
26 
28 
29  public:
30 
31  virtual ~HarpoKalmanFitting() {}
32 
34 
35  void Init();
36  void Save(char *mode=NULL);
37  void process();
38  void print();
39 
40  TH1F* hNcl;
41  /* TGraph* GetGraph(Int_t i, Int_t plane = 0) { */
42  /* if(plane<0 || plane>1) return 0; */
43  /* if(fId[i][plane]<0) return 0; */
44  /* if(i>=0 && i<fNtr[plane]) return fGraphs[plane][fId[i][plane]]; */
45  /* //if(i>=0 && i<fNtr[plane]) return fGraphs[plane][i]; */
46  /* else return 0; */
47  /* } */
48  Int_t GetNtr(Int_t plane){if(plane<0 || plane>1) return 0; return fNtr[plane];}
49  Int_t GetId(Int_t i,Int_t plane) {return fId[i][plane];}
50 
51  private:
52 
53  Int_t InitPlane(TClonesArray* clArray, Int_t plane);
54  TMatrixD GetTrackEnd(TClonesArray* clArray, Int_t plane, Int_t iTr);
55  void FindTrack(TClonesArray* clArray, Int_t icl0, Int_t icl1, TMatrixD Corig, Int_t plane, Int_t &color);
56  Int_t FitTrack(TClonesArray* clArray, Int_t plane, HarpoRecoKalmanTracks* track);
57  // void SpliceTracks(Int_t plane);
58  Double_t GetQtrack(Int_t itr, Int_t plane);
59  Double_t GetQtracks(Int_t plane);
60 
61 
62  Int_t fId[NTRACK][2];
63  Double_t fQcommon[NTRACK][NTRACK];
64 
65 
67  TH2F* fHistQQmin;
68 
69  /* TMatrixD H; */
70  /* TMatrixD Ht; */
71  /* TMatrixD Q; */
72  /* TMatrixD G; */
73  /* TMatrixD V; */
74  /* TMatrixD I; */
75  /* TMatrixD Corig; */
76 
77  Int_t fNclMin;
78  Int_t fNclMin2;
79 
80 
81  ClassDef(HarpoKalmanFitting,1) //Run AnalysePrint
82 };
83 
84 #endif
#define NTRACK
TMatrixD GetTrackEnd(TClonesArray *clArray, Int_t plane, Int_t iTr)
A virtual class for Kalman tracking.
Definition: HarpoKalman.h:26
Double_t GetQtrack(Int_t itr, Int_t plane)
TH1F * hNcl
Redefine empty default.
A virtual class which define intrafece between HARPO Reader and Event Analysis code.
Int_t fId[NTRACK][2]
Int_t InitPlane(TClonesArray *clArray, Int_t plane)
HarpoRecoTracks object, Obtained with Kalman filter.
Int_t GetId(Int_t i, Int_t plane)
Int_t FitTrack(TClonesArray *clArray, Int_t plane, HarpoRecoKalmanTracks *track)
Double_t GetQtracks(Int_t plane)
Int_t fNtr[2]
Definition: HarpoKalman.h:72
Int_t GetNtr(Int_t plane)
Double_t fQcommon[NTRACK][NTRACK]
void FindTrack(TClonesArray *clArray, Int_t icl0, Int_t icl1, TMatrixD Corig, Int_t plane, Int_t &color)
void print()
Ovreloaded medod whic do all job.
void Save(char *mode=NULL)