]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDclusterizer.h
Change of C02 density
[u/mrichter/AliRoot.git] / TRD / AliTRDclusterizer.h
index 7fd3183ba8ba8c8c8292906089f6448c1e0d0c8b..2bb295caf7e1864af6495392f70abd7cf631435b 100644 (file)
@@ -11,9 +11,8 @@
 class TFile;
 class TTree;
 class AliRunLoader;
-class AliTRDparameter;
 class AliTRD;
-
+class AliTRDcluster;
 ///////////////////////////////////////////////////////
 //  Finds and handles cluster                        //
 ///////////////////////////////////////////////////////
@@ -28,30 +27,27 @@ class AliTRDclusterizer : public TNamed {
   virtual ~AliTRDclusterizer();
   AliTRDclusterizer &operator=(const AliTRDclusterizer &c);
 
-  virtual void    Copy(TObject &c);
+  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);
-  virtual void     SetParameter(AliTRDparameter *par)      { fPar           = par; };
-  void     SetVerbose(Int_t v = 1)                 { fVerbose       = v;   };
-
-  AliTRDparameter *GetParameter()                    const { return fPar;          };
+  void            SetVerbose(Int_t v = 1)                 { fVerbose       = v;   };
 
   TObjArray*      RecPoints() {if (!fRecPoints) fRecPoints = new TObjArray(400); return fRecPoints;}
-  virtual void    AddCluster(Float_t *pos, Int_t det, Float_t amp, Int_t *tracks
-                            , Float_t *sig, Int_t iType);
+  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:
 
-  AliRunLoader * fRunLoader;       //! Run Loader
+   Double_t CalcXposFromTimebin(Float_t timebin, Int_t idet, Int_t col, Int_t row);
+       
+  AliRunLoader    *fRunLoader;     //! Run Loader
   
   TTree           *fClusterTree;   //! Tree with the cluster
-  AliTRDparameter *fPar;           //  TRD digitization parameter object
 
   TObjArray*       fRecPoints;     //! Array of clusters
   Int_t            fVerbose;       //  Sets the verbose level