]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/AliTRDcluster.h
Bug fix: uncomment argument that is used in the method
[u/mrichter/AliRoot.git] / TRD / AliTRDcluster.h
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
8 ///////////////////////////////////////////////////////////////////////////////
9 //                                                                           //
10 //  TRD cluster                                                              //
11 //                                                                           //
12 ///////////////////////////////////////////////////////////////////////////////
13
14 #include "AliCluster.h"  
15
16 class AliTRDcluster : public AliCluster {
17
18  public:
19
20   AliTRDcluster();
21   AliTRDcluster(Int_t det, Float_t q, Float_t *pos, Float_t *sig
22               , Int_t *tracks, Char_t npads, Short_t *signals
23               , UChar_t col, UChar_t row, UChar_t time
24               , Char_t timebin, Float_t center, UShort_t volid);
25   AliTRDcluster(const AliTRDcluster &c);
26   virtual ~AliTRDcluster() {};
27
28   virtual void     AddTrackIndex(Int_t *i); 
29
30           Bool_t   IsInChamber() const          { return TestBit(1);       }
31           Bool_t   IsShared() const             { return TestBit(2);       }
32           Bool_t   IsUsed() const               { return (fQ < 0) ? kTRUE : kFALSE; }
33           
34           void     Use(Int_t = 0)               { fQ = -fQ;                }
35     
36           Int_t    GetDetector() const          { return fDetector;        }
37           Int_t    GetLocalTimeBin() const      { return fLocalTimeBin;    }
38           Float_t  GetQ() const                 { return fQ;               }
39           Int_t    GetNPads() const             { return fNPads;           }
40           Float_t  GetCenter() const            { return fCenter;          }
41           Int_t    GetPadCol() const            { return fPadCol;          }
42           Int_t    GetPadRow() const            { return fPadRow;          }
43           Int_t    GetPadTime() const           { return fPadTime;         }
44           Short_t *GetSignals()                 { return fSignals;         }
45           Float_t  GetSumS() const;
46
47           void     SetLocalTimeBin(Char_t t)    { fLocalTimeBin = t;       }
48           void     SetInChamber(Bool_t in = kTRUE)      {SetBit(1, in);}
49
50  protected:
51   
52           Int_t   fDetector;       //  TRD detector number
53           Char_t  fLocalTimeBin;   //  T0-calibrated time bin number
54           Float_t fQ;              //  Amplitude 
55           Char_t  fNPads;          //  Number of pads in cluster
56           Float_t fCenter;         //  Center of the cluster relative to the pad 
57           UChar_t fPadCol;         //  Central pad number in column direction
58           UChar_t fPadRow;         //  Central pad number in row direction
59           UChar_t fPadTime;        //  Uncalibrated time bin number
60           Short_t fSignals[7];     //  Signals in the cluster
61   
62   ClassDef(AliTRDcluster,5)        //  Cluster for the TRD
63  
64 };
65 #endif