]>
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 | ||
6d50f529 | 8 | //////////////////////////////////////////////////////////////////////////// |
9 | // // | |
10 | // TRD cluster finder base class // | |
11 | // // | |
12 | //////////////////////////////////////////////////////////////////////////// | |
13 | ||
f7336fa3 | 14 | #include <TNamed.h> |
793ff80c | 15 | |
16 | class TFile; | |
bdbb05bb | 17 | class TTree; |
6d50f529 | 18 | class TObjArray; |
19 | ||
88cb7938 | 20 | class AliRunLoader; |
6d50f529 | 21 | |
bdbb05bb | 22 | class AliTRD; |
c85a4951 | 23 | class AliTRDcluster; |
f7336fa3 | 24 | |
25 | class AliTRDclusterizer : public TNamed { | |
26 | ||
27 | public: | |
28 | ||
29 | AliTRDclusterizer(); | |
30 | AliTRDclusterizer(const Text_t* name, const Text_t* title); | |
dd9a6ee3 | 31 | AliTRDclusterizer(const AliTRDclusterizer &c); |
6d50f529 | 32 | virtual ~AliTRDclusterizer(); |
dd9a6ee3 | 33 | AliTRDclusterizer &operator=(const AliTRDclusterizer &c); |
34 | ||
6d50f529 | 35 | virtual void Copy(TObject &c) const; |
36 | virtual Bool_t Open(const Char_t *name, Int_t nEvent = 0); | |
37 | virtual Bool_t OpenInput(Int_t nEvent = 0); | |
38 | virtual Bool_t OpenOutput(); | |
39 | virtual Bool_t MakeClusters() = 0; | |
40 | virtual Bool_t WriteClusters(Int_t det); | |
41 | void ResetRecPoints(); | |
f7336fa3 | 42 | |
6d50f529 | 43 | TObjArray *RecPoints(); |
44 | virtual AliTRDcluster *AddCluster(Double_t *pos, Int_t timebin, Int_t det | |
45 | , Double_t amp, Int_t *tracks | |
46 | , Double_t *sig, Int_t iType, Float_t center = 0); | |
bdbb05bb | 47 | |
f7336fa3 | 48 | protected: |
49 | ||
6d50f529 | 50 | Double_t CalcXposFromTimebin(Float_t timebin, Int_t idet, Int_t col, Int_t row); |
3551db50 | 51 | |
6d50f529 | 52 | AliRunLoader *fRunLoader; //! Run Loader |
53 | TTree *fClusterTree; //! Tree with the cluster | |
54 | TObjArray *fRecPoints; //! Array of clusters | |
f7336fa3 | 55 | |
6d50f529 | 56 | ClassDef(AliTRDclusterizer,4) // TRD-Cluster manager base class |
f7336fa3 | 57 | |
58 | }; | |
59 | ||
f7336fa3 | 60 | #endif |