]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TPC/AliTPCcluster.h
Added ToF as data member
[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
28private:
73042f01 29 Float_t fQ ; //Q of cluster (in ADC counts)
73042f01 30
31 ClassDef(AliTPCcluster,1) // Time Projection Chamber clusters
32};
33
73042f01 34#endif
35
36