///////////////////////////////////////////////////////////////////////////
-#include <TArrayI.h>
#include <TObject.h>
-class TTree;
-class AliITStrackerSA;
-class AliITSgeom;
class AliITSclusterTable : public TObject {
public:
AliITSclusterTable();
- AliITSclusterTable(AliITSgeom* geom, AliITStrackerSA* tracker);
- void FillArray(TTree* clusterTree,Int_t evnumber=0);
- void FillArrayLabel(const Int_t numberofparticles,TTree* clusterTree,
- Int_t evnumber=0);
- virtual ~AliITSclusterTable();
-
-
- Int_t GetNCluster(Int_t mod) const {return fNCl[mod];}
- Int_t GetClusterIndMod(Int_t mod,Int_t i){return fDet[mod]->At(i);}
- TArrayI* GetListOfClusters(Int_t mod) const {return fDet[mod];}
- TArrayI* GetNClustersSameLabel(Int_t label) const {return fLbl[label];}
- Int_t ThereIsClusterOnLayer(Int_t label,Int_t layer)
- {return fLbl[label]->At(layer);}
- Int_t ThisParticleIsTrackable(Int_t label,Int_t numberofpoints=6);
+ AliITSclusterTable(Float_t x, Float_t y, Float_t z, Float_t sx, Float_t sy, Float_t sz, Double_t phi, Double_t lambda, Int_t index);
+ virtual ~AliITSclusterTable(){;}
+
+ Int_t GetOrInd() const {return fOrInd;}
+ Float_t GetX() const {return fX;}
+ Float_t GetY() const {return fY;}
+ Float_t GetZ() const {return fZ;}
+ Float_t GetSx() const {return fSx;}
+ Float_t GetSy() const {return fSy;}
+ Float_t GetSz() const {return fSz;}
+ Float_t GetPhi() const {return fPhi;}
+ Float_t GetLambda() const {return fLam;}
protected:
- // copy constructor (NO copy allowed: the constructor is protected
- // to avoid misuse)
- AliITSclusterTable(const AliITSclusterTable& tab);
- // assignment operator (NO assignment allowed)
- AliITSclusterTable& operator=(const AliITSclusterTable& /* tab */);
-
- static Int_t FindIndex(Int_t ndim, Int_t *ptr, Int_t value);
-
- Int_t *fNCl;//number of clusters per module
- TArrayI** fDet; //Array of cluster indices for each detector
- TArrayI** fLbl; //Array of number of clusters (on each layer)
- // with the same label for each label.
- AliITSgeom *fGeom; //! ITS geometry
- AliITStrackerSA *fTracker; //! SA tracker
-
- ClassDef(AliITSclusterTable,1)
+ Int_t fOrInd; //! original index in tracker
+ Float_t fX; //!x of cluster
+ Float_t fY; //!y of cluster
+ Float_t fZ; //!z of cluster
+ Float_t fSx; //! error on x
+ Float_t fSy; //! error on y
+ Float_t fSz; //! error on z
+ Double_t fPhi; //! azimuthal angle
+ Double_t fLam; //! lambda angle
+
+ ClassDef(AliITSclusterTable,2)
};
#endif