- Bool_t IsSortable() const {return kTRUE;} // allows for sorting
- Int_t * GetTracks() {return fTracks;} // returns pointer to tracks
- Float_t GetX(){return fX;} // gets fX
- Float_t GetZ(){return fZ;} // gets fZ
- Float_t GetQ(){return fQ;} // gets fQ
- Float_t GetdEdX(){return fdEdX;} // gets fdEdX
- Float_t GetSigmaX2(){return fSigmaX2;} // gets fSigmaX2
- Float_t GetSigmaZ2(){return fSigmaZ2;} // gets fSigmaZ2
- Float_t GetProbability(){return fProbability;} // gets fProbability
- void SetX(Float_t x){fX=x;} // sets fX
- void SetZ(Float_t z){fZ=z;} // sets fZ
- void SetQ(Float_t q){fQ=q;} // sets fQ
- void SetdEdX(Float_t dedx){fdEdX=dedx;} // sets fdEdX
- void SetSigmaX2(Float_t sx2){fSigmaX2=sx2;} // sets fSigmaX2
- void SetSigmaZ2(Float_t sz2){fSigmaZ2=sz2;} // sets fSigmaZ2
- void SetProbability(Float_t p){fProbability = p;} // sets fProbability
- void Use() {
- //if fQ<0 cluster is already associated with a track
- fQ=-fQ;
- }
- Int_t IsUsed() const {return (fQ<0) ? 1 : 0;} // checks Use condision
- Int_t Compare(TObject *o) {
- //to be defined
- return 0;
- }
+ Bool_t IsSortable() const {return kTRUE;} // allows for sorting
+ Float_t GetDetLocalX() const {return fXloc;} // gets fX
+ Float_t GetDetLocalZ() const {return fZloc;} // gets fZ
+ Float_t GetdEdX() const {return fdEdX;} // gets fdEdX
+ Float_t GetSigmaDetLocX2() const {return GetSigmaY2();} // gets fSigmaX2
+ void SetdEdX(Float_t dedx){fdEdX=dedx;} // sets fdEdX
+ Int_t Compare(const TObject *) const {return 0;} //to be defined
+ void Print(ostream *os);
+ // Reads in the content of this class in the format of Print
+ void Read(istream *is);
+ virtual void Print(Option_t *option="") const {TObject::Print(option);}
+ virtual Int_t Read(const char *name) {return TObject::Read(name);}
+
+ 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;}
+ void SetDriftTime(Float_t tim) {fDriftTime=tim;}
+ void SetDriftSide(Int_t sid) {fDriftSide=sid;}
+
+ 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 (for SPD the number of pixels in the cluster)
+ Float_t GetDeltaProbability() const{return fDeltaProb;} //probability to belong to the delta ray
+ Float_t GetDriftTime() const{return fDriftTime;}
+ Int_t GetDriftSide() const {return fDriftSide;}
+ Int_t GetNpixels() const; // for SPD returns fType, i.e. the number of pixels in the cluster (-1 for SDD and SSD)
+ Int_t GetSPDclusterType() const; // for SPD returns cluster type according to conventional numbering (-1 for SDD and SSD)
+ Int_t GetSDDclusterType() const;
+ Int_t GetSSDclusterType() const;
+ static void DecodeSDDclusterType(Int_t cluType, Int_t &cluSizAn, Int_t& cluSizTb, Int_t &drSide);