Print removed
[u/mrichter/AliRoot.git] / ITS / AliITSclusterV2.h
CommitLineData
006b5f7f 1#ifndef ALIITSCLUSTERV2_H
2#define ALIITSCLUSTERV2_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6//-------------------------------------------------------------------------
7// ITS Cluster Class
8//
9// Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch
10//-------------------------------------------------------------------------
11
83d73500 12#include "TMath.h"
006b5f7f 13#include "AliCluster.h"
14#include "AliITSrecoV2.h"
15
16//_____________________________________________________________________________
17class AliITSclusterV2 : public AliCluster {
18public:
e43c066c 19 AliITSclusterV2() : AliCluster() {fQ=0; fLayer=0; fNz=1; fNy=1; fType=0;fDeltaProb=0;}
babd135a 20 AliITSclusterV2(Int_t *lab,Float_t *hit, Int_t *info) : AliCluster(lab,hit) {
006b5f7f 21 fIndex=lab[3];
22 fQ=hit[4];
babd135a 23 fNy = info[0];
24 fNz = info[1];
25 fLayer = info[2];
e43c066c 26 fChargeRatio = 0;
27 fType=0;
28 fDeltaProb=0.;
006b5f7f 29 }
83d73500 30 void Use() {fQ=-fQ;}
006b5f7f 31 void SetQ(Float_t q) {fQ=q;}
dce76328 32 void SetDetectorIndex(Int_t i) { fIndex=i; }
babd135a 33 void SetLayer(Int_t layer) {fLayer=layer;}
34 void SetNz(Int_t nz) {fNz =nz;}
35 void SetNy(Int_t ny){fNy=ny;}
e43c066c 36 void SetChargeRatio(Float_t ratio) { fChargeRatio = ratio;}
37 void SetType(Int_t type){ fType=type;}
38 void SetDeltaProbability(Float_t prob){fDeltaProb = prob;}
39
83d73500 40 Int_t IsUsed() const {return (fQ<0) ? 1 : 0;}
41 Float_t GetQ() const {return TMath::Abs(fQ);}
dce76328 42 Int_t GetDetectorIndex() const { return 0x3FF&fIndex; }
babd135a 43 Int_t GetLayer() const {return fLayer;}
44 Int_t GetNz() const {return fNz;}
45 Int_t GetNy() const {return fNy;}
e43c066c 46 Float_t GetChargeRatio() const {return fChargeRatio;}
dce76328 47 Int_t GetPindex() const { return 0xFFF00000&fIndex; } //SSD clusters only
48 Int_t GetNindex() const { return 0xFFC00&fIndex; } //SSD clusters only
e43c066c 49 Int_t GetType() const {return fType;} // type of the cluster
50 Float_t GetDeltaProbability() const{return fDeltaProb;} //probability to belong to the delta ray
006b5f7f 51private:
52 Int_t fIndex; // detector index
53 Float_t fQ ; // Q of cluster (in ADC counts)
babd135a 54 Char_t fLayer; // layer number
e43c066c 55 Short_t fNz; //number of digits in Z direction
56 Short_t fNy; //number of digits in y direction
57 Float_t fChargeRatio; //charge ratio
58 Int_t fType; //quality factor of the cluster
59 Float_t fDeltaProb; // probability to be deleta electron
babd135a 60 ClassDef(AliITSclusterV2,2) // ITS clusters
006b5f7f 61};
62
63#endif
64
65