]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TRD/AliTRDcluster.h
Store the total number of produced particles in the header.
[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, Char_t timebin
24               , Float_t center, UShort_t volid);
25   AliTRDcluster(const AliTRDcluster &c);
26
27   virtual void     AddTrackIndex(Int_t *i); 
28
29           Int_t    IsUsed() const               { return (fQ < 0) ? 1 : 0;    }
30           void     Use(Int_t = 0)               { fQ = -fQ;                   }
31     
32           Int_t    GetDetector() const          { return fDetector; }
33           Int_t    GetLocalTimeBin() const      { return fTimeBin;  }
34           Float_t  GetQ() const                 { return fQ;        }
35           Int_t    GetNPads() const             { return fNPads;    }
36           Float_t  GetCenter() const            { return fCenter;   }
37           Int_t    GetPad() const               { return fPad;      }
38           Short_t *GetSignals()                 { return fSignals;  }
39           Float_t  GetSumS() const;
40
41  protected:
42   
43           Int_t   fDetector;       //  TRD detector number
44           Char_t  fTimeBin;        //  Time bin number within the detector
45           Float_t fQ;              //  Amplitude 
46           Char_t  fNPads;          //  Number of pads in cluster
47           Float_t fCenter;         //  Center of the cluster relative to the pad 
48           UChar_t fPad;            //  Central pad number
49           Short_t fSignals[7];     //  Signals in the cluster
50   
51   ClassDef(AliTRDcluster,4)        //  Cluster for the TRD
52  
53 };
54 #endif