1 // $Id: AliPhJBaseTrack.h,v 1.5 2008/05/08 15:19:52 djkim Exp $
\r
3 ////////////////////////////////////////////////////
\r
5 \file AliPhJBaseTrack.h
\r
7 \author J. Rak, D.J.Kim, R.Diaz (University of Jyvaskyla)
\r
9 \version $Revision: 1.5 $
\r
10 \date $Date: 2008/05/08 15:19:52 $
\r
12 ////////////////////////////////////////////////////
\r
14 #ifndef ALIPHJBASETRACK_H
\r
15 #define ALIPHJBASETRACK_H
\r
17 #ifndef ROOT_TObject
\r
18 #include <TObject.h>
\r
29 class AliPhJBaseTrack : public TObject {
\r
33 AliPhJBaseTrack(float pt,float theta, float eta, float phi, float e, short charge, float tof,float ptot); // constructor
\r
34 AliPhJBaseTrack(const AliPhJBaseTrack& a);
\r
36 virtual ~AliPhJBaseTrack(){;} //destructor
\r
38 float GetPt() const {return fBasePt;}
\r
39 float GetTheta() const {return fBaseTheta;}
\r
40 float GetEta() const {return fBaseEta;}
\r
41 float GetPhi() const {return fBasePhi;}
\r
42 float GetTwoPiPhi() const {return fBasePhi>-kJPi/3 ? fBasePhi : kJTwoPi+fBasePhi;}
\r
43 float GetE() const {return fBaseE;}
\r
44 short GetCharge() const {return fBaseCharge;}
\r
45 int GetTrackID() const {return fBaseID;}
\r
46 particleType GetFlavor() const {return fBaseFlavor;}
\r
47 float GetTof() const {return fBaseTof;}
\r
48 float GetPtot() const {return fBasePtot;}
\r
49 float GetPx() const {return fBasePt*cos(fBasePhi);}
\r
50 float GetPy() const {return fBasePt*sin(fBasePhi);}
\r
51 float GetPz() const {return fBasePt*sinh(fBaseEta);}
\r
53 void SetPt(float inpt) {fBasePt=inpt;}
\r
54 void SetTheta(float inth) {fBaseTheta=inth;}
\r
55 void SetEta(float inEta) {fBaseEta=inEta;}
\r
56 void SetPhi(float inphi) {fBasePhi=inphi;}
\r
57 void SetE(float inE) {fBaseE=inE;}
\r
58 void SetCharge(short q) {fBaseCharge=q;}
\r
59 void SetFlavor(particleType ptye) {fBaseFlavor=ptye;}
\r
60 void SetTrackID(int inID){fBaseID=inID;}
\r
61 void SetTof(float tof) {fBaseTof=tof;}
\r
62 void SetPtot(float ptot){ fBasePtot = ptot;}
\r
64 void PrintOut(const char *message) const;
\r
65 void PrintJetInput(char *message) const;
\r
67 AliPhJBaseTrack& operator=(const AliPhJBaseTrack& trk);
\r
71 float fBasePt, fBaseTheta, fBaseEta, fBasePhi, fBaseE;// track pT, theta, eta, phi, E
\r
72 int fBaseID;// unique track id
\r
73 short fBaseCharge;//track charge
\r
74 particleType fBaseFlavor;//track flavour
\r
75 float fBaseTof, fBasePtot; //track tof and totoal momentum
\r
77 ClassDef(AliPhJBaseTrack,1)
\r