X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=ITS%2FAliITSclusterV2.h;h=c97d663bf9f70bf8d0b5da5f92ada2791f66e36f;hb=4cbef9fba538a1bf23541e9f3760754c7b1cd802;hp=268bafc1d9ed7c95bf3e6eb7ef00604911c1d7c5;hpb=e43c066cbc76252a79f11f5bc1435a37cbc8bed3;p=u%2Fmrichter%2FAliRoot.git diff --git a/ITS/AliITSclusterV2.h b/ITS/AliITSclusterV2.h index 268bafc1d9e..c97d663bf9f 100644 --- a/ITS/AliITSclusterV2.h +++ b/ITS/AliITSclusterV2.h @@ -11,39 +11,33 @@ #include "TMath.h" #include "AliCluster.h" -#include "AliITSrecoV2.h" +#include "AliITSRecoParam.h" //_____________________________________________________________________________ class AliITSclusterV2 : public AliCluster { public: - AliITSclusterV2() : AliCluster() {fQ=0; fLayer=0; fNz=1; fNy=1; fType=0;fDeltaProb=0;} - AliITSclusterV2(Int_t *lab,Float_t *hit, Int_t *info) : AliCluster(lab,hit) { - fIndex=lab[3]; - fQ=hit[4]; - fNy = info[0]; - fNz = info[1]; - fLayer = info[2]; - fChargeRatio = 0; - fType=0; - fDeltaProb=0.; - } - void Use() {fQ=-fQ;} + 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;} + 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