]>
Commit | Line | Data |
---|---|---|
8230f242 | 1 | #ifndef ALITRDCLUSTERIZER_H |
2 | #define ALITRDCLUSTERIZER_H | |
f7336fa3 | 3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id$ */ | |
7 | ||
8 | #include <TNamed.h> | |
bdbb05bb | 9 | #include <TObjArray.h> |
793ff80c | 10 | |
11 | class TFile; | |
bdbb05bb | 12 | class TTree; |
88cb7938 | 13 | class AliRunLoader; |
bdbb05bb | 14 | class AliTRD; |
c85a4951 | 15 | class AliTRDcluster; |
f7336fa3 | 16 | /////////////////////////////////////////////////////// |
17 | // Finds and handles cluster // | |
18 | /////////////////////////////////////////////////////// | |
19 | ||
20 | class AliTRDclusterizer : public TNamed { | |
21 | ||
22 | public: | |
23 | ||
24 | AliTRDclusterizer(); | |
25 | AliTRDclusterizer(const Text_t* name, const Text_t* title); | |
dd9a6ee3 | 26 | AliTRDclusterizer(const AliTRDclusterizer &c); |
8230f242 | 27 | virtual ~AliTRDclusterizer(); |
dd9a6ee3 | 28 | AliTRDclusterizer &operator=(const AliTRDclusterizer &c); |
29 | ||
e0d47c25 | 30 | virtual void Copy(TObject &c) const; |
88cb7938 | 31 | virtual Bool_t Open(const Char_t *name, Int_t nEvent = 0); |
32 | ||
33 | virtual Bool_t OpenInput(Int_t nEvent = 0); | |
34 | virtual Bool_t OpenOutput(); | |
35 | virtual Bool_t MakeClusters() = 0; | |
36 | virtual Bool_t WriteClusters(Int_t det); | |
a5cadd36 | 37 | void SetVerbose(Int_t v = 1) { fVerbose = v; }; |
f7336fa3 | 38 | |
bdbb05bb | 39 | TObjArray* RecPoints() {if (!fRecPoints) fRecPoints = new TObjArray(400); return fRecPoints;} |
3551db50 | 40 | virtual AliTRDcluster * AddCluster(Double_t *pos, Int_t timebin, Int_t det, Double_t amp, Int_t *tracks |
828b670e | 41 | , Double_t *sig, Int_t iType, Float_t center = 0); |
bdbb05bb | 42 | void ResetRecPoints() {if (fRecPoints) fRecPoints->Delete();} |
43 | ||
f7336fa3 | 44 | protected: |
45 | ||
88719a08 | 46 | Double_t CalcXposFromTimebin(Float_t timebin, Int_t idet, Int_t col, Int_t row); |
3551db50 | 47 | |
a5cadd36 | 48 | AliRunLoader *fRunLoader; //! Run Loader |
88cb7938 | 49 | |
5443e65e | 50 | TTree *fClusterTree; //! Tree with the cluster |
3e1a3ad8 | 51 | |
bdbb05bb | 52 | TObjArray* fRecPoints; //! Array of clusters |
5443e65e | 53 | Int_t fVerbose; // Sets the verbose level |
f7336fa3 | 54 | |
5443e65e | 55 | ClassDef(AliTRDclusterizer,3) // TRD-Cluster manager base class |
f7336fa3 | 56 | |
57 | }; | |
58 | ||
f7336fa3 | 59 | #endif |