Added macro to lauch TOF QA task with extended functionality via plugin
[u/mrichter/AliRoot.git] / TOF / AliTOFcluster.h
CommitLineData
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"
638f14f1 16#include "AliCluster3D.h"
571dda3d 17
638f14f1 18class AliTOFcluster : public AliCluster3D {
571dda3d 19 public:
20 AliTOFcluster(); // default ctor
638f14f1 21 AliTOFcluster(UShort_t volId,
22 Float_t x, Float_t y, Float_t z,
23 Float_t sx2, Float_t sxy, Float_t sxz,
3e2f0097 24 Float_t sy2, Float_t syz,
25 Float_t sz2,
0e74c396 26 Int_t *lab, Int_t * const ind, Int_t *par,
3e2f0097 27 Bool_t status, Int_t idx); // ctor
571dda3d 28 AliTOFcluster(const AliTOFcluster & cluster); // copy ctor
ce4b5362 29 AliTOFcluster& operator = (const AliTOFcluster& cls);
571dda3d 30 virtual ~AliTOFcluster(); // dtor
31
638f14f1 32 // Getters and Setters
571dda3d 33 Double_t GetR() const {return fR;} // Cluster Radius
34 Double_t GetPhi() const {return fPhi;} // Cluster Phi
3e2f0097 35
36 Double_t GetQuality() const {return fQuality;} // Cluster quality getter
37 Bool_t GetStatus() const {return fStatus;} // Cluster status getter
38 Int_t GetToT() const {return fToT;} // Cluster Charge getter
39 Int_t GetTDC() const {return fTDC;} // Cluster ToF getter
40 Int_t GetTDCND() const {return fTdcND;} // Cluster ToF getter
41 Int_t GetTDCRAW() const {return fTdcRAW;} // Cluster Raw time getter
42 Int_t GetADC() const {return TMath::Abs(fADC);} // Cluster Charge getter
43 Int_t IsUsed() const {return (fADC<0) ? 1 : 0;} // Flagging
44 Int_t GetDetInd(Int_t n) const {return fdetIndex[n];} // Cluster Detector Indices getter
45 Int_t GetIndex() const {return fIdx;} // Digit Index getter
2bf4d9d6 46 Int_t GetDeltaBC() const {return fDeltaBC;}; // deltaBC
47 Int_t GetL0L1Latency() const {return fL0L1Latency;}; // L0L1 latency
3e2f0097 48
49 void Use(Int_t = 0) {fADC=-fADC;} // setter
50 void SetQuality(Double_t quality) {fQuality = quality;} // Cluster quality setter
51 void SetStatus(Bool_t status) {fStatus = status;} // Cluster status setter
52 void SetToT(Int_t ToT) {fToT = ToT;} // Cluster ToT setter
53 void SetTDC(Int_t Tdc) {fTDC = Tdc;} // Cluster ToF setter
54 void SetTDCND(Int_t Tdc) {fTdcND = Tdc;} // Cluster ToFnd setter
55 void SetTDCRAW(Int_t Tdc) {fTdcRAW = Tdc;} // Cluster ToF-raw setter
2bf4d9d6 56 void SetDeltaBC(Int_t value) {fDeltaBC = value;}; // deltaBC
57 void SetL0L1Latency(Int_t value) {fL0L1Latency = value;}; // L0-L1 latency
bf33f8f0 58
571dda3d 59 private:
60
3e2f0097 61 Int_t fIdx; // index of the digit related to this cluster
62 Int_t fdetIndex[5]; // Cluster detector indices
63 // (sector, plate, strip, padz, padx)
638f14f1 64 // Cluster Quality
65 Double_t fQuality; // quality of the best track
66
67 // Cluster Global Position
571dda3d 68 Double_t fR; // r-coordinate
69 Double_t fPhi; // phi-coordinate
6dc9348d 70
bf33f8f0 71 // TOF Signal parameters
3e2f0097 72 Int_t fTDC; // TDC count
73 Int_t fToT; // ToT
74 Int_t fADC; // ADC count
bf33f8f0 75 Int_t fTdcND; // TDC count
3e2f0097 76 Int_t fTdcRAW; // RAW TDC count
77 Bool_t fStatus; // cluster online status
2bf4d9d6 78 Int_t fDeltaBC; // deltaBC
79 Int_t fL0L1Latency; // L0L1 latency
bf33f8f0 80
2bf4d9d6 81 ClassDef(AliTOFcluster, 7) // TOF cluster
571dda3d 82};
83
84#endif