]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TPC/AliTPCcluster.h
fWSN->Eval(0.001) to avoid fpe.
[u/mrichter/AliRoot.git] / TPC / AliTPCcluster.h
1 #ifndef ALITPCCLUSTER_H
2 #define ALITPCCLUSTER_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 //                    TPC Cluster Class
10 //
11 //   Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch 
12 //-------------------------------------------------------
13
14 #include "TMath.h"
15 #include "AliCluster.h"
16
17 //_____________________________________________________________________________
18 class AliTPCcluster : public AliCluster {
19 public:
20   AliTPCcluster():AliCluster(){fQ=0;}
21   AliTPCcluster(Int_t *lab, Float_t *hit) : AliCluster(lab,hit) {fQ = hit[4];}
22   void Use() {fQ=-fQ;}
23   void SetQ(Float_t q) {fQ=q;}
24
25   Int_t IsUsed() const {return (fQ<0) ? 1 : 0;}
26   Float_t GetQ() const {return TMath::Abs(fQ);}
27
28 private:
29   Float_t   fQ ;       //Q of cluster (in ADC counts)
30   
31   ClassDef(AliTPCcluster,1)  // Time Projection Chamber clusters
32 };
33
34 #endif
35
36