X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=TOF%2FAliTOFcluster.h;h=9b5bbc49f8c9ebd721b95cc023cd2a127bd62a47;hb=2608880a433c052a917ac1add3e1f75e05f29c25;hp=7a3838c0821003b8fcf410033fb360f15f04fba3;hpb=bf33f8f0420274cbd5cab3fcc3a223dd191317a8;p=u%2Fmrichter%2FAliRoot.git diff --git a/TOF/AliTOFcluster.h b/TOF/AliTOFcluster.h index 7a3838c0821..9b5bbc49f8c 100644 --- a/TOF/AliTOFcluster.h +++ b/TOF/AliTOFcluster.h @@ -13,58 +13,71 @@ ////////////////////////////////////////////// #include "TMath.h" -#include "TObject.h" +#include "AliCluster3D.h" -class AliTOFcluster : public TObject { +class AliTOFcluster : public AliCluster3D { public: AliTOFcluster(); // default ctor - AliTOFcluster(Double_t *h, Int_t *ind, Int_t *par, Bool_t status,Int_t *l, Int_t idx); // ctor - AliTOFcluster(Double_t *h, Int_t *ind, Int_t *par); // ctor + AliTOFcluster(UShort_t volId, + Float_t x, Float_t y, Float_t z, + Float_t sx2, Float_t sxy, Float_t sxz, + Float_t sy2, Float_t syz, + Float_t sz2, + Int_t *lab, Int_t * const ind, Int_t *par, + Bool_t status, Int_t idx); // ctor AliTOFcluster(const AliTOFcluster & cluster); // copy ctor virtual ~AliTOFcluster(); // dtor + // Getters and Setters Double_t GetR() const {return fR;} // Cluster Radius Double_t GetPhi() const {return fPhi;} // Cluster Phi - Double_t GetZ() const {return fZ;} // Cluster Z - Int_t GetTDC() const {return fTDC;} // Cluster ToF - Int_t GetTDCND() const {return fTdcND;} // Cluster ToF - Int_t GetTDCRAW() const {return fTdcRAW;} // Cluster Raw time - Int_t GetADC() const {return TMath::Abs(fADC);} // Cluster Charge - Int_t GetToT() const {return fToT;} // Cluster Charge - Int_t IsUsed() const {return (fADC<0) ? 1 : 0;} // Flagging - Int_t GetLabel(Int_t n) const {return fLab[n];} // Labels of tracks in Cluster - Int_t GetDetInd(Int_t n) const {return fdetIndex[n];} // Cluster Detector Indeces - Int_t GetIndex() const {return fIdx;} // Cluster Index - void Use() {fADC=-fADC;} - Double_t GetQuality() const {return fQuality;} - void SetQuality(Double_t quality) {fQuality = quality;} - Bool_t GetStatus() const {return fStatus;} - void SetStatus(Bool_t status) {fStatus = status;} - void SetToT(Int_t ToT) {fToT = ToT;} - void SetTDC(Int_t Tdc) {fTDC = Tdc;} - void SetTDCND(Int_t Tdc) {fTdcND = Tdc;} - void SetTDCRAW(Int_t Tdc) {fTdcRAW = Tdc;} + + Double_t GetQuality() const {return fQuality;} // Cluster quality getter + Bool_t GetStatus() const {return fStatus;} // Cluster status getter + Int_t GetToT() const {return fToT;} // Cluster Charge getter + Int_t GetTDC() const {return fTDC;} // Cluster ToF getter + Int_t GetTDCND() const {return fTdcND;} // Cluster ToF getter + Int_t GetTDCRAW() const {return fTdcRAW;} // Cluster Raw time getter + Int_t GetADC() const {return TMath::Abs(fADC);} // Cluster Charge getter + Int_t IsUsed() const {return (fADC<0) ? 1 : 0;} // Flagging + Int_t GetDetInd(Int_t n) const {return fdetIndex[n];} // Cluster Detector Indices getter + Int_t GetIndex() const {return fIdx;} // Digit Index getter + Int_t GetDeltaBC() const {return fDeltaBC;}; // deltaBC + Int_t GetL0L1Latency() const {return fL0L1Latency;}; // L0L1 latency + + void Use(Int_t = 0) {fADC=-fADC;} // setter + void SetQuality(Double_t quality) {fQuality = quality;} // Cluster quality setter + void SetStatus(Bool_t status) {fStatus = status;} // Cluster status setter + void SetToT(Int_t ToT) {fToT = ToT;} // Cluster ToT setter + void SetTDC(Int_t Tdc) {fTDC = Tdc;} // Cluster ToF setter + void SetTDCND(Int_t Tdc) {fTdcND = Tdc;} // Cluster ToFnd setter + void SetTDCRAW(Int_t Tdc) {fTdcRAW = Tdc;} // Cluster ToF-raw setter + void SetDeltaBC(Int_t value) {fDeltaBC = value;}; // deltaBC + void SetL0L1Latency(Int_t value) {fL0L1Latency = value;}; // L0-L1 latency private: - Int_t fLab[3]; // track labels - Int_t fIdx; // index of this cluster - Int_t fdetIndex[5]; // Cluster detector Indeces (sector,plate,strip,padz,padx) - // Cluster Position + Int_t fIdx; // index of the digit related to this cluster + Int_t fdetIndex[5]; // Cluster detector indices + // (sector, plate, strip, padz, padx) + // Cluster Quality + Double_t fQuality; // quality of the best track + + // Cluster Global Position Double_t fR; // r-coordinate Double_t fPhi; // phi-coordinate - Double_t fZ; // z-coordinate - Double_t fQuality; // quality of the best track // TOF Signal parameters - Int_t fTDC; // TDC count - Int_t fToT; // ToT - Int_t fADC; // ADC count + Int_t fTDC; // TDC count + Int_t fToT; // ToT + Int_t fADC; // ADC count Int_t fTdcND; // TDC count - Int_t fTdcRAW; // RAW TDC count - Bool_t fStatus; // cluster online status + Int_t fTdcRAW; // RAW TDC count + Bool_t fStatus; // cluster online status + Int_t fDeltaBC; // deltaBC + Int_t fL0L1Latency; // L0L1 latency - ClassDef(AliTOFcluster, 5) // TOF cluster + ClassDef(AliTOFcluster, 7) // TOF cluster }; #endif