]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TRD/AliTRDcluster.h
AliACORDEDataDCS added
[u/mrichter/AliRoot.git] / TRD / AliTRDcluster.h
CommitLineData
46d29e70 1#ifndef ALITRDCLUSTER_H
2#define ALITRDCLUSTER_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id$ */
7
6d50f529 8///////////////////////////////////////////////////////////////////////////////
9// //
10// TRD cluster //
11// //
12///////////////////////////////////////////////////////////////////////////////
5443e65e 13
14#include "AliCluster.h"
46d29e70 15
5443e65e 16class AliTRDcluster : public AliCluster {
46d29e70 17
18 public:
19
f5375dcb 20 enum { kInChamber = BIT(1)
21 , kShared = BIT(2)
22 };
23 enum { kMaskedLeft = BIT(0)
24 , kMaskedCenter= BIT(1)
25 , kMaskedRight = BIT(2)
26 };
0e09df31 27
bdb68f8c 28 AliTRDcluster();
34eaaa7e 29 AliTRDcluster(Int_t det, Float_t q, Float_t *pos, Float_t *sig
30 , Int_t *tracks, Char_t npads, Short_t *signals
af26ce80 31 , UChar_t col, UChar_t row, UChar_t time
32 , Char_t timebin, Float_t center, UShort_t volid);
a2b90f83 33 AliTRDcluster(const AliTRDcluster &c);
acc49af9 34 virtual ~AliTRDcluster() {};
a2b90f83 35
6d50f529 36 virtual void AddTrackIndex(Int_t *i);
a2b90f83 37
0e09df31 38 Bool_t IsInChamber() const { return TestBit(kInChamber); }
f5375dcb 39 Bool_t IsMasked() const { return fClusterMasking ? kTRUE : kFALSE; }
0e09df31 40 Bool_t IsShared() const { return TestBit(kShared); }
41 Bool_t IsUsed() const { return (fQ < 0) ? kTRUE : kFALSE; }
f5375dcb 42
43 UChar_t GetPadMaskedPosition() const { return fClusterMasking & 7; }
44 UChar_t GetPadMaskedStatus() const { return fClusterMasking >> 3; }
0e09df31 45 Int_t GetDetector() const { return fDetector; }
46 Int_t GetLocalTimeBin() const { return fLocalTimeBin; }
47 Float_t GetQ() const { return fQ; }
48 Int_t GetNPads() const { return fNPads; }
49 Float_t GetCenter() const { return fCenter; }
f5375dcb 50 Int_t GetPadCol() const { return fPadCol; }
51 Int_t GetPadRow() const { return fPadRow; }
0e09df31 52 Int_t GetPadTime() const { return fPadTime; }
53 Short_t *GetSignals() { return fSignals; }
6d50f529 54 Float_t GetSumS() const;
5443e65e 55
0e09df31 56 void SetLocalTimeBin(Char_t t) { fLocalTimeBin = t; }
57 void SetInChamber(Bool_t in = kTRUE) { SetBit(kInChamber,in); }
f5375dcb 58 void SetPadMaskedPosition(UChar_t position);
59 void SetPadMaskedStatus(UChar_t status);
0e09df31 60 void SetShared(Bool_t sh = kTRUE) { SetBit(kShared,sh); }
f5375dcb 61 void Use(Int_t = 0) { fQ = -fQ; }
af26ce80 62
f5375dcb 63 protected:
64 UChar_t fPadCol; // Central pad number in column direction
65 UChar_t fPadRow; // Central pad number in row direction
66 UChar_t fPadTime; // Uncalibrated time bin number
67 Char_t fLocalTimeBin; // T0-calibrated time bin number
68 UChar_t fNPads; // Number of pads in cluster
69 UChar_t fClusterMasking; // Bit field containing cluster status information;
70 Short_t fDetector; // TRD detector number
71 Short_t fSignals[7]; // Signals in the cluster
72 Float_t fQ; // Amplitude
73 Float_t fCenter; // Center of the cluster relative to the pad
0e09df31 74
f5375dcb 75 ClassDef(AliTRDcluster, 6) // Cluster for the TRD
46d29e70 76};
46d29e70 77#endif