]>
Commit | Line | Data |
---|---|---|
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 | ||
422897da | 14 | #include "AliCluster.h" |
15 | #include "TObjArray.h" | |
9a1e27fe | 16 | #include "AliTPCvtpr.h" |
17 | ||
422897da | 18 | |
9a1e27fe | 19 | //_____________________________________________________________________________ |
422897da | 20 | class AliTPCclusterKr: public AliCluster{ |
9a1e27fe | 21 | public: |
22 | AliTPCclusterKr(); | |
23 | AliTPCclusterKr(const AliTPCclusterKr & param);//copy constructor | |
24 | AliTPCclusterKr &operator = (const AliTPCclusterKr & param); | |
422897da | 25 | virtual ~AliTPCclusterKr(); |
9a1e27fe | 26 | |
422897da | 27 | virtual void SetCenter();//set center of the cluster weighted by charge |
9a1e27fe | 28 | |
422897da | 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); | |
557ab431 | 41 | //fCluster->Compress(); |
422897da | 42 | } |
9a1e27fe | 43 | |
422897da | 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);} | |
9a1e27fe | 54 | |
55 | private: | |
56 | AliTPCvtpr fMax;//max (ADC,timebin,pad,row) in cluster | |
88f51054 | 57 | Int_t fADCcluster; //ADC of cluster |
b67657b5 | 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 | |
9a1e27fe | 61 | Short_t fSize; //size of vector |
b67657b5 | 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 | |
422897da | 65 | //std::vector< AliTPCvtpr*> fCluster;//cluster contents(adc,nt,np,nr) |
66 | TObjArray *fCluster;//cluster contents(adc,nt,np,nr) | |
67 | ||
9a1e27fe | 68 | |
422897da | 69 | ClassDef(AliTPCclusterKr,4) // Time Projection Chamber Kr clusters |
9a1e27fe | 70 | }; |
71 | ||
72 | ||
73 | #endif | |
74 | ||
75 |