]> git.uio.no Git - u/mrichter/AliRoot.git/blame_incremental - ITS/AliITSclusterV2.h
Remove AliTRDv2
[u/mrichter/AliRoot.git] / ITS / AliITSclusterV2.h
... / ...
CommitLineData
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
12#include "TMath.h"
13#include "AliCluster.h"
14#include "AliITSrecoV2.h"
15
16//_____________________________________________________________________________
17class AliITSclusterV2 : public AliCluster {
18public:
19 AliITSclusterV2() : AliCluster() {
20 fQ=0; fLayer=0; fNz=fNy=1; fType=0; fDeltaProb=0;
21 }
22 AliITSclusterV2(Int_t *lab,Float_t *hit, Int_t *info) : AliCluster(lab,hit) {
23 fIndex=lab[3];
24 fQ=hit[4];
25 fNy = info[0];
26 fNz = info[1];
27 fLayer = info[2];
28 fChargeRatio = 0;
29 fType=0;
30 fDeltaProb=0.;
31 }
32
33 void Use(Int_t = 0) {fQ=-fQ;}
34 void UnUse() {fQ=TMath::Abs(fQ);}
35 void SetQ(Float_t q) {fQ=q;}
36 void SetDetectorIndex(Int_t i) { fIndex=i; }
37 void SetLayer(Int_t layer) {fLayer=layer;}
38 void SetNz(Int_t nz) {fNz =nz;}
39 void SetNy(Int_t ny){fNy=ny;}
40 void SetChargeRatio(Float_t ratio) { fChargeRatio = ratio;}
41 void SetPhiR(Float_t y) { fChargeRatio=y; }
42 void SetType(Int_t type){ fType=type;}
43 void SetDeltaProbability(Float_t prob){fDeltaProb = prob;}
44
45 Int_t IsUsed() const {return (fQ<0)?1:0;}
46 Float_t GetQ() const {return TMath::Abs(fQ);}
47 Int_t GetDetectorIndex() const { return 0x3FF&fIndex; }
48 Int_t GetLayer() const {return fLayer;}
49 Int_t GetNz() const {return fNz;}
50 Int_t GetNy() const {return fNy;}
51 Float_t GetChargeRatio() const {return fChargeRatio;}
52 Float_t GetPhiR() const {return fChargeRatio;}
53 Int_t GetPindex() const { return 0xFFF00000&fIndex; } //SSD clusters only
54 Int_t GetNindex() const { return 0xFFC00&fIndex; } //SSD clusters only
55 Int_t GetType() const {return fType;} // type of the cluster
56 Float_t GetDeltaProbability() const{return fDeltaProb;} //probability to belong to the delta ray
57private:
58 Int_t fIndex; // detector index
59 Float_t fQ ; // Q of cluster (in ADC counts)
60 Char_t fLayer; // layer number
61 Short_t fNz; //number of digits in Z direction
62 Short_t fNy; //number of digits in y direction
63 Float_t fChargeRatio; //charge ratio
64 Int_t fType; //quality factor of the cluster
65 Float_t fDeltaProb; // probability to be deleta electron
66 ClassDef(AliITSclusterV2,2) // ITS clusters
67};
68
69#endif
70
71