X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=TPC%2FAliTPCclusterer.h;h=06b8d218a650b5223e574779086e98adab19aebe;hb=6d237bb144ec870199552bf6b1059638f1873ff2;hp=0b12df79e0c477fb1b8ed3284a785e1a5e52a681;hpb=88cb7938ca21d4a80991d4e7aa564008c29340f7;p=u%2Fmrichter%2FAliRoot.git diff --git a/TPC/AliTPCclusterer.h b/TPC/AliTPCclusterer.h index 0b12df79e0c..06b8d218a65 100644 --- a/TPC/AliTPCclusterer.h +++ b/TPC/AliTPCclusterer.h @@ -6,41 +6,46 @@ /* $Id$ */ //------------------------------------------------------- -// TPC clusterer +// The TPC cluster finder // // Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch //------------------------------------------------------- -#include +#include -#define kMAXCLUSTER 2500 - -class TFile; +class TTree; class AliTPCParam; class AliTPCcluster; -class AliLoader; -class AliTPCclusterer { +class AliTPCclusterer : public TObject { public: - static void Digits2Clusters(const AliTPCParam *par, AliLoader *of, Int_t eventn=1); + AliTPCclusterer():TObject(),fPar(0){}; + AliTPCclusterer(const AliTPCParam *par):TObject(), fPar(par){}; + AliTPCclusterer(const AliTPCclusterer ¶m); // copy constructor + AliTPCclusterer &operator = (const AliTPCclusterer & param); + Int_t Digits2Clusters(TTree *dig, TTree *clu); private: - class AliBin { - public: - UShort_t GetQ() const {return fQ;} - UInt_t GetMask() const {return fMask;} - void SetQ(UShort_t q) {fQ=q;} - void SetMask(UInt_t m) {fMask=m;} - private: - UShort_t fQ; //signal - UInt_t fMask; //peak mask - }; + class AliBin { + public: + UShort_t GetQ() const {return fQ;} + UInt_t GetMask() const {return fMask;} + void SetQ(UShort_t q) {fQ=q;} + void SetMask(UInt_t m) {fMask=m;} + private: + UShort_t fQ; //signal + UInt_t fMask; //peak mask + }; private: - static Bool_t IsMaximum(Int_t k, Int_t max, const AliBin *bins); + static Bool_t IsMaximum(Int_t k, Int_t max, const AliBin *bins); static void FindPeaks(Int_t k,Int_t m,AliBin*b,Int_t*idx,UInt_t*msk,Int_t&n); - static void MarkPeak(Int_t k, Int_t max, AliBin *bins, UInt_t m); - static void MakeCluster(Int_t k,Int_t max,AliBin *bins,UInt_t m, + static void MarkPeak(Int_t k, Int_t max, AliBin *bins, UInt_t m); + static void MakeCluster(Int_t k,Int_t max,AliBin *bins,UInt_t m, AliTPCcluster &c); + + const AliTPCParam *fPar; //! pointer to the TPC parameters + + ClassDef(AliTPCclusterer,1) // the TPC cluster finder };