/* $Id$ */
#include <TNamed.h>
+#include <TObjArray.h>
class TFile;
-
+class TTree;
+class AliRunLoader;
+class AliTRD;
+class AliTRDcluster;
///////////////////////////////////////////////////////
// Finds and handles cluster //
///////////////////////////////////////////////////////
virtual ~AliTRDclusterizer();
AliTRDclusterizer &operator=(const AliTRDclusterizer &c);
- virtual void Copy(TObject &c);
- virtual void Init();
+ virtual void Copy(TObject &c) const;
virtual Bool_t Open(const Char_t *name, Int_t nEvent = 0);
+
+ virtual Bool_t OpenInput(Int_t nEvent = 0);
+ virtual Bool_t OpenOutput();
virtual Bool_t MakeClusters() = 0;
virtual Bool_t WriteClusters(Int_t det);
+ void SetVerbose(Int_t v = 1) { fVerbose = v; };
+
+ TObjArray* RecPoints() {if (!fRecPoints) fRecPoints = new TObjArray(400); return fRecPoints;}
+ virtual AliTRDcluster * AddCluster(Double_t *pos, Int_t timebin, Int_t det, Double_t amp, Int_t *tracks
+ , Double_t *sig, Int_t iType, Float_t center = 0);
+ void ResetRecPoints() {if (fRecPoints) fRecPoints->Delete();}
protected:
- TFile *fInputFile; //! AliROOT input file
+ Double_t CalcXposFromTimebin(Float_t timebin, Int_t idet, Int_t col, Int_t row);
+
+ AliRunLoader *fRunLoader; //! Run Loader
- Int_t fEvent; //! Event number
+ TTree *fClusterTree; //! Tree with the cluster
+
+ TObjArray* fRecPoints; //! Array of clusters
+ Int_t fVerbose; // Sets the verbose level
- ClassDef(AliTRDclusterizer,1) // TRD-Cluster manager base class
+ ClassDef(AliTRDclusterizer,3) // TRD-Cluster manager base class
};