#include "AliPID.h"
#include "AliESDfriendTrack.h"
+class TParticle;
class AliESDVertex;
class AliKalmanTrack;
class AliTrackPointArray;
public:
AliESDtrack();
AliESDtrack(const AliESDtrack& track);
+ AliESDtrack(TParticle * part);
virtual ~AliESDtrack();
const AliESDfriendTrack *GetFriendTrack() const {return fFriendTrack;}
+ void SetFriendTrack(const AliESDfriendTrack *t) {
+ delete fFriendTrack; fFriendTrack=new AliESDfriendTrack(*t);
+ }
+ void AddCalibObject(TObject * object); // add calib object to the list
+ TObject * GetCalibObject(Int_t index); // return calib objct at given position
void MakeMiniESDtrack();
void SetID(Int_t id) { fID =id;}
Int_t GetID() const { return fID;}
if (!fCp) return kFALSE;
return fCp->GetXYZ(r);
}
+ const AliExternalTrackParam *GetConstrainedParam() const {return fCp;}
Bool_t GetConstrainedExternalParameters
(Double_t &alpha, Double_t &x, Double_t p[5]) const;
Bool_t GetConstrainedExternalCovariance(Double_t cov[15]) const;
Float_t GetITSsignal() const {return fITSsignal;}
Float_t GetITSchi2() const {return fITSchi2;}
Int_t GetITSclusters(Int_t *idx) const;
+ UChar_t GetITSClusterMap() const {return fITSClusterMap;}
Int_t GetITSLabel() const {return fITSLabel;}
- Float_t GetITSFakeRatio() const {return fITSFakeRatio;}
-
void SetITStrack(AliKalmanTrack * track){
fFriendTrack->SetITStrack(track);
}
for (Int_t i=0;i<4;i++) fTPCPoints[i]=points[i];
}
void SetTPCPointsF(UChar_t findable){fTPCnclsF = findable;}
+ Int_t GetTPCNcls() const { return fTPCncls;}
+ Int_t GetTPCNclsF() const { return fTPCnclsF;}
Float_t GetTPCPoints(Int_t i) const {return fTPCPoints[i];}
void SetKinkIndexes(Int_t points[3]) {
for (Int_t i=0;i<3;i++) fKinkIndexes[i] = points[i];
fTPCsignal = signal; fTPCsignalS = sigma; fTPCsignalN = npoints;
}
Float_t GetTPCsignal() const {return fTPCsignal;}
+ Float_t GetTPCsignalSigma() const {return fTPCsignalS;}
+ UShort_t GetTPCsignalN() const {return fTPCsignalN;}
Float_t GetTPCchi2() const {return fTPCchi2;}
Int_t GetTPCclusters(Int_t *idx) const;
Float_t GetTPCdensity(Int_t row0, Int_t row1) const;
Float_t GetTRDQuality()const {return fTRDQuality;}
void SetTRDBudget(Float_t budget){fTRDBudget=budget;}
Float_t GetTRDBudget()const {return fTRDBudget;}
- void SetTRDsignals(Float_t dedx, Int_t i) {fTRDsignals[i]=dedx;}
+ void SetTRDsignals(Float_t dedx, Int_t i, Int_t j) {fTRDsignals[i][j]=dedx;}
void SetTRDTimBin(Int_t timbin, Int_t i) {fTRDTimBin[i]=timbin;}
void GetTRDpid(Double_t *p) const;
Float_t GetTRDsignal() const {return fTRDsignal;}
- Float_t GetTRDsignals(Int_t i) const {return fTRDsignals[i];}
+ Float_t GetTRDsignals(Int_t iPlane, Int_t iSlice=-1) const { if (iSlice == -1)
+ return (fTRDsignals[iPlane][0] + fTRDsignals[iPlane][1] + fTRDsignals[iPlane][2])/3.0;
+ return fTRDsignals[iPlane][iSlice];
+ }
Int_t GetTRDTimBin(Int_t i) const {return fTRDTimBin[i];}
Float_t GetTRDchi2() const {return fTRDchi2;}
Int_t GetTRDclusters(Int_t *idx) const;
Int_t GetTOFcluster() const {return fTOFindex;}
void SetTOFcluster(Int_t index) {fTOFindex=index;}
void SetTOFCalChannel(Int_t index) {fTOFCalChannel=index;}
-
- void SetRICHsignal(Double_t beta) {fRICHsignal=beta;}
- Float_t GetRICHsignal() const {return fRICHsignal;}
- void SetRICHpid(const Double_t *p);
- void GetRICHpid(Double_t *p) const;
- void SetRICHchi2(Double_t chi2) {fRICHchi2=chi2;}
- Float_t GetRICHchi2() const {return fRICHchi2;}
- void SetRICHcluster(Int_t index) {fRICHindex=index;}
- Int_t GetRICHcluster() const {return fRICHindex;}
- void SetRICHnclusters(Int_t n) {fRICHncls=n;}
- Int_t GetRICHnclusters() const {return fRICHncls;}
- void SetRICHthetaPhi(Float_t theta, Float_t phi) {
- fRICHtheta=theta; fRICHphi=phi;
- }
- void GetRICHthetaPhi(Float_t &theta, Float_t &phi) const {
- theta=fRICHtheta; phi=fRICHphi;
+
+// HMPID methodes +++++++++++++++++++++++++++++++++ (kir)
+ void SetHMPIDsignal(Double_t theta) {fHMPIDsignal=theta;}
+ Float_t GetHMPIDsignal() const {return fHMPIDsignal;}
+ void SetHMPIDpid(const Double_t *p);
+ void GetHMPIDpid(Double_t *p) const;
+ void SetHMPIDchi2(Double_t chi2) {fHMPIDchi2=chi2;}
+ Float_t GetHMPIDchi2() const {return fHMPIDchi2;}
+ void SetHMPIDcluster(Int_t index) {fHMPIDcluIdx=index;}
+ Int_t GetHMPIDcluster() const {return fHMPIDcluIdx;}
+ void SetHMPIDcluIdx(Int_t ch,Int_t idx) {fHMPIDcluIdx=ch*1000000+idx;}
+ Int_t GetHMPIDcluIdx() const {return fHMPIDcluIdx;}
+ void SetHMPIDtrk(Float_t x, Float_t y, Float_t th, Float_t ph) {
+ fHMPIDtrkX=x; fHMPIDtrkY=y; fHMPIDtrkTheta=th; fHMPIDtrkPhi=ph;
}
- void SetRICHdxdy(Float_t dx, Float_t dy) {
- fRICHdx=dx; fRICHdy=dy;
+ void GetHMPIDtrk(Float_t &x, Float_t &y, Float_t &th, Float_t &ph) const {
+ x=fHMPIDtrkX; y=fHMPIDtrkY; th=fHMPIDtrkTheta; ph=fHMPIDtrkPhi;
}
- void GetRICHdxdy(Float_t &dx, Float_t &dy) const {
- dx=fRICHdx; dy=fRICHdy;
+ void SetHMPIDmip(Float_t x, Float_t y, Int_t q, Int_t nph=0) {
+ fHMPIDmipX=x; fHMPIDmipY=y; fHMPIDqn=100000*q+nph;
}
- void SetRICHmipXY(Float_t x, Float_t y) {
- fRICHmipX=x; fRICHmipY=y;
- }
- void GetRICHmipXY(Float_t &x, Float_t &y) const {
- x=fRICHmipX; y=fRICHmipY;
+ void GetHMPIDmip(Float_t &x,Float_t &y,Int_t &q,Int_t &nph) const {
+ x=fHMPIDmipX; y=fHMPIDmipY; q=fHMPIDqn/1000000; nph=fHMPIDqn%1000000;
}
- Bool_t IsRICH() const {return fFlags&kRICHpid;}
+ Bool_t IsHMPID() const {return fFlags&kHMPIDpid;}
- void SetTrackPointArray(AliTrackPointArray *points);
- const AliTrackPointArray *GetTrackPointArray() const;
+ Int_t GetEMCALcluster() {return fEMCALindex;}
+ void SetEMCALcluster(Int_t index) {fEMCALindex=index;}
+ Bool_t IsEMCAL() const {return fFlags&kEMCALmatch;}
+
+ void SetTrackPointArray(AliTrackPointArray *points) {
+ fFriendTrack->SetTrackPointArray(points);
+ }
+ const AliTrackPointArray *GetTrackPointArray() const {
+ return fFriendTrack->GetTrackPointArray();
+ }
Bool_t RelateToVertex(const AliESDVertex *vtx, Double_t b, Double_t maxd);
void GetImpactParameters(Float_t &xy,Float_t &z) const {xy=fD; z=fZ;}
void GetImpactParameters(Float_t p[2], Float_t cov[3]) const {
}
virtual void Print(Option_t * opt) const ;
+ //MI
+ Bool_t PropagateTo(Double_t x, Double_t b, Double_t mass, Double_t maxStep,
+ Bool_t rotateTo=kTRUE, Double_t maxSnp=0.8);
+
enum {
kITSin=0x0001,kITSout=0x0002,kITSrefit=0x0004,kITSpid=0x0008,
kTPCin=0x0010,kTPCout=0x0020,kTPCrefit=0x0040,kTPCpid=0x0080,
kTRDin=0x0100,kTRDout=0x0200,kTRDrefit=0x0400,kTRDpid=0x0800,
kTOFin=0x1000,kTOFout=0x2000,kTOFrefit=0x4000,kTOFpid=0x8000,
- kRICHpid=0x20000,
+ kHMPIDpid=0x20000,
+ kEMCALmatch=0x40000,
kTRDbackup=0x80000,
kTRDStop=0x20000000,
kESDpid=0x40000000,
kTIME=0x80000000
};
enum {
- kNPlane = 6
+ kNPlane = 6,
+ kNSlice = 3,
+ kEMCALNoMatch = -999999999
};
protected:
Double_t fCchi2; // chi2 at the primary vertex
- AliExternalTrackParam *fIp; // Track parameters at the inner wall of the TPC
+ AliExternalTrackParam *fIp; // Track parameters at the first measured point (TPC)
- AliExternalTrackParam *fOp; // Track parameters at the inner wall of the TRD
+ AliExternalTrackParam *fOp; // Track parameters at the last measured point (TPC or TRD)
// ITS related track information
Float_t fITSchi2; // chi2 in the ITS
Int_t fITSncls; // number of clusters assigned in the ITS
+ UChar_t fITSClusterMap; // map of clusters, one bit per a layer
Float_t fITSsignal; // detector's PID signal
Float_t fITSr[AliPID::kSPECIES]; // "detector response probabilities" (for the PID)
Int_t fITSLabel; // label according TPC
- Float_t fITSFakeRatio; // ration of fake tracks
-
// TPC related track information
Float_t fTPCchi2; // chi2 in the TPC
Int_t fTRDncls; // number of clusters assigned in the TRD
Int_t fTRDncls0; // number of clusters assigned in the TRD before first material cross
Float_t fTRDsignal; // detector's PID signal
- Float_t fTRDsignals[kNPlane]; // TRD signals from all six planes
+ Float_t fTRDsignals[kNPlane][kNSlice]; // TRD signals from all six planes in 3 slices each
Int_t fTRDTimBin[kNPlane]; // Time bin of Max cluster from all six planes
Float_t fTRDr[AliPID::kSPECIES]; // "detector response probabilities" (for the PID)
Int_t fTRDLabel; // label according TRD
Int_t fTOFLabel[3]; // TOF label
Float_t fTOFInfo[10]; //! TOF informations
- // HMPID related track information
- Float_t fRICHchi2; // chi2 in the RICH
- Int_t fRICHncls; // number of photon clusters
- Int_t fRICHindex; // index of the assigned MIP cluster
- Float_t fRICHsignal; // RICH PID signal
- Float_t fRICHr[AliPID::kSPECIES];// "detector response probabilities" (for the PID)
- Float_t fRICHtheta; // theta of the track extrapolated to the RICH
- Float_t fRICHphi; // phi of the track extrapolated to the RICH
- Float_t fRICHdx; // x of the track impact minus x of the MIP
- Float_t fRICHdy; // y of the track impact minus y of the MIP
- Float_t fRICHmipX; // x of the MIP in LORS
- Float_t fRICHmipY; // y of the MIP in LORS
-
- AliTrackPointArray *fPoints;// Array of track space points in the global frame
+ // HMPID related track information (kir)
+ Float_t fHMPIDchi2; // chi2 in the HMPID
+ Int_t fHMPIDqn; // 1000000*QDC + number of photon clusters
+ Int_t fHMPIDcluIdx; // 1000000*chamber id + cluster idx of the assigned MIP cluster
+ Float_t fHMPIDsignal; // HMPID PID signal (Theta ckov, rad)
+ Float_t fHMPIDr[AliPID::kSPECIES];// "detector response probabilities" (for the PID)
+ Float_t fHMPIDtrkTheta; // theta of the track extrapolated to the HMPID, LORS
+ Float_t fHMPIDtrkPhi; // phi of the track extrapolated to the HMPID, LORS
+ Float_t fHMPIDtrkX; // x of the track impact, LORS
+ Float_t fHMPIDtrkY; // y of the track impact, LORS
+ Float_t fHMPIDmipX; // x of the MIP in LORS
+ Float_t fHMPIDmipY; // y of the MIP in LORS
+
+ // EMCAL related track information
+ Int_t fEMCALindex; // index of associated EMCAL cluster (AliESDCaloCluster)
AliESDfriendTrack *fFriendTrack; //! All the complementary information
AliESDtrack & operator=(const AliESDtrack & ) {return *this;}
- ClassDef(AliESDtrack,27) //ESDtrack
+ ClassDef(AliESDtrack,34) //ESDtrack
};
#endif