#ifndef AliPicoTrack_H #define AliPicoTrack_H // $Id$ #include "AliVTrack.h" #include class AliVCluster; class AliPicoTrack: public AliVTrack { public: AliPicoTrack(); AliPicoTrack(Double_t pt, Double_t eta, Double_t phi, Byte_t q, Byte_t lab, Double_t etaemc=0, Double_t phiemc=0, Bool_t ise=0); ~AliPicoTrack() {;} AliPicoTrack(const AliPicoTrack &pc); AliPicoTrack &operator=(const AliPicoTrack &pc); Double_t Px() const { return fPt*TMath::Cos(fPhi); } Double_t Py() const { return fPt*TMath::Sin(fPhi); } Double_t Pz() const { return fPt*TMath::SinH(fEta); } Double_t Pt() const { return fPt; } Double_t P() const { return fPt*TMath::CosH(fEta); } Bool_t PxPyPz(Double_t p[3]) const { p[0]=Px();p[1]=Py();p[2]=Pz(); return 1; } Bool_t GetPxPyPz(Double_t p[3]) const { p[0]=Px();p[1]=Py();p[2]=Pz(); return 1; } Double_t Xv() const { return 0.; } Double_t Yv() const { return 0.; } Double_t Zv() const { return 0.; } Bool_t XvYvZv(Double_t x[3]) const { x[0]=0;x[1]=0;x[2]=0; return 1; } Double_t OneOverPt() const { return 1./fPt; } Double_t Phi() const { return fPhi; } Double_t Theta() const { return 2*TMath::ATan(TMath::Exp(-fEta)); } Double_t E() const { Double_t p=P(); return TMath::Sqrt(M()*M()+p*p); } Double_t M() const { return 0.13957; } Double_t Eta() const { return fEta; } Double_t Y() const { return 0.5*TMath::Log((E()+Pz())/(E()-Pz())); } Short_t Charge() const { return (char)fQ;} Int_t GetLabel() const { return fLabel; } Int_t PdgCode() const { return 0; } const Double_t *PID() const { return 0; } Int_t GetID() const { return 0; } UChar_t GetITSClusterMap() const { return 0; } Int_t GetEMCALcluster() const { return fClusId; } Double_t GetEtaEmc() const { return GetTrackEtaOnEMCal(); } Double_t GetPhiEmc() const { return GetTrackPhiOnEMCal(); } Bool_t IsEMCAL() const { return fEmcal; } ULong_t GetStatus() const { return 0; } Bool_t GetXYZ(Double_t *v) const { v[0]=0; v[1]=0; v[2]=0; return 0; } Double_t GetBz() const { return 0; } void GetBxByBz(Double_t b[3]) const { b[0]=0;b[1]=0;b[2]=0; } Bool_t GetCovarianceXYZPxPyPz(Double_t /*cv*/[21]) const { return 0; } Int_t Compare(const TObject* obj) const; Bool_t PropagateToDCA(const AliVVertex *, Double_t, Double_t, Double_t *, Double_t *) { return 0; } virtual Double_t GetTrackPhiOnEMCal() const { return fPhiEmc ; } virtual Double_t GetTrackEtaOnEMCal() const { return fEtaEmc ; } virtual void SetTrackPhiEtaOnEMCal(Double_t eta, Double_t phi) { fEtaEmc = eta; fPhiEmc = phi; } void SetEMCALcluster(Int_t id) { fClusId = id; } static void GetEtaPhiDiff(AliVTrack *t, AliVCluster *v, Double_t &phidiff, Double_t &etadiff); protected: Double32_t fPt; //[0,0,12] pt at vertex Double32_t fEta; //[-1,1,12] eta at vertex Double32_t fPhi; //[0,6.3,12] phi at vertex Byte_t fQ; // charge Byte_t fLabel; // label Double32_t fEtaEmc; //[-1,1,12] eta at emcal surface Double32_t fPhiEmc; //[0,6.3,12] phi at emcal surface Bool_t fEmcal; // is true if track propagated to emcal Short_t fClusId; //! cluster id of matched cluster; -1 if not set ClassDef(AliPicoTrack, 2) // Pico track class }; #endif