]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PMD/AliPMDClusterFinder.h
Channel kHardMuons added.
[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;
01709453 33class AliPMDcluster;
34class AliPMDrecpoint;
35
091a17ea 36//using namespace std;
01709453 37
38class AliPMDClusterFinder
39{
40 protected:
41 AliRunLoader *fRunLoader;
42 AliRun *gAlice;
43 AliDetector *PMD; /* Get pointers to Alice detectors
44 and Hits containers */
45 AliLoader *pmdloader;
46
47 TTree *treeD;
48 TTree *treeR;
49
50 TClonesArray *fDigits;
51 TClonesArray *fRecpoints;
52
53 Int_t fNpoint;
54 Int_t fDetNo;
55
56 static const Int_t fTotSM = 27;
57 static const Int_t fNCell = 72;
58 Float_t fCPV[fTotSM][fNCell][fNCell];
59 Float_t fPMD[fTotSM][fNCell][fNCell];
60
61 public:
62
63 AliPMDClusterFinder();
64 virtual ~AliPMDClusterFinder();
65
66 void OpengAliceFile(char * /* galice.root */, Option_t * /* option */);
67
68 void Digits2RecPoints(Int_t /* ievt */);
69 void AddRecPoint(Float_t * /* clusdata */);
70 void ResetCellADC();
71 void ResetRecpoint();
72 void UnLoad(Option_t * /* option */);
73
74 ClassDef(AliPMDClusterFinder,1)
75};
76#endif
77