]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TPC/AliTPCclusterKr.h
Revert back the change in destructor (Marian)
[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 <vector>
15 #include <list>
16 #include "TObject.h"
17 #include "AliTPCvtpr.h"
18
19 //_____________________________________________________________________________
20 class AliTPCclusterKr: public TObject{
21 public:
22   AliTPCclusterKr();
23   AliTPCclusterKr(const AliTPCclusterKr & param);//copy constructor
24   AliTPCclusterKr &operator = (const AliTPCclusterKr & param); 
25   ~AliTPCclusterKr();
26
27   void SetCenter();//set center of the cluster weighted by charge
28
29   void SetMax(AliTPCvtpr q){fMax=q;}//set values of max. in cluster
30   void SetADCcluster(Int_t q){fADCcluster=q;}
31   void SetSec(Short_t q){fSec=q;}
32   void SetNPads(Short_t q){fNPads=q;}
33   void SetNRows(Short_t q){fNRows=q;}
34   void SetSize(){fSize=fCluster.size();}
35   void SetCenterX(Double_t q){fCenterX=q;}
36   void SetCenterY(Double_t q){fCenterY=q;}
37   void SetCenterT(Double_t q){fCenterT=q;}
38
39   AliTPCvtpr GetMax(){return fMax;}
40   Int_t GetADCcluster(){return  fADCcluster;}
41   Short_t GetSec(){return fSec;}
42   Short_t GetNPads(){return fNPads;}
43   Short_t GetNRows(){return fNRows;}
44   Short_t GetSize(){return fSize;}
45   Double_t GetCenterX(){return fCenterX;}
46   Double_t GetCenterY(){return fCenterY;}
47   Double_t GetCenterT(){return fCenterT;}
48
49   std::vector< AliTPCvtpr*> fCluster;//cluster contents(adc,nt,np,nr)
50
51 private:
52   AliTPCvtpr fMax;//max (ADC,timebin,pad,row) in cluster
53   Int_t fADCcluster; //ADC of cluster
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
57   Short_t fSize; //size of vector
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
61
62   ClassDef(AliTPCclusterKr,2)  // Time Projection Chamber Kr clusters
63 };
64
65
66 #endif
67
68