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 */
12 class AliTRDparameter;
14 ///////////////////////////////////////////////////////
15 // Finds and handles cluster //
16 ///////////////////////////////////////////////////////
18 class AliTRDclusterizer : public TNamed {
23 AliTRDclusterizer(const Text_t* name, const Text_t* title);
24 AliTRDclusterizer(const AliTRDclusterizer &c);
25 virtual ~AliTRDclusterizer();
26 AliTRDclusterizer &operator=(const AliTRDclusterizer &c);
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);
36 void SetVerbose(Int_t v = 1) { fVerbose = v; };
38 virtual void SetParameter(AliTRDparameter *par) { fPar = par; };
40 AliTRDparameter *GetParameter() const { return fPar; };
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
50 Int_t fEvent; //! Event number
51 Int_t fVerbose; // Sets the verbose level
53 ClassDef(AliTRDclusterizer,3) // TRD-Cluster manager base class