cluster finder
[u/mrichter/AliRoot.git] / PMD / AliPMDClusterFinder.h
CommitLineData
01709453 1#ifndef PMDClusterFinder_H
2#define PMDClusterFinder_H
3//-----------------------------------------------------//
4// //
5// Date : August 05 2003 //
6// This reads the file PMD.digits.root(TreeD), //
7// calls the Clustering algorithm and stores the //
8// clustering output in PMD.RecPoints.root(TreeR) //
9// //
10//-----------------------------------------------------//
11
12#include <Riostream.h>
13#include <stdlib.h>
14#include <math.h>
15#include <TMath.h>
16#include <vector>
17#include <algorithm>
18
19class TClonesArray;
20class TFile;
21class TObjArray;
22class TTree;
23class TNtuple;
24
25class AliLoader;
26class AliRunLoader;
27class AliRun;
28class AliDetector;
29class AliHeader;
30
31class AliPMDdigit;
32class AliPMDClustering;
33class AliPMDContainer;
34class AliPMDcluster;
35class AliPMDrecpoint;
36
37using namespace std;
38
39class AliPMDClusterFinder
40{
41 protected:
42 AliRunLoader *fRunLoader;
43 AliRun *gAlice;
44 AliDetector *PMD; /* Get pointers to Alice detectors
45 and Hits containers */
46 AliLoader *pmdloader;
47
48 TTree *treeD;
49 TTree *treeR;
50
51 TClonesArray *fDigits;
52 TClonesArray *fRecpoints;
53
54 Int_t fNpoint;
55 Int_t fDetNo;
56
57 static const Int_t fTotSM = 27;
58 static const Int_t fNCell = 72;
59 Float_t fCPV[fTotSM][fNCell][fNCell];
60 Float_t fPMD[fTotSM][fNCell][fNCell];
61
62 public:
63
64 AliPMDClusterFinder();
65 virtual ~AliPMDClusterFinder();
66
67 void OpengAliceFile(char * /* galice.root */, Option_t * /* option */);
68
69 void Digits2RecPoints(Int_t /* ievt */);
70 void AddRecPoint(Float_t * /* clusdata */);
71 void ResetCellADC();
72 void ResetRecpoint();
73 void UnLoad(Option_t * /* option */);
74
75 ClassDef(AliPMDClusterFinder,1)
76};
77#endif
78