1 // $Id: AliJBaseTrack.cxx,v 1.5 2008/05/08 15:19:52 djkim Exp $
2 ////////////////////////////////////////////////////
4 \file AliJBaseTrack.cxx
6 \author J. Rak, D.J.Kim, R.Diaz (University of Jyvaskyla)
8 \version $Revision: 1.5 $
9 \date $Date: 2008/05/08 15:19:52 $
11 ////////////////////////////////////////////////////
14 #include <TLorentzVector.h>
15 #include "AliJBaseTrack.h"
17 //______________________________________________________________________________
18 AliJBaseTrack::AliJBaseTrack():
29 //_____________________________________________________________
30 AliJBaseTrack::AliJBaseTrack(float px,float py, float pz, float e, Int_t id, Short_t ptype, Char_t charge):
31 TLorentzVector( px, py, pz, e ),
42 //_____________________________________________________________
43 AliJBaseTrack::AliJBaseTrack(const AliJBaseTrack& a):
47 fParticleType ( a.fParticleType ),
48 fCharge ( a.fCharge ),
49 fStatus ( a.fStatus ),
55 //_____________________________________________________________
56 AliJBaseTrack::AliJBaseTrack(const TLorentzVector& a):
67 //_____________________________________________________________
68 AliJBaseTrack& AliJBaseTrack::operator=(const AliJBaseTrack& trk){
71 TLorentzVector::operator=(trk);
74 fParticleType = trk.fParticleType;
75 fCharge = trk.fCharge;
76 fStatus = trk.fStatus;
82 //_____________________________________________________________
83 void AliJBaseTrack::Print(Option_t* option = "" ) const{
85 std::cout<<Form("(ID,Type,Charge,Flags)=(%d, %d, %d, %d)" ,
86 fID, fParticleType, fCharge, fFlags );
87 TLorentzVector::Print(option);
90 ClassImp(AliJBaseTrack)