ROOT logo
#ifndef ALIITSCLUSTERTABLE_H
#define ALIITSCLUSTERTABLE_H 
/* Copyright(c) 1998-2003, ALICE Experiment at CERN, All rights reserved. *
 * See cxx source for full Copyright notice                               */
//////////////////////////////////////////////////////////////////////////
// Class used to simplify some operations with clusters.                 //
// -Function FillArray fills an array wich contains, for each            //
//  ITS module, an array with the indices of all the clusters detected   //
//  by the module. The indices correspond to the cluster indices in class// 
//  AliITSlayer of AliITStrackerV2.                                      //
//  This function is used in AliITStrackerSA::FindTracks.                // 
// -Function FillArrayLabel fills an array wich contains, for each       //
//  particle label, and for each layer, the information on clusters:     //
//  0 if there is no cluster, 1 if there is a cluster with this label.   //
//  This function is used to define trackable tracks.                    //   
///////////////////////////////////////////////////////////////////////////


#include <TObject.h>


class AliITSclusterTable : public TObject {


 public:

  AliITSclusterTable();
  AliITSclusterTable(Double_t x, Double_t y, Double_t z, Double_t sx, Double_t sy, Double_t sz, Double_t phi, Double_t lambda, Int_t index);
  virtual ~AliITSclusterTable(){;}

  Int_t   GetOrInd() const {return fOrInd;}
  Double_t GetX() const {return fX;}
  Double_t GetY() const {return fY;}
  Double_t GetZ() const {return fZ;}
  Double_t GetSx() const {return fSx;}
  Double_t GetSy() const {return fSy;}
  Double_t GetSz() const {return fSz;}
  Double_t GetPhi() const {return fPhi;}
  Double_t GetLambda() const {return fLam;}

  virtual Bool_t IsEqual(const TObject *obj) const 
    {return fLam == ((AliITSclusterTable*)obj)->fLam;}
  virtual Bool_t      IsSortable() const { return kTRUE; }
  virtual Int_t       Compare(const TObject *obj) const 
    {if(fLam<((AliITSclusterTable*)obj)->fLam) return -1;
    else if(fLam>((AliITSclusterTable*)obj)->fLam) return 1;
    else return 0; }

 protected: 

  Int_t   fOrInd; //! original index in tracker
  Double_t fX;  //!x of cluster 
  Double_t fY;  //!y of cluster
  Double_t fZ;  //!z of cluster
  Double_t fSx; //! error on x
  Double_t fSy; //! error on y
  Double_t fSz; //! error on z
  Double_t fPhi; //! azimuthal angle
  Double_t fLam; //! lambda angle

  ClassDef(AliITSclusterTable,3)
};

#endif



 AliITSclusterTable.h:1
 AliITSclusterTable.h:2
 AliITSclusterTable.h:3
 AliITSclusterTable.h:4
 AliITSclusterTable.h:5
 AliITSclusterTable.h:6
 AliITSclusterTable.h:7
 AliITSclusterTable.h:8
 AliITSclusterTable.h:9
 AliITSclusterTable.h:10
 AliITSclusterTable.h:11
 AliITSclusterTable.h:12
 AliITSclusterTable.h:13
 AliITSclusterTable.h:14
 AliITSclusterTable.h:15
 AliITSclusterTable.h:16
 AliITSclusterTable.h:17
 AliITSclusterTable.h:18
 AliITSclusterTable.h:19
 AliITSclusterTable.h:20
 AliITSclusterTable.h:21
 AliITSclusterTable.h:22
 AliITSclusterTable.h:23
 AliITSclusterTable.h:24
 AliITSclusterTable.h:25
 AliITSclusterTable.h:26
 AliITSclusterTable.h:27
 AliITSclusterTable.h:28
 AliITSclusterTable.h:29
 AliITSclusterTable.h:30
 AliITSclusterTable.h:31
 AliITSclusterTable.h:32
 AliITSclusterTable.h:33
 AliITSclusterTable.h:34
 AliITSclusterTable.h:35
 AliITSclusterTable.h:36
 AliITSclusterTable.h:37
 AliITSclusterTable.h:38
 AliITSclusterTable.h:39
 AliITSclusterTable.h:40
 AliITSclusterTable.h:41
 AliITSclusterTable.h:42
 AliITSclusterTable.h:43
 AliITSclusterTable.h:44
 AliITSclusterTable.h:45
 AliITSclusterTable.h:46
 AliITSclusterTable.h:47
 AliITSclusterTable.h:48
 AliITSclusterTable.h:49
 AliITSclusterTable.h:50
 AliITSclusterTable.h:51
 AliITSclusterTable.h:52
 AliITSclusterTable.h:53
 AliITSclusterTable.h:54
 AliITSclusterTable.h:55
 AliITSclusterTable.h:56
 AliITSclusterTable.h:57
 AliITSclusterTable.h:58
 AliITSclusterTable.h:59
 AliITSclusterTable.h:60
 AliITSclusterTable.h:61
 AliITSclusterTable.h:62
 AliITSclusterTable.h:63
 AliITSclusterTable.h:64
 AliITSclusterTable.h:65
 AliITSclusterTable.h:66
 AliITSclusterTable.h:67