]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/TRD/AliTRDclusterizerV1HLT.h
Pedestal subtraction implemented
[u/mrichter/AliRoot.git] / HLT / TRD / AliTRDclusterizerV1HLT.h
1 #ifndef ALITRDCLUSTERIZERV1HLT_H
2 #define ALITRDCLUSTERIZERV1HLT_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 ////////////////////////////////////////////////////////////////////////////
7 //                                                                        //
8 //  TRD cluster finder                                                    //
9 //                                                                        //
10 ////////////////////////////////////////////////////////////////////////////
11
12 #include "AliTRDclusterizerV1.h"
13
14 /* class AliTRDdataArrayI; */
15 /* class AliTRDdataArrayF; */
16 /* class AliTRDdigitsManager; */
17 /* class AliRawReader; */
18
19 class AliRawReaderMemory;
20 class AliTRDrawData;
21
22 class AliTRDclusterizerV1HLT : public AliTRDclusterizerV1 
23 {
24  public:
25
26   AliTRDclusterizerV1HLT();
27   AliTRDclusterizerV1HLT(const Text_t* name, const Text_t* title);
28   AliTRDclusterizerV1HLT(const AliTRDclusterizerV1HLT &c);
29   virtual             ~AliTRDclusterizerV1HLT();
30   AliTRDclusterizerV1HLT &operator=(const AliTRDclusterizerV1HLT &c);
31
32   virtual void     Copy(TObject &c) const;
33   //virtual Bool_t   MakeClusters();
34   virtual Bool_t   ReadDigits(AliRawReaderMemory* rawReader);
35   //virtual Bool_t   TreeClusters(Int_t idet);
36   virtual Bool_t   InitClusterTree();
37   virtual Bool_t   InsertClusters(TObjArray *tobjarr, Int_t idet);
38   virtual Int_t    CountClusters();
39   virtual Int_t    GetNclusters();
40
41   virtual Bool_t   ResetTree();
42  
43   TTree *          GetClusterTree() {return fClusterTree;}
44   virtual Bool_t   IsTreeOwner() const {return fTreeCreatedHere;}
45   virtual void     SetRawDataVersion(Int_t ival) {fRawDataVersion = ival;}
46
47  protected:
48   virtual Bool_t   ReadDigits() const {return kFALSE;} //this method not to be used on HLT
49   virtual Bool_t   ReadDigits(AliRawReader* rawReader) const {return kFALSE;} //this method not to be used on HLT
50
51   Bool_t            fTreeCreatedHere; //flag indicating that AliTRDclusterizerV1HLT has created the cluster tree
52
53  private:
54
55   Int_t fNclusters; //number of clusters found - updated by ::GetNclusters()
56   Int_t fRawDataVersion; //version of the raw data format
57   AliTRDrawData *fRawDataSource; //! pointer to the TRD raw data stream
58
59   ClassDef(AliTRDclusterizerV1HLT,1)           //  TRD-Cluster finder, slow simulator
60
61 };
62
63 #endif