]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/AliTRDclusterizer.h
MAG geometry with resolved MANY (I.Hrivnacova)
[u/mrichter/AliRoot.git] / TRD / AliTRDclusterizer.h
1 #ifndef ALITRDCLUSTERIZER_H
2 #define ALITRDCLUSTERIZER_H
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>
9
10 class TFile;
11
12 class AliTRDparameter;
13
14 ///////////////////////////////////////////////////////
15 //  Finds and handles cluster                        //
16 ///////////////////////////////////////////////////////
17
18 class AliTRDclusterizer : public TNamed {
19
20  public:
21
22   AliTRDclusterizer();
23   AliTRDclusterizer(const Text_t* name, const Text_t* title);
24   AliTRDclusterizer(const AliTRDclusterizer &c);
25   virtual ~AliTRDclusterizer();
26   AliTRDclusterizer &operator=(const AliTRDclusterizer &c);
27
28   virtual void     Copy(TObject &c);
29   virtual Bool_t   Open(const Char_t *name, Int_t nEvent = 0);
30   virtual Bool_t   Open(const Char_t *inname, const Char_t *outname, Int_t nEvent = 0);
31   virtual Bool_t   OpenInput(const Char_t *name, Int_t nEvent = 0);
32   virtual Bool_t   OpenOutput(const Char_t *name);
33   virtual Bool_t   MakeClusters() = 0;
34   virtual Bool_t   WriteClusters(Int_t det);
35
36           void     SetVerbose(Int_t v = 1)                 { fVerbose       = v;   };
37
38   virtual void     SetParameter(AliTRDparameter *par)      { fPar           = par; };
39
40   AliTRDparameter *GetParameter()                    const { return fPar;          };
41
42  protected:
43
44   TFile           *fInputFile;     //! AliROOT input file
45   TFile           *fOutputFile;    //! AliROOT output file
46   TTree           *fClusterTree;   //! Tree with the cluster
47   AliTRD          *fTRD;           //! The TRD object
48   AliTRDparameter *fPar;           //  TRD digitization parameter object
49
50   Int_t            fEvent;         //! Event number
51   Int_t            fVerbose;       //  Sets the verbose level
52
53   ClassDef(AliTRDclusterizer,3)    //  TRD-Cluster manager base class
54
55 };
56
57 #endif