end-of-line normalization
[u/mrichter/AliRoot.git] / PWGCF / Correlations / JCORRAN / AliJBaseTrack.cxx
CommitLineData
7fac8669 1// $Id: AliJBaseTrack.cxx,v 1.5 2008/05/08 15:19:52 djkim Exp $
2////////////////////////////////////////////////////
3/*!
4 \file AliJBaseTrack.cxx
5 \brief
6 \author J. Rak, D.J.Kim, R.Diaz (University of Jyvaskyla)
7 \email: djkim@jyu.fi
8 \version $Revision: 1.5 $
9 \date $Date: 2008/05/08 15:19:52 $
10 */
11////////////////////////////////////////////////////
12
13#include <iostream>
14#include <TLorentzVector.h>
15#include "AliJBaseTrack.h"
16
17//______________________________________________________________________________
18AliJBaseTrack::AliJBaseTrack():
19 fID(-1),
20 fLabel(-1),
21 fParticleType(-1),
22 fCharge(0),
23 fStatus(0),
24 fFlags(0)
25{
26 // constructor
27}
28
29//_____________________________________________________________
30AliJBaseTrack::AliJBaseTrack(float px,float py, float pz, float e, Int_t id, Short_t ptype, Char_t charge):
31 TLorentzVector( px, py, pz, e ),
32 fID(id),
33 fLabel(-1),
34 fParticleType(ptype),
35 fCharge(charge),
36 fStatus(0),
37 fFlags(0)
38{
39 // constructor
40}
41
42//_____________________________________________________________
43AliJBaseTrack::AliJBaseTrack(const AliJBaseTrack& a):
44 TLorentzVector (a),
45 fID (a.fID),
46 fLabel (a.fLabel),
47 fParticleType ( a.fParticleType ),
48 fCharge ( a.fCharge ),
49 fStatus ( a.fStatus ),
50 fFlags ( a.fFlags )
51{
52 //copy constructor
53}
54
55//_____________________________________________________________
56AliJBaseTrack::AliJBaseTrack(const TLorentzVector& a):
57 TLorentzVector (a),
58 fID ( -1 ),
59 fLabel ( -1 ),
60 fParticleType ( -1 ),
61 fCharge ( 0 ),
62 fStatus ( 0 ),
63 fFlags ( 0 )
64{
65 //copy constructor
66}
67//_____________________________________________________________
68AliJBaseTrack& AliJBaseTrack::operator=(const AliJBaseTrack& trk){
69 //operator =
70 if(this != &trk){
71 TLorentzVector::operator=(trk);
72 fID = trk.fID;
73 fLabel = trk.fLabel;
74 fParticleType = trk.fParticleType;
75 fCharge = trk.fCharge;
76 fStatus = trk.fStatus;
77 fFlags = trk.fFlags;
78 }
79 return *this;
80}
81
82//_____________________________________________________________
83void AliJBaseTrack::Print(Option_t* option = "" ) const{
84 //object print out
85 std::cout<<Form("(ID,Type,Charge,Flags)=(%d, %d, %d, %d)" ,
86 fID, fParticleType, fCharge, fFlags );
87 TLorentzVector::Print(option);
88}
89
90ClassImp(AliJBaseTrack)
91