1 /**************************************************************************
2 * Copyright(c) 1998-1999, 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 notifce *
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 // $Id: AliJMCTrack.cxx,v 1.2 2008/05/08 13:44:45 djkim Exp $
18 ////////////////////////////////////////////////////
20 // \file AliJMCTrack.cxx
22 // \author J. Rak, D.J.Kim, R.Diaz (University of Jyvaskyla)
23 // \email: djkim@jyu.fi
24 // \version $Revision: 1.2 $
25 // \date $Date: 2008/05/08 13:44:45 $
27 // class which encapsulates track monte carlo information
28 ////////////////////////////////////////////////////
30 #include "AliJMCTrack.h"
34 //______________________________________________________________________________
35 AliJMCTrack::AliJMCTrack() :
51 // default constructor
52 fMother[0] = fMother[1] = 0;
53 fDaughter[0] = fDaughter[1] = 0;
58 //______________________________________________________________________________
59 AliJMCTrack::AliJMCTrack(const AliJMCTrack& a):
76 for(Int_t i=0;i<2;i++){
77 fMother[i] = a.fMother[i];
78 fDaughter[i] = a.fDaughter[i];
83 //______________________________________________________________________________
85 AliJMCTrack& AliJMCTrack::operator=(const AliJMCTrack& trk){
88 AliPhJBaseTrack::operator=(trk);
89 fPdgCode = trk.fPdgCode;
90 fStatus = trk.fStatus;
93 for(Int_t i=0;i<2;i++){
94 fMother[i] = trk.fMother[i];
95 fDaughter[i] = trk.fDaughter[i];
101 fPrimary = trk.fPrimary;
105 fPtHard = trk.fPtHard;