]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PMD/AliPMDClusterFinder.h
zpos is positive
[u/mrichter/AliRoot.git] / PMD / AliPMDClusterFinder.h
CommitLineData
01709453 1#ifndef PMDClusterFinder_H
2#define PMDClusterFinder_H
ed228cbc 3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
01709453 5//-----------------------------------------------------//
6// //
7// Date : August 05 2003 //
8// This reads the file PMD.digits.root(TreeD), //
9// calls the Clustering algorithm and stores the //
10// clustering output in PMD.RecPoints.root(TreeR) //
11// //
12//-----------------------------------------------------//
13
14#include <Riostream.h>
15#include <stdlib.h>
16#include <math.h>
17#include <TMath.h>
18#include <vector>
19#include <algorithm>
20
21class TClonesArray;
22class TFile;
23class TObjArray;
24class TTree;
25class TNtuple;
26
27class AliLoader;
28class AliRunLoader;
29class AliRun;
30class AliDetector;
31class AliHeader;
32
33class AliPMDdigit;
34class AliPMDClustering;
01709453 35class AliPMDcluster;
ed228cbc 36class AliPMDrecpoint1;
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;
ed228cbc 55 Int_t fDebug;
56 Float_t fEcut;
01709453 57
ed228cbc 58 static const Int_t fRow = 48;
59 static const Int_t fCol = 96;
60 Double_t fCellADC[fRow][fCol];
01709453 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 */);
ed228cbc 70 void SetCellEdepCut(Float_t /* ecut */);
71 void SetDebug(Int_t /* idebug */);
01709453 72 void AddRecPoint(Float_t * /* clusdata */);
73 void ResetCellADC();
74 void ResetRecpoint();
75 void UnLoad(Option_t * /* option */);
76
ed228cbc 77 ClassDef(AliPMDClusterFinder,2)
01709453 78};
79#endif
80