]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TPC/AliTPCclusterKr.h
Updating CMake files
[u/mrichter/AliRoot.git] / TPC / AliTPCclusterKr.h
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 "AliCluster.h"
15 #include "TObjArray.h"
16 #include "AliTPCvtpr.h"
17
18
19 //_____________________________________________________________________________
20 class AliTPCclusterKr: public AliCluster{
21 public:
22   AliTPCclusterKr();
23   AliTPCclusterKr(const AliTPCclusterKr & param);//copy constructor
24   AliTPCclusterKr &operator = (const AliTPCclusterKr & param); 
25   virtual ~AliTPCclusterKr();
26
27   virtual void SetCenter();//set center of the cluster weighted by charge
28
29   virtual void SetMax(AliTPCvtpr q){fMax=q;}//set values of max. in cluster
30   virtual void SetADCcluster(Int_t q){fADCcluster=q;}
31   virtual void SetSec(Short_t q){fSec=q;}
32   virtual void SetNPads(Short_t q){fNPads=q;}
33   virtual void SetNRows(Short_t q){fNRows=q;}
34   virtual void SetSize(){fSize=fCluster->GetEntriesFast();}
35   virtual void SetCenterX(Double_t q){fCenterX=q;}
36   virtual void SetCenterY(Double_t q){fCenterY=q;}
37   virtual void SetCenterT(Double_t q){fCenterT=q;}
38   //void AddDigitToCluster(AliTPCvtpr *q){fCluster.push_back(q);}
39   virtual void AddDigitToCluster(AliTPCvtpr *q){
40     fCluster->AddLast(q);
41     //fCluster->Compress();
42   }
43
44   AliTPCvtpr GetMax() const {return fMax;}
45   Int_t GetADCcluster() const {return  fADCcluster;}
46   Short_t GetSec() const {return fSec;}
47   Short_t GetNPads() const {return fNPads;}
48   Short_t GetNRows() const {return fNRows;}
49   Short_t GetSize() const {return fSize;}
50   Double_t GetCenterX() const {return fCenterX;}
51   Double_t GetCenterY() const {return fCenterY;}
52   Double_t GetCenterT() const {return fCenterT;}
53   AliTPCvtpr *GetDigitFromCluster(Int_t i) const {return (AliTPCvtpr*)fCluster->At(i);}
54
55 private:
56   AliTPCvtpr fMax;//max (ADC,timebin,pad,row) in cluster
57   Int_t fADCcluster; //ADC of cluster
58   Short_t fSec;  //sector of the cluster
59   Short_t fNPads; //number of pads in cluster
60   Short_t fNRows; //number of rows in cluster
61   Short_t fSize; //size of vector
62   Double_t fCenterX;// X coordinate of the cluster center in cm
63   Double_t fCenterY;// Y coordinate of the cluster center in cm
64   Double_t fCenterT;// time coordinate of the cluster center in timebins
65   //std::vector< AliTPCvtpr*> fCluster;//cluster contents(adc,nt,np,nr)
66   TObjArray *fCluster;//cluster contents(adc,nt,np,nr)
67
68
69   ClassDef(AliTPCclusterKr,4)  // Time Projection Chamber Kr clusters
70 };
71
72
73 #endif
74
75