1 /**************************************************************************
2 * Copyright(c) 1998-2014, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
16 // Comment describing what this class does needed!
18 // $Id: AliJTrack.cxx,v 1.2 2008/01/21 11:56:39 djkim Exp $
20 ////////////////////////////////////////////////////
22 // \file AliJTrack.cxx
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 $
29 // class encapsulating aliroot track information
30 ////////////////////////////////////////////////////
32 #include "AliJBaseTrack.h"
33 #include "AliJTrack.h"
37 //______________________________________________________________________________
38 AliJTrack::AliJTrack() :
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;
54 //______________________________________________________________________________
55 AliJTrack::AliJTrack(const AliJTrack& a):
57 fFilterMap( a.fFilterMap ),
58 fTPCnClust(a.fTPCnClust),
60 fTOFsignal(a.fTOFsignal),
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];
71 //______________________________________________________________________________
72 AliJTrack& AliJTrack::operator=(const AliJTrack& trk){
75 AliJBaseTrack::operator=(trk);
76 for(Int_t i=0;i<kNAliJTrkPID;i++){
77 fExpTOFsignal[i]= trk.fExpTOFsignal[i];
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;