HARPO  5.1.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
HarpoHoughTracking.h
Go to the documentation of this file.
1 #ifndef HARPOHOUGHTRACKING_H
2 #define HARPOHOUGHTRACKING_H
3 
5 //
6 // HarpoHoughTracking
7 //
8 // Dummy analise which print all run events.
9 //
10 
11 #include "TObject.h"
12 #include "HarpoAnalyse.h"
13 #include "HarpoEvent.h"
14 #include "TProfile.h"
15 #include "TH1F.h"
16 #include "TH2F.h"
17 #include "TMath.h"
18 #include "TVirtualPad.h"
19 #include "TGraphErrors.h"
20 #include "TGNumberEntry.h"
21 
22 #define NTRACK 100
23 #define NCLUMAX 5000
24 //#define ahough -5
25 //#define bhough 200
26 //#define chough -4
27 //#define dhough 4
28 //#define facHough 6
29 
31 
32  public:
33 
35 
36  void Init();
37  void InitTrack();
38  void Save(char *mode=NULL);
39  void process();
40  void FindPairNew(Int_t Plan, Int_t trackId, Double_t &rho, Double_t &theta, Double_t &sigRho, Double_t &sigTheta);
41  void FindTrack(Int_t plane);
42  void print();
43 
45  Double_t Qtrack;
46  // Int_t mtrack;
47 
48  // void SetCanvas(TVirtualPad* c){fCanvas = c;}
49  // void SetTracksCanvas(TVirtualPad* c){fTracksCanvas = c;}
50 
51  void SetNClmin(Int_t val){fNClmin = val;}
52  void SetNClmax(Int_t val){fNClmax = val;}
53  void SetQmin(Int_t val, Int_t type = 0){fQmin[type] = val;}
54 
55  TGraph* GetGraphRoute(Int_t itr){return fGraphRoute[itr];}
56 
57  void ConfigFrame(TGMainFrame* fMain, Int_t id);
58  void SetConfig();
59  void DisplayAnalysis(TRootEmbeddedCanvas* ecTab, TGListBox* info);
60 
61  private:
62 
63  // TVirtualPad* fCanvas;
64  // TVirtualPad* fTracksCanvas;
65 
66  // Not standard, only type int allowed inside of class defs!!!
67  // static const Double_t kfWidthRho = 200;
68  // static const Double_t kfWidthTheta = 4;
69  // static const Double_t kfFacHough = 4;
70  static const Double_t kfWidthRho;
71  static const Double_t kfWidthTheta;
72  static const Double_t kfFacHough;
73 
74  Double_t fCutoffHough;
75  Double_t RouteHoughTight;
76  Double_t RouteHoughLoose;
77  Double_t RestCluster;
78  Double_t fSigmaMaxRebin;
79  Int_t fNbinr;
80  Int_t fNbint;
81  Int_t fNClmin;
82  Int_t fNClmax;
86  Int_t fMinPairs;
87  Double_t fDistMin;
88  Double_t fNclMin;
89  // Int_t fTrackingType;
90 
91  TH1F* hSigmaRho;
92  TH1F* hSigmaTheta;
95  TGraph* fGraphRoute[NTRACK];
96  TH2F* fHist[2][5][5];
97  Double_t fSigmaRhoPeak[2][5][5];
98  Double_t fSigmaThetaPeak[2][5][5];
99  Double_t fNpairsPeak[2][5][5];
100  Int_t fNloopMax;
101  Int_t fTrackIdMax;
102  Int_t fDisplay;
103  Bool_t fSave;
104 
105  TGNumberEntry* fChooseWminC;
106  TGNumberEntry* fChooseWmaxC;
107  TGNumberEntry* fChooseQminC;
108  TGNumberEntry* fChooseWminT;
109  TGNumberEntry* fChooseWmaxT;
110  TGNumberEntry* fChooseQminT;
111  TGNumberEntry* fChooseNminPairs;
112  TGNumberEntry* fChooseCutoffHough;
113  TGNumberEntry* fChooseRouteHoughTight;
114  TGNumberEntry* fChooseRouteHoughLoose;
115  TGNumberEntry* fChooseDistMin;
116  TGNumberEntry* fChooseNclMin;
117  TGNumberEntry* fChooseSigmaMaxRebin;
118  TGCheckButton* fCheckSave;
119 
120  ClassDef(HarpoHoughTracking,1) //Run AnalysePrint
121 };
122 
123 #endif
static const Double_t kfWidthTheta
#define NTRACK
void SetQmin(Int_t val, Int_t type=0)
void SetNClmax(Int_t val)
Int_t fWmin[NCLUSTERTYPES]
static const Double_t kfWidthRho
void SetNClmin(Int_t val)
TGraph * fGraphRoute[NTRACK]
TGNumberEntry * fChooseWminC
TGNumberEntry * fChooseWminT
void FindPairNew(Int_t Plan, Int_t trackId, Double_t &rho, Double_t &theta, Double_t &sigRho, Double_t &sigTheta)
Ovreloaded medod whic do all job.
A virtual class which define intrafece between HARPO Reader and Event Analysis code.
Definition: HarpoAnalyse.h:47
Int_t iclusttrack[NCLUMAX]
Redefine empty default.
#define NCLUMAX
TGNumberEntry * fChooseQminT
TGNumberEntry * fChooseQminC
void DisplayAnalysis(TRootEmbeddedCanvas *ecTab, TGListBox *info)
Double_t fSigmaRhoPeak[2][5][5]
TGNumberEntry * fChooseNclMin
Int_t fQmin[NCLUSTERTYPES]
void Save(char *mode=NULL)
TGNumberEntry * fChooseWmaxT
static int type
void FindTrack(Int_t plane)
static const Double_t kfFacHough
TGNumberEntry * fChooseCutoffHough
TGNumberEntry * fChooseNminPairs
TH2F * fHist[2][5][5]
void ConfigFrame(TGMainFrame *fMain, Int_t id)
TGNumberEntry * fChooseWmaxC
Double_t fNpairsPeak[2][5][5]
TGNumberEntry * fChooseRouteHoughTight
TGNumberEntry * fChooseRouteHoughLoose
TGNumberEntry * fChooseDistMin
#define NCLUSTERTYPES
Int_t fWmax[NCLUSTERTYPES]
A virtual class which define intrafece between HARPO Reader and Event Analysis code.
TGCheckButton * fCheckSave
TGraph * GetGraphRoute(Int_t itr)
TGNumberEntry * fChooseSigmaMaxRebin
Double_t fSigmaThetaPeak[2][5][5]