]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TRD/AliTRDcluster.h
AddRunType calls added in the constructor (F.Prino)
[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
0e09df31 20 enum { kInChamber = 1
21 , kShared = 2
22 , kMasked = 4 };
23
bdb68f8c 24 AliTRDcluster();
34eaaa7e 25 AliTRDcluster(Int_t det, Float_t q, Float_t *pos, Float_t *sig
26 , Int_t *tracks, Char_t npads, Short_t *signals
af26ce80 27 , UChar_t col, UChar_t row, UChar_t time
28 , Char_t timebin, Float_t center, UShort_t volid);
a2b90f83 29 AliTRDcluster(const AliTRDcluster &c);
acc49af9 30 virtual ~AliTRDcluster() {};
a2b90f83 31
6d50f529 32 virtual void AddTrackIndex(Int_t *i);
a2b90f83 33
0e09df31 34 Bool_t IsInChamber() const { return TestBit(kInChamber); }
35 Bool_t IsShared() const { return TestBit(kShared); }
36 Bool_t IsUsed() const { return (fQ < 0) ? kTRUE : kFALSE; }
37 Bool_t HasMaskedPad() const { return TestBit(kMasked); }
bcb6fb78 38
0e09df31 39 void Use(Int_t = 0) { fQ = -fQ; }
34eaaa7e 40
0e09df31 41 Int_t GetDetector() const { return fDetector; }
42 Int_t GetLocalTimeBin() const { return fLocalTimeBin; }
43 Float_t GetQ() const { return fQ; }
44 Int_t GetNPads() const { return fNPads; }
45 Float_t GetCenter() const { return fCenter; }
46 Int_t GetPadCol() const { return fPadCol; }
47 Int_t GetPadRow() const { return fPadRow; }
48 Int_t GetPadTime() const { return fPadTime; }
49 Short_t *GetSignals() { return fSignals; }
6d50f529 50 Float_t GetSumS() const;
5443e65e 51
0e09df31 52 void SetLocalTimeBin(Char_t t) { fLocalTimeBin = t; }
53 void SetInChamber(Bool_t in = kTRUE) { SetBit(kInChamber,in); }
54 void SetShared(Bool_t sh = kTRUE) { SetBit(kShared,sh); }
55 void SetMaskedPad(Bool_t mp = kTRUE) { SetBit(kMasked,mp); }
af26ce80 56
46d29e70 57 protected:
5443e65e 58
6d50f529 59 Int_t fDetector; // TRD detector number
af26ce80 60 Char_t fLocalTimeBin; // T0-calibrated time bin number
6d50f529 61 Float_t fQ; // Amplitude
62 Char_t fNPads; // Number of pads in cluster
63 Float_t fCenter; // Center of the cluster relative to the pad
af26ce80 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
6d50f529 67 Short_t fSignals[7]; // Signals in the cluster
0e09df31 68
af26ce80 69 ClassDef(AliTRDcluster,5) // Cluster for the TRD
46d29e70 70
71};
46d29e70 72#endif