propagate cluster error parametrization
[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
de777ccb 20 enum { kInChamber = BIT(16)};
bee2b41e 21 enum { kMaskedLeft = 0
22 , kMaskedCenter = 1
23 , kMaskedRight = 2
f5375dcb 24 };
0e09df31 25
bdb68f8c 26 AliTRDcluster();
203967fc 27 AliTRDcluster(
28 Int_t det, Float_t q, Float_t *pos, Float_t *sig,
29 Int_t *tracks, Char_t npads, Short_t *signals,
30 UChar_t col, UChar_t row, UChar_t time,
31 Char_t timebin, Float_t center, UShort_t volid);
a2b90f83 32 AliTRDcluster(const AliTRDcluster &c);
acc49af9 33 virtual ~AliTRDcluster() {};
a2b90f83 34
6d50f529 35 virtual void AddTrackIndex(Int_t *i);
203967fc 36 void Clear(Option_t *o="");
37
38 Bool_t IsEqual(const TObject *otherCluster) const;
39 Bool_t IsInChamber() const { return TestBit(kInChamber); }
40 Bool_t IsMasked() const { return fClusterMasking ? kTRUE : kFALSE; }
de777ccb 41 Bool_t IsShared() const { return IsClusterShared();}
42 Bool_t IsUsed() const { return IsClusterUsed(); }
a2b90f83 43
203967fc 44 UChar_t GetPadMaskedPosition() const { return fClusterMasking & 7; }
45 UChar_t GetPadMaskedStatus() const { return fClusterMasking >> 3; }
46 Int_t GetDetector() const { return fDetector; }
47 Int_t GetLocalTimeBin() const { return fLocalTimeBin; }
48 Float_t GetQ() const { return fQ; }
49 Int_t GetNPads() const { return fNPads; }
50 Float_t GetCenter() const { return fCenter; }
51 Int_t GetPadCol() const { return fPadCol; }
52 Int_t GetPadRow() const { return fPadRow; }
53 Int_t GetPadTime() const { return fPadTime; }
54 Short_t *GetSignals() { return fSignals; }
55 Float_t GetSumS() const;
56
57 void Print(Option_t* o="") const;
f5375dcb 58
203967fc 59 void SetLocalTimeBin(Char_t t) { fLocalTimeBin = t; }
60 void SetInChamber(Bool_t in = kTRUE) { SetBit(kInChamber,in); }
61 void SetPadMaskedPosition(UChar_t position);
62 void SetPadMaskedStatus(UChar_t status);
bee2b41e 63 void SetPadCol(UChar_t inPadCol){ fPadCol = inPadCol;}
64 void SetPadRow(UChar_t inPadRow){ fPadRow = inPadRow;}
65 void SetPadTime(UChar_t inPadTime){ fPadTime = inPadTime;}
66 void SetDetector(Short_t inDetector){ fDetector = inDetector;}
67 void SetQ(Float_t inQ){ fQ = inQ;}
68 void SetClusterMasking(UChar_t inClusterMasking){ fClusterMasking = inClusterMasking;}
de777ccb 69 void SetShared(Bool_t sh = kTRUE) { SetBit(AliCluster::kShared,sh); }
70 void Use(Int_t = 0) { SetBit(AliCluster::kUsed, kTRUE); }
af26ce80 71
f5375dcb 72 protected:
73 UChar_t fPadCol; // Central pad number in column direction
74 UChar_t fPadRow; // Central pad number in row direction
75 UChar_t fPadTime; // Uncalibrated time bin number
76 Char_t fLocalTimeBin; // T0-calibrated time bin number
77 UChar_t fNPads; // Number of pads in cluster
78 UChar_t fClusterMasking; // Bit field containing cluster status information;
79 Short_t fDetector; // TRD detector number
80 Short_t fSignals[7]; // Signals in the cluster
81 Float_t fQ; // Amplitude
82 Float_t fCenter; // Center of the cluster relative to the pad
0e09df31 83
f5375dcb 84 ClassDef(AliTRDcluster, 6) // Cluster for the TRD
46d29e70 85};
46d29e70 86#endif