-#ifndef ALITPCCLUSTERKR_H\r\r
-#define ALITPCCLUSTERKR_H\r\r
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *\r\r
- * See cxx source for full Copyright notice */\r\r
-\r\r
-/* $Id: AliTPCclusterKr.h,v 1.8 2008/01/22 16:07:15 matyja Exp $ */\r\r
-\r\r
-//-------------------------------------------------------\r\r
-// TPC Kr Cluster Class\r\r
-//\r\r
-// Origin: Adam Matyja, INP PAN, adam.matyja@ifj.edu.pl\r\r
-//-------------------------------------------------------\r\r
-\r\r
-#include "AliCluster.h"\r\r
-#include "TObjArray.h"\r\r
-#include "AliTPCvtpr.h"\r\r
-//#include "TH1F.h"\r\r
-#include "TMath.h"\r\r
-#include "TArrayI.h"\r\r
-\r\r
-//_____________________________________________________________________________\r\r
-class AliTPCclusterKr: public AliCluster{\r\r
-public:\r\r
- AliTPCclusterKr();\r\r
- AliTPCclusterKr(const AliTPCclusterKr & param);//copy constructor\r\r
- AliTPCclusterKr &operator = (const AliTPCclusterKr & param); \r\r
- virtual ~AliTPCclusterKr();\r\r
-\r\r
- virtual void SetCenter();//set center of the cluster weighted by charge\r\r
-\r\r
- virtual void SetMax(AliTPCvtpr q){fMax=q;}//set values of max. in cluster\r\r
- virtual void SetADCcluster(Int_t q){fADCcluster=q;}\r\r
- virtual void SetSec(Short_t q){fSec=q;}\r\r
- virtual void SetNPads(Short_t q){fNPads=q;}\r\r
- virtual void SetNRows(Short_t q){fNRows=q;}\r\r
- virtual void SetSize(){fSize=fCluster->GetEntriesFast();}\r\r
- virtual void SetCenterX(Double_t q){fCenterX=q;}\r\r
- virtual void SetCenterY(Double_t q){fCenterY=q;}\r\r
- virtual void SetCenterT(Double_t q){fCenterT=q;}\r\r
-\r\r
- virtual void SetTimebins1D(Short_t q){fTimebins1D=q;}\r\r
- virtual void SetPads1D(Short_t q){fPads1D=q;}\r\r
- virtual void Set1D();\r\r
- virtual void SetPadRMS(Double_t q){fPadRMS=q;}\r\r
- virtual void SetRowRMS(Double_t q){fRowRMS=q;}\r\r
- virtual void SetTimebinRMS(Double_t q){fTimebinRMS=q;}\r\r
- virtual void SetPadRMS();\r\r
- virtual void SetRowRMS();\r\r
- virtual void SetTimebinRMS();\r\r
- virtual void SetRMS();\r\r
- virtual void SetTimeStamp(UInt_t timestamp){ fTimeStamp = timestamp; }\r\r
- //void AddDigitToCluster(AliTPCvtpr *q){fCluster.push_back(q);}\r\r
- virtual void AddDigitToCluster(AliTPCvtpr *q){\r\r
- fCluster->AddLast(q);\r\r
- //fCluster->Compress();\r\r
- }\r\r
-\r\r
- AliTPCvtpr GetMax() const {return fMax;}\r\r
- Int_t GetADCcluster() const {return fADCcluster;}\r\r
- Short_t GetSec() const {return fSec;}\r\r
- Short_t GetNPads() const {return fNPads;}\r\r
- Short_t GetNRows() const {return fNRows;}\r\r
- Short_t GetSize() const {return fSize;}\r\r
-\r\r
- Short_t GetTimebins1D(){return fTimebins1D;}\r\r
- Short_t GetPads1D(){return fPads1D;}\r\r
- Double_t GetPadRMS(){return fPadRMS;}\r\r
- Double_t GetRowRMS(){return fRowRMS;}\r\r
- Double_t GetTimebinRMS(){return fTimebinRMS;}\r\r
-\r\r
- Double_t GetCenterX() const {return fCenterX;}\r\r
- Double_t GetCenterY() const {return fCenterY;}\r\r
- Double_t GetCenterT() const {return fCenterT;}\r\r
- AliTPCvtpr *GetDigitFromCluster(Int_t i) const {return (AliTPCvtpr*)fCluster->At(i);}\r\r
- UInt_t GetTimeStamp() const {return fTimeStamp;}\r\r
-\r\r
-private:\r\r
- AliTPCvtpr fMax;//max (ADC,timebin,pad,row) in cluster\r\r
- Int_t fADCcluster; //ADC of cluster\r\r
- Short_t fSec; //sector of the cluster\r\r
- Short_t fNPads; //number of pads in cluster\r\r
- Short_t fNRows; //number of rows in cluster or row max - min\r\r
-\r\r
- Short_t fTimebins1D; //Timebin max - min\r\r
- Short_t fPads1D; //Pad max - min\r\r
- Double_t fPadRMS; //Pad RMS\r\r
- Double_t fRowRMS; //Row RMS\r\r
- Double_t fTimebinRMS; //Timebin RMS\r\r
-\r\r
- Short_t fSize; //size of vector\r\r
- Double_t fCenterX;// X coordinate of the cluster center in cm\r\r
- Double_t fCenterY;// Y coordinate of the cluster center in cm\r\r
- Double_t fCenterT;// time coordinate of the cluster center in timebins\r\r
- //std::vector< AliTPCvtpr*> fCluster;//cluster contents(adc,nt,np,nr)\r\r
- TObjArray *fCluster;//cluster contents(adc,nt,np,nr)\r\r
- UInt_t fTimeStamp; //time stamp from event header\r\r
-\r\r
- ClassDef(AliTPCclusterKr,7) // Time Projection Chamber Kr clusters\r\r
-};\r\r
-\r\r
-\r\r
-#endif\r\r
-\r\r
-\r\r
+#ifndef ALITPCCLUSTERKR_H
+
+
+#define ALITPCCLUSTERKR_H
+
+
+/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
+
+
+ * See cxx source for full Copyright notice */
+
+
+
+
+
+/* $Id: AliTPCclusterKr.h,v 1.8 2008/01/22 16:07:15 matyja Exp $ */
+
+
+
+
+
+//-------------------------------------------------------
+
+
+// TPC Kr Cluster Class
+
+
+//
+
+
+// Origin: Adam Matyja, INP PAN, adam.matyja@ifj.edu.pl
+
+
+//-------------------------------------------------------
+
+
+
+
+
+#include "AliCluster.h"
+
+
+#include "TObjArray.h"
+
+
+#include "AliTPCvtpr.h"
+
+
+//#include "TH1F.h"
+
+
+#include "TMath.h"
+
+
+#include "TArrayI.h"
+
+
+
+
+
+//_____________________________________________________________________________
+
+
+class AliTPCclusterKr: public AliCluster{
+
+
+public:
+
+
+ AliTPCclusterKr();
+
+
+ AliTPCclusterKr(const AliTPCclusterKr & param);//copy constructor
+
+
+ AliTPCclusterKr &operator = (const AliTPCclusterKr & param);
+
+
+ virtual ~AliTPCclusterKr();
+
+
+
+
+
+ virtual void SetCenter();//set center of the cluster weighted by charge
+
+
+
+
+
+ virtual void SetMax(AliTPCvtpr q){fMax=q;}//set values of max. in cluster
+
+
+ virtual void SetADCcluster(Int_t q){fADCcluster=q;}
+
+
+ virtual void SetSec(Short_t q){fSec=q;}
+
+
+ virtual void SetNPads(Short_t q){fNPads=q;}
+
+
+ virtual void SetNRows(Short_t q){fNRows=q;}
+
+
+ virtual void SetSize(){fSize=fCluster->GetEntriesFast();}
+
+
+ virtual void SetCenterX(Double_t q){fCenterX=q;}
+
+
+ virtual void SetCenterY(Double_t q){fCenterY=q;}
+
+
+ virtual void SetCenterT(Double_t q){fCenterT=q;}
+
+
+
+
+
+ virtual void SetTimebins1D(Short_t q){fTimebins1D=q;}
+
+
+ virtual void SetPads1D(Short_t q){fPads1D=q;}
+
+
+ virtual void Set1D();
+
+
+ virtual void SetPadRMS(Double_t q){fPadRMS=q;}
+
+
+ virtual void SetRowRMS(Double_t q){fRowRMS=q;}
+
+
+ virtual void SetTimebinRMS(Double_t q){fTimebinRMS=q;}
+
+
+ virtual void SetPadRMS();
+
+
+ virtual void SetRowRMS();
+
+
+ virtual void SetTimebinRMS();
+
+
+ virtual void SetRMS();
+
+
+ virtual void SetTimeStamp(UInt_t timestamp){ fTimeStamp = timestamp; }
+ virtual void SetRun(UInt_t run){ fRun = run; }
+
+
+ //void AddDigitToCluster(AliTPCvtpr *q){fCluster.push_back(q);}
+
+
+ virtual void AddDigitToCluster(AliTPCvtpr *q){
+
+
+ fCluster->AddLast(q);
+
+
+ //fCluster->Compress();
+
+
+ }
+
+
+
+
+
+ AliTPCvtpr GetMax() const {return fMax;}
+
+
+ Int_t GetADCcluster() const {return fADCcluster;}
+
+
+ Short_t GetSec() const {return fSec;}
+
+
+ Short_t GetNPads() const {return fNPads;}
+
+
+ Short_t GetNRows() const {return fNRows;}
+
+
+ Short_t GetSize() const {return fSize;}
+
+
+
+
+
+ Short_t GetTimebins1D(){return fTimebins1D;}
+
+
+ Short_t GetPads1D(){return fPads1D;}
+
+
+ Double_t GetPadRMS(){return fPadRMS;}
+
+
+ Double_t GetRowRMS(){return fRowRMS;}
+
+
+ Double_t GetTimebinRMS(){return fTimebinRMS;}
+
+
+
+
+
+ Double_t GetCenterX() const {return fCenterX;}
+
+
+ Double_t GetCenterY() const {return fCenterY;}
+
+
+ Double_t GetCenterT() const {return fCenterT;}
+
+
+ AliTPCvtpr *GetDigitFromCluster(Int_t i) const {return (AliTPCvtpr*)fCluster->At(i);}
+
+
+ UInt_t GetTimeStamp() const {return fTimeStamp;}
+ UInt_t GetRun() const {return fRun;}
+
+
+
+
+
+private:
+
+
+ AliTPCvtpr fMax;//max (ADC,timebin,pad,row) in cluster
+
+
+ Int_t fADCcluster; //ADC of cluster
+
+
+ Short_t fSec; //sector of the cluster
+
+
+ Short_t fNPads; //number of pads in cluster
+
+
+ Short_t fNRows; //number of rows in cluster or row max - min
+
+
+
+
+
+ Short_t fTimebins1D; //Timebin max - min
+
+
+ Short_t fPads1D; //Pad max - min
+
+
+ Double_t fPadRMS; //Pad RMS
+
+
+ Double_t fRowRMS; //Row RMS
+
+
+ Double_t fTimebinRMS; //Timebin RMS
+
+
+
+
+
+ Short_t fSize; //size of vector
+
+
+ Double_t fCenterX;// X coordinate of the cluster center in cm
+
+
+ Double_t fCenterY;// Y coordinate of the cluster center in cm
+
+
+ Double_t fCenterT;// time coordinate of the cluster center in timebins
+
+
+ //std::vector< AliTPCvtpr*> fCluster;//cluster contents(adc,nt,np,nr)
+
+
+ TObjArray *fCluster;//cluster contents(adc,nt,np,nr)
+
+
+ UInt_t fTimeStamp; //time stamp from event header
+ UInt_t fRun; //run from event header
+
+
+
+
+
+ ClassDef(AliTPCclusterKr,8) // Time Projection Chamber Kr clusters
+
+
+};
+
+
+
+
+
+
+
+
+#endif
+
+
+
+
+
+
+
+