#include "AliCluster.h"
#include "TMath.h"
-
+class AliTPCclusterInfo;
//_____________________________________________________________________________
class AliTPCclusterMI : public AliCluster {
public:
- AliTPCclusterMI():AliCluster(){fX =0; fQ=0; fUsed=0; fDetector = 0; fRow =0;}
- AliTPCclusterMI(Int_t *lab, Float_t *hit) : AliCluster(lab,hit) {fQ = (UShort_t)hit[4];}
- virtual ~AliTPCclusterMI() {}
+ AliTPCclusterMI(Bool_t withInfo=kTRUE);
+ AliTPCclusterMI(const AliTPCclusterMI & cluster);
+ AliTPCclusterMI &operator = (const AliTPCclusterMI & cluster); //assignment operator
+ AliTPCclusterMI(Int_t *lab, Float_t *hit);
+ virtual ~AliTPCclusterMI();
virtual Bool_t IsSortable() const;
virtual Int_t Compare(const TObject* obj) const;
inline void Use(Int_t inc=10);
- virtual Float_t GetX() const { return fX;}
- virtual void SetX(Float_t x) { fX = x;}
virtual Int_t GetDetector() const {return fDetector;}
virtual Int_t GetRow() const {return fRow;}
virtual void SetDetector(Int_t detector){fDetector = (UChar_t)(detector%256);}
virtual void SetRow(Int_t row){fRow = (UChar_t)(row%256);}
+ virtual void SetTimeBin(Float_t timeBin){ fTimeBin= timeBin;}
+ virtual void SetPad(Float_t pad){ fPad = pad;}
//
void SetQ(Float_t q) {fQ=(UShort_t)q;}
void SetType(Char_t type) {fType=type;}
Float_t GetQ() const {return TMath::Abs(fQ);}
Float_t GetMax() const {return fMax;}
Char_t GetType()const {return fType;}
-
+ Float_t GetTimeBin() const { return fTimeBin;}
+ Float_t GetPad() const { return fPad;}
+ AliTPCclusterInfo * GetInfo() const { return fInfo;}
+ void SetInfo(AliTPCclusterInfo * info) { fInfo = info;}
+
private:
- Float_t fX; //X position of cluster
Short_t fQ ; //Q of cluster (in ADC counts)
Char_t fType; //type of the cluster 0 means golden
Short_t fMax; //maximal amplitude in cluster
Char_t fUsed; //counter of usage
UChar_t fDetector; //detector number
UChar_t fRow; //row number number
- ClassDef(AliTPCclusterMI,2) // Time Projection Chamber clusters
+ Float_t fTimeBin; //time bin coordinate
+ Float_t fPad; //pad coordinate
+ AliTPCclusterInfo * fInfo; // pointer to the cluster debug info
+ ClassDef(AliTPCclusterMI,4) // Time Projection Chamber clusters
};
void AliTPCclusterMI::Use(Int_t inc)