//_________________________________________________________________________________________________
AliPicoTrack::AliPicoTrack() :
AliVTrack(),
- fPt(0), fEta(0), fPhi(0), fQ(0), fLabel(-1), fTrackType(0), fEtaEmc(0), fPhiEmc(0), fPtEmc(0), fEmcal(0), fClusId(-1)
+ fPt(0), fEta(0), fPhi(0), fM(0.13957), fQ(0), fLabel(-1), fTrackType(0), fEtaEmc(0), fPhiEmc(0), fPtEmc(0), fEmcal(0), fClusId(-1)
{
// Default constructor.
}
//_________________________________________________________________________________________________
AliPicoTrack::AliPicoTrack(Double_t pt, Double_t eta, Double_t phi, Byte_t q, Int_t lab, Byte_t type,
- Double_t etaemc, Double_t phiemc, Double_t ptemc, Bool_t ise) :
+ Double_t etaemc, Double_t phiemc, Double_t ptemc, Bool_t ise, Double_t mass) :
AliVTrack(),
- fPt(pt), fEta(eta), fPhi(phi), fQ(q), fLabel(lab), fTrackType(type),
+ fPt(pt), fEta(eta), fPhi(phi), fM(mass), fQ(q), fLabel(lab), fTrackType(type),
fEtaEmc(etaemc), fPhiEmc(phiemc), fPtEmc(ptemc), fEmcal(ise), fClusId(-1)
{
// Constructor.
//_________________________________________________________________________________________________
AliPicoTrack::AliPicoTrack(const AliPicoTrack &pc) :
AliVTrack(pc),
- fPt(pc.fPt), fEta(pc.fEta), fPhi(pc.fPhi),
+ fPt(pc.fPt), fEta(pc.fEta), fPhi(pc.fPhi), fM(pc.fM),
fQ(pc.fQ), fLabel(pc.fLabel), fTrackType(pc.fTrackType),
fEtaEmc(pc.fEtaEmc), fPhiEmc(pc.fPhiEmc), fPtEmc(pc.fPtEmc), fEmcal(pc.fEmcal),
fClusId(pc.fClusId)
fPt = pc.fPt;
fEta = pc.fEta;
fPhi = pc.fPhi;
+ fM = pc.fM;
fQ = pc.fQ;
fLabel = pc.fLabel;
fTrackType = pc.fTrackType;
public:
AliPicoTrack();
AliPicoTrack(Double_t pt, Double_t eta, Double_t phi, Byte_t q, Int_t label, Byte_t type,
- Double_t etaemc=0, Double_t phiemc=0, Double_t ptemc=0, Bool_t ise=0);
+ Double_t etaemc=0, Double_t phiemc=0, Double_t ptemc=0, Bool_t ise=0, Double_t mass=0.13957);
~AliPicoTrack() {;}
AliPicoTrack(const AliPicoTrack &pc);
AliPicoTrack &operator=(const AliPicoTrack &pc);
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 M() const { return fM; }
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;}
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
+ Double32_t fM; // mass
Byte_t fQ; // charge
Int_t fLabel; // label
Byte_t fTrackType;// 0=global track; 1=w/o SPD, w/ ITS refit; 2=w/o SPD, w/o ITS refit
Short_t fClusId; //! cluster id of matched cluster; -1 if not set
- ClassDef(AliPicoTrack, 5) // Pico track class
+ ClassDef(AliPicoTrack, 6) // Pico track class
};
#endif