]> git.uio.no Git - u/mrichter/AliRoot.git/blame - TPC/AliTPCclusterKr.h
Bug fix: corrected file name (Levente)
[u/mrichter/AliRoot.git] / TPC / AliTPCclusterKr.h
CommitLineData
9a1e27fe 1#ifndef ALITPCCLUSTERKR_H
2#define ALITPCCLUSTERKR_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id: AliTPCclusterKr.h,v 1.8 2008/01/22 16:07:15 matyja Exp $ */
7
8//-------------------------------------------------------
9// TPC Kr Cluster Class
10//
11// Origin: Adam Matyja, INP PAN, adam.matyja@ifj.edu.pl
12//-------------------------------------------------------
13
14#include <vector>
b67657b5 15#include <list>
9a1e27fe 16#include "TObject.h"
17#include "AliTPCvtpr.h"
18
19//_____________________________________________________________________________
20class AliTPCclusterKr: public TObject{
21public:
22 AliTPCclusterKr();
23 AliTPCclusterKr(const AliTPCclusterKr & param);//copy constructor
24 AliTPCclusterKr &operator = (const AliTPCclusterKr & param);
25 ~AliTPCclusterKr();
26
b67657b5 27 void SetCenter();//set center of the cluster weighted by charge
9a1e27fe 28
29 void SetMax(AliTPCvtpr q){fMax=q;}//set values of max. in cluster
88f51054 30 void SetADCcluster(Int_t q){fADCcluster=q;}
b67657b5 31 void SetSec(Short_t q){fSec=q;}
32 void SetNPads(Short_t q){fNPads=q;}
33 void SetNRows(Short_t q){fNRows=q;}
9a1e27fe 34 void SetSize(){fSize=fCluster.size();}
b67657b5 35 void SetCenterX(Double_t q){fCenterX=q;}
36 void SetCenterY(Double_t q){fCenterY=q;}
37 void SetCenterT(Double_t q){fCenterT=q;}
9a1e27fe 38
39 AliTPCvtpr GetMax(){return fMax;}
88f51054 40 Int_t GetADCcluster(){return fADCcluster;}
b67657b5 41 Short_t GetSec(){return fSec;}
42 Short_t GetNPads(){return fNPads;}
43 Short_t GetNRows(){return fNRows;}
9a1e27fe 44 Short_t GetSize(){return fSize;}
b67657b5 45 Double_t GetCenterX(){return fCenterX;}
46 Double_t GetCenterY(){return fCenterY;}
47 Double_t GetCenterT(){return fCenterT;}
9a1e27fe 48
49 std::vector< AliTPCvtpr*> fCluster;//cluster contents(adc,nt,np,nr)
50
51private:
52 AliTPCvtpr fMax;//max (ADC,timebin,pad,row) in cluster
88f51054 53 Int_t fADCcluster; //ADC of cluster
b67657b5 54 Short_t fSec; //sector of the cluster
55 Short_t fNPads; //number of pads in cluster
56 Short_t fNRows; //number of rows in cluster
9a1e27fe 57 Short_t fSize; //size of vector
b67657b5 58 Double_t fCenterX;// X coordinate of the cluster center in cm
59 Double_t fCenterY;// Y coordinate of the cluster center in cm
60 Double_t fCenterT;// time coordinate of the cluster center in timebins
9a1e27fe 61
88f51054 62 ClassDef(AliTPCclusterKr,2) // Time Projection Chamber Kr clusters
9a1e27fe 63};
64
65
66#endif
67
68