]>
Commit | Line | Data |
---|---|---|
dd9a6ee3 | 1 | #ifndef ALITRDCLUSTERIZERV1_H |
2 | #define ALITRDCLUSTERIZERV1_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 | ||
f7336fa3 | 8 | #include "AliTRDclusterizer.h" |
9 | ||
10 | /////////////////////////////////////////////////////// | |
11 | // Finds and handles cluster (slow simulation) // | |
12 | /////////////////////////////////////////////////////// | |
13 | ||
793ff80c | 14 | class AliTRDdigitsManager; |
15 | ||
f7336fa3 | 16 | class AliTRDclusterizerV1 : public AliTRDclusterizer { |
17 | ||
18 | public: | |
19 | ||
20 | AliTRDclusterizerV1(); | |
21 | AliTRDclusterizerV1(const Text_t* name, const Text_t* title); | |
dd9a6ee3 | 22 | AliTRDclusterizerV1(const AliTRDclusterizerV1 &c); |
8230f242 | 23 | virtual ~AliTRDclusterizerV1(); |
dd9a6ee3 | 24 | AliTRDclusterizerV1 &operator=(const AliTRDclusterizerV1 &c); |
f7336fa3 | 25 | |
43da34c0 | 26 | virtual void Copy(TObject &c); |
f7336fa3 | 27 | virtual void Init(); |
793ff80c | 28 | virtual Bool_t MakeClusters(); |
f7336fa3 | 29 | virtual Bool_t ReadDigits(); |
db30bf0f | 30 | void UseLUT() { fUseLUT = kTRUE; }; |
31 | void UseCOG() { fUseLUT = kFALSE; }; | |
f7336fa3 | 32 | |
db30bf0f | 33 | void SetClusMaxThresh(Int_t thresh) { fClusMaxThresh = thresh; }; |
34 | void SetClusSigThresh(Int_t thresh) { fClusSigThresh = thresh; }; | |
f7336fa3 | 35 | |
db30bf0f | 36 | Int_t GetClusMaxThresh() const { return fClusMaxThresh; }; |
37 | Int_t GetClusSigThresh() const { return fClusSigThresh; }; | |
f7336fa3 | 38 | |
39 | protected: | |
db30bf0f | 40 | |
41 | enum { | |
42 | kNlut = 128 // Dimension of the lookup table | |
43 | }; | |
f7336fa3 | 44 | |
6f1e466d | 45 | AliTRDdigitsManager *fDigitsManager; //! TRD digits manager |
f7336fa3 | 46 | |
db30bf0f | 47 | Int_t fClusMaxThresh; // Threshold value for cluster maximum |
48 | Int_t fClusSigThresh; // Threshold value for cluster signal | |
49 | Bool_t fUseLUT; // Switch for the lookup table method | |
50 | Float_t fLUT[kNlut]; // The lookup table | |
f7336fa3 | 51 | |
52 | private: | |
53 | ||
54 | virtual Float_t Unfold(Float_t eps, Float_t *padSignal); | |
55 | virtual Float_t PadResponse(Float_t x); | |
56 | ||
3e1a3ad8 | 57 | ClassDef(AliTRDclusterizerV1,2) // TRD-Cluster finder, slow simulator |
f7336fa3 | 58 | |
59 | }; | |
60 | ||
61 | #endif |