]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGCF/Correlations/JCORRAN/AliJTrack.cxx
Merge branch 'feature-movesplit'
[u/mrichter/AliRoot.git] / PWGCF / Correlations / JCORRAN / AliJTrack.cxx
1 /**************************************************************************
2  * Copyright(c) 1998-2014, ALICE Experiment at CERN, All rights reserved. *
3  *                                                                        *
4  * Author: The ALICE Off-line Project.                                    *
5  * Contributors are mentioned in the code where appropriate.              *
6  *                                                                        *
7  * Permission to use, copy, modify and distribute this software and its   *
8  * documentation strictly for non-commercial purposes is hereby granted   *
9  * without fee, provided that the above copyright notice appears in all   *
10  * copies and that both the copyright notice and this permission notice   *
11  * appear in the supporting documentation. The authors make no claims     *
12  * about the suitability of this software for any purpose. It is          *
13  * provided "as is" without express or implied warranty.                  *
14  **************************************************************************/
15
16 // Comment describing what this class does needed!
17
18 // $Id: AliJTrack.cxx,v 1.2 2008/01/21 11:56:39 djkim Exp $
19
20 ////////////////////////////////////////////////////
21 //
22 //  \file AliJTrack.cxx
23 //  \brief
24 //  \author J. Rak, D.J.Kim, R.Diaz (University of Jyvaskyla)
25 //  \email: djkim@jyu.fi
26 //  \version $Revision: 1.1 $
27 //  \date $Date: 2008/05/02 11:56:39 $
28 //  
29 // class encapsulating aliroot track information
30 ////////////////////////////////////////////////////
31
32 #include "AliJBaseTrack.h"
33 #include "AliJTrack.h"
34
35 //ClassImp(AliJTrack)
36
37 //______________________________________________________________________________
38 AliJTrack::AliJTrack() : 
39     AliJBaseTrack(),
40     fFilterMap(0),
41     fTPCnClust(-1),
42     fTPCdEdx(-1), 
43     fTOFsignal(9999),
44     fTPCmom(0)
45 {
46   // default constructor
47   for( int i=0;i<kNAliJTrkPID;i++) fExpTOFsignal[i]= 9999;
48   for( int i=0;i<3;i++) fTPCTrack[i] = 0;
49   for( int i=0;i<3;i++) fGCGTrack[i] = 0;
50   for( int i=0;i<3;i++) fTrackPos[i] = 0;
51
52 }
53
54 //______________________________________________________________________________
55 AliJTrack::AliJTrack(const AliJTrack& a):
56     AliJBaseTrack(a),
57     fFilterMap( a.fFilterMap ),
58     fTPCnClust(a.fTPCnClust),
59     fTPCdEdx(a.fTPCdEdx), 
60     fTOFsignal(a.fTOFsignal),
61     fTPCmom(a.fTPCmom)
62
63   //copy constructor
64   for(Int_t i=0;i<kNAliJTrkPID;i++) fExpTOFsignal[i]= a.fExpTOFsignal[i];
65   for( int i=0;i<3;i++) fTPCTrack[i] = a.fTPCTrack[i];
66   for( int i=0;i<3;i++) fGCGTrack[i] = a.fGCGTrack[i];
67   for( int i=0;i<3;i++) fTrackPos[i] = a.fTrackPos[i];
68 }
69
70
71 //______________________________________________________________________________
72 AliJTrack&  AliJTrack::operator=(const AliJTrack& trk){
73   //operator = 
74   if(this != &trk){
75     AliJBaseTrack::operator=(trk);
76     for(Int_t i=0;i<kNAliJTrkPID;i++){
77          fExpTOFsignal[i]= trk.fExpTOFsignal[i];
78     }
79     for( int i=0;i<3;i++) fTPCTrack[i] = trk.fTPCTrack[i];
80     for( int i=0;i<3;i++) fGCGTrack[i] = trk.fGCGTrack[i];
81     for( int i=0;i<3;i++) fTrackPos[i] = trk.fTrackPos[i];
82     fFilterMap  = trk.fFilterMap;
83     fTPCnClust  = trk.fTPCnClust;
84     fTPCdEdx = trk.fTPCdEdx;
85     fTOFsignal = trk.fTOFsignal;
86   }
87   return *this;
88 }
89