Splitting TPC library (T.Kuhr)
[u/mrichter/AliRoot.git] / TPC / AliTPCcluster.h
CommitLineData
73042f01 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
83d73500 14#include "TMath.h"
b19a0509 15#include "AliCluster.h"
73042f01 16
17//_____________________________________________________________________________
b19a0509 18class AliTPCcluster : public AliCluster {
73042f01 19public:
b19a0509 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;}
73042f01 24
b19a0509 25 Int_t IsUsed() const {return (fQ<0) ? 1 : 0;}
83d73500 26 Float_t GetQ() const {return TMath::Abs(fQ);}
73042f01 27
6d75e4b6 28 static Double_t SigmaY2(Double_t r, Double_t tgl, Double_t pt);
29 static Double_t SigmaZ2(Double_t r, Double_t tgl);
30
73042f01 31private:
73042f01 32 Float_t fQ ; //Q of cluster (in ADC counts)
73042f01 33
34 ClassDef(AliTPCcluster,1) // Time Projection Chamber clusters
35};
36
73042f01 37#endif
38
39