]>
Commit | Line | Data |
---|---|---|
571dda3d | 1 | #ifndef ALITOFCLUSTER_H |
2 | #define ALITOFCLUSTER_H | |
0e46b9ae | 3 | |
571dda3d | 4 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
5 | * See cxx source for full Copyright notice */ | |
571dda3d | 6 | |
0e46b9ae | 7 | /* $Id$ */ |
571dda3d | 8 | |
0e46b9ae | 9 | ////////////////////////////////////////////// |
10 | // // | |
11 | // Class for TOF cluster definition // | |
12 | // // | |
13 | ////////////////////////////////////////////// | |
571dda3d | 14 | |
0e46b9ae | 15 | #include "TMath.h" |
571dda3d | 16 | #include "TObject.h" |
17 | ||
18 | class AliTOFcluster : public TObject { | |
19 | public: | |
20 | AliTOFcluster(); // default ctor | |
bf33f8f0 | 21 | AliTOFcluster(Double_t *h, Int_t *ind, Int_t *par, Bool_t status,Int_t *l, Int_t idx); // ctor |
22 | AliTOFcluster(Double_t *h, Int_t *ind, Int_t *par); // ctor | |
571dda3d | 23 | AliTOFcluster(const AliTOFcluster & cluster); // copy ctor |
24 | virtual ~AliTOFcluster(); // dtor | |
25 | ||
26 | Double_t GetR() const {return fR;} // Cluster Radius | |
27 | Double_t GetPhi() const {return fPhi;} // Cluster Phi | |
28 | Double_t GetZ() const {return fZ;} // Cluster Z | |
bf33f8f0 | 29 | Int_t GetTDC() const {return fTDC;} // Cluster ToF |
30 | Int_t GetTDCND() const {return fTdcND;} // Cluster ToF | |
31 | Int_t GetTDCRAW() const {return fTdcRAW;} // Cluster Raw time | |
32 | Int_t GetADC() const {return TMath::Abs(fADC);} // Cluster Charge | |
33 | Int_t GetToT() const {return fToT;} // Cluster Charge | |
34 | Int_t IsUsed() const {return (fADC<0) ? 1 : 0;} // Flagging | |
35 | Int_t GetLabel(Int_t n) const {return fLab[n];} // Labels of tracks in Cluster | |
36 | Int_t GetDetInd(Int_t n) const {return fdetIndex[n];} // Cluster Detector Indeces | |
37 | Int_t GetIndex() const {return fIdx;} // Cluster Index | |
571dda3d | 38 | void Use() {fADC=-fADC;} |
d88fbf15 | 39 | Double_t GetQuality() const {return fQuality;} |
40 | void SetQuality(Double_t quality) {fQuality = quality;} | |
58d8d9a3 | 41 | Bool_t GetStatus() const {return fStatus;} |
42 | void SetStatus(Bool_t status) {fStatus = status;} | |
bf33f8f0 | 43 | void SetToT(Int_t ToT) {fToT = ToT;} |
44 | void SetTDC(Int_t Tdc) {fTDC = Tdc;} | |
45 | void SetTDCND(Int_t Tdc) {fTdcND = Tdc;} | |
46 | void SetTDCRAW(Int_t Tdc) {fTdcRAW = Tdc;} | |
47 | ||
571dda3d | 48 | private: |
49 | ||
50 | Int_t fLab[3]; // track labels | |
51 | Int_t fIdx; // index of this cluster | |
52 | Int_t fdetIndex[5]; // Cluster detector Indeces (sector,plate,strip,padz,padx) | |
bf33f8f0 | 53 | // Cluster Position |
571dda3d | 54 | Double_t fR; // r-coordinate |
55 | Double_t fPhi; // phi-coordinate | |
56 | Double_t fZ; // z-coordinate | |
d88fbf15 | 57 | Double_t fQuality; // quality of the best track |
6dc9348d | 58 | |
bf33f8f0 | 59 | // TOF Signal parameters |
60 | Int_t fTDC; // TDC count | |
61 | Int_t fToT; // ToT | |
62 | Int_t fADC; // ADC count | |
63 | Int_t fTdcND; // TDC count | |
64 | Int_t fTdcRAW; // RAW TDC count | |
65 | Bool_t fStatus; // cluster online status | |
66 | ||
67 | ClassDef(AliTOFcluster, 5) // TOF cluster | |
571dda3d | 68 | }; |
69 | ||
70 | #endif |