ROOT logo
#ifndef ALIITSCLUSTERV2_H
#define ALIITSCLUSTERV2_H
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
 * See cxx source for full Copyright notice                               */

//-------------------------------------------------------------------------
//                        ITS Cluster Class
//
//      Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch 
//-------------------------------------------------------------------------

#include "TMath.h"
#include "AliCluster.h"
#include "AliITSRecoParam.h"

//_____________________________________________________________________________
class AliITSclusterV2 : public AliCluster {
public:
  AliITSclusterV2(); 
  AliITSclusterV2(Int_t *lab,Float_t *hit, Int_t *info); 
  void Use(Int_t = 0) {fQ=-fQ;}
  void UnUse() {fQ=TMath::Abs(fQ);}
  void SetQ(Float_t q) {fQ=q;}
  void SetDetectorIndex(Int_t i) { fIndex=i; }
  void SetLayer(Int_t layer) {fLayer=layer;}
  void SetNz(Int_t nz) {fNz =nz;}
  void SetNy(Int_t ny){fNy=ny;}
  void SetChargeRatio(Float_t ratio) { fChargeRatio = ratio;}
  void SetPhiR(Float_t y) { fChargeRatio=y; }
  void SetType(Int_t type){ fType=type;}
  void SetDeltaProbability(Float_t prob){fDeltaProb = prob;}

  Int_t IsUsed() const {return (fQ<0)?1:0;}
  Float_t GetQ() const {return TMath::Abs(fQ);}
  Int_t GetDetectorIndex() const { return 0x3FF&fIndex; }
  Int_t GetLayer() const {return fLayer;}
  Int_t GetNz() const {return fNz;}
  Int_t GetNy() const {return fNy;}
  Float_t GetChargeRatio() const {return fChargeRatio;}
  Float_t GetPhiR() const {return fChargeRatio;}
  Int_t GetPindex() const { return 0xFFF00000&fIndex; }  //SSD clusters only
  Int_t GetNindex() const { return 0xFFC00&fIndex; }  //SSD clusters only
  Int_t GetType() const {return fType;}  // type of the cluster
  Float_t GetDeltaProbability() const{return fDeltaProb;} //probability to belong to the delta ray
private:
  Int_t    fIndex;    // detector index
  Float_t  fQ ;       // Q of cluster (in ADC counts)
  Char_t   fLayer;    // layer number
  Short_t   fNz;       //number of digits in Z direction
  Short_t   fNy;       //number of digits in y direction 
  Float_t  fChargeRatio; //charge ratio
  Int_t    fType;         //quality factor of the cluster
  Float_t  fDeltaProb;    // probability to be deleta electron
  ClassDef(AliITSclusterV2,2)  // ITS clusters
};

#endif


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