]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSClusterFinderSPD.h
Geometry builder classes moved from base to sim.
[u/mrichter/AliRoot.git] / ITS / AliITSClusterFinderSPD.h
index 4f8bcd2d7bb264338f4507023c8bbcb7138232a6..8a50682531145ba8c5f8d2734251d74b4675e07c 100644 (file)
@@ -6,6 +6,7 @@
 ////////////////////////////////////////////////
 
 #include "AliITSClusterFinder.h"
+#include "AliITSDetTypeRec.h"
 
 class AliITSMapA1;
 class AliITSsegmentation;
@@ -14,24 +15,17 @@ class AliITSresponse;
 class AliITSresponseSPD;
 class TClonesArray;
 
+
 class AliITSClusterFinderSPD : public AliITSClusterFinder{
  public:
     AliITSClusterFinderSPD();
-    AliITSClusterFinderSPD(AliITSsegmentation *segmentation,
-                           AliITSresponse *res);
-    AliITSClusterFinderSPD(AliITSsegmentation *segmentation,
+    AliITSClusterFinderSPD(AliITSDetTypeRec* dettyp);
+    AliITSClusterFinderSPD(AliITSDetTypeRec* dettyp,
                           TClonesArray *digits,TClonesArray *recpoints);
     virtual ~AliITSClusterFinderSPD(){}// destructor
-    // copy constructor
-    AliITSClusterFinderSPD(const AliITSClusterFinderSPD &source);
-    // assignment operator
-    AliITSClusterFinderSPD& operator=(const AliITSClusterFinderSPD &source);
-
-    virtual AliITSresponseSPD* GetResp()const{
-        return (AliITSresponseSPD*) GetResponse();}//Return Response
     //Returns fSegmentation
     virtual AliITSsegmentationSPD* GetSeg()const{
-        return (AliITSsegmentationSPD*)GetSegmentation();}  
+        return (AliITSsegmentationSPD*)fDetTypeRec->GetSegmentationModel(0);}  
     virtual void SetDx(Double_t dx=1.) {fDx=dx;}// set dx
     virtual void SetDz(Double_t dz=0.) {fDz=dz;}// set dz
     // Search for clusters
@@ -46,7 +40,12 @@ class AliITSClusterFinderSPD : public AliITSClusterFinder{
                         Double_t xcenter[],Double_t zcenter[],
                         Double_t errxcenter[],Double_t errzcenter[],  
                         Int_t tr1clus[],Int_t tr2clus[], Int_t tr3clus[]);
-  private:
+ protected:
+    // copy constructor
+    AliITSClusterFinderSPD(const AliITSClusterFinderSPD &source);
+    // assignment operator
+    AliITSClusterFinderSPD& operator=(const AliITSClusterFinderSPD &source);
+
     Double_t             fDz;            // dz
     Double_t             fDx;            // dx
     Int_t               fMinNCells;     // min num of cells in the cluster