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