HARPO  5.1.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
HarpoClustering.h
Go to the documentation of this file.
1  #ifndef HARPOCLUSTERING_H
2 #define HARPOCLUSTERING_H
3 
5 //
6 // HarpoClustering
7 //
8 // Clustering algorithm
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 "TCanvas.h"
18 #include "TGraphErrors.h"
19 
20 class HarpoClustering : public HarpoAnalyse {
21 
22  public:
23 
25 
26  void Init();
27  void Save(char *mode=NULL);
28  void process();
29  void FindCluster(HarpoDccMap* m, Int_t type, Int_t plane);
30  void print();
31 
32  void SetThr(Double_t val){fThr = val;}
33  void SetNoiseThr(Double_t val){fNoiseThr = val;}
34 
35  void SetCanvas(TVirtualPad* c0, TVirtualPad* c1){fCanvas[0] = c0; fCanvas[1] = c1;}
36  void SetHist(TH2F* h0, TH2F* h1){fHist[0] = h0; fHist[1] = h1;}
37 
38  void DisplayAnalysis(TRootEmbeddedCanvas* ecTab, TGListBox* infobox);
39 
40  private:
41 
42  Int_t fBadCh[NALL];
43  Double_t fThr;
44  Double_t fNoiseThr;
45  Int_t fNcl;
46  Int_t fNCcl;
47  Int_t fNTcl;
48  Int_t fTmin;
49  Int_t fTmax;
50  Int_t fXmin;
51  Int_t fXmax;
52  Double_t fXstart;
53  Double_t fTstart;
54  Double_t fQtot;
55 
56  TVirtualPad* fCanvas[2];
57  TH2F* fHist[2];
58 
59  ClassDef(HarpoClustering,1) //Run AnalysePrint
60 };
61 
62 #endif
#define NALL
Definition: HarpoDccMap.h:15
void FindCluster(HarpoDccMap *m, Int_t type, Int_t plane)
Cluster finder.
TVirtualPad * fCanvas[2]
A virtual class which define intrafece between HARPO Reader and Event Analysis code.
Definition: HarpoAnalyse.h:47
void DisplayAnalysis(TRootEmbeddedCanvas *ecTab, TGListBox *infobox)
void SetHist(TH2F *h0, TH2F *h1)
void Save(char *mode=NULL)
static int type
unpacked dcc data The class contains the data map for DCC or Feminos The data is stored as a 2D TMatr...
Definition: HarpoDccMap.h:29
void SetNoiseThr(Double_t val)
Int_t fBadCh[NALL]
void SetCanvas(TVirtualPad *c0, TVirtualPad *c1)
void SetThr(Double_t val)
Clustering algorithm, runs on RAW data (HarpoMap), produces HarpoRecoClusters objects.