]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG4/JCORRAN/AliJMCTrack.cxx
Updating track cuts and removing functionality that is now in separate cosmics tasks
[u/mrichter/AliRoot.git] / PWG4 / JCORRAN / AliJMCTrack.cxx
CommitLineData
2f4cac02 1/**************************************************************************
2* Copyright(c) 1998-1999, 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 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**************************************************************************/
15
16// $Id: AliJMCTrack.cxx,v 1.2 2008/05/08 13:44:45 djkim Exp $
17
18////////////////////////////////////////////////////
19//
20// \file AliJMCTrack.cxx
21// \brief
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 $
26//
27// class which encapsulates track monte carlo information
28////////////////////////////////////////////////////
29
30#include "AliJMCTrack.h"
31
32ClassImp(AliJMCTrack)
33
34//______________________________________________________________________________
35AliJMCTrack::AliJMCTrack() :
36 AliPhJBaseTrack(),
37 fPdgCode(0),
38 fStatus(0),
39 fFlag(0),
40 fLabel(0),
41 fVx(0),
42 fVy(0),
43 fVz(0),
44 fEta(0),
45 fPrimary(0),
46 fPHOS(0),
47 fEMCAL(0),
48 fTPC(0),
49 fPtHard(0)
50{
51 // default constructor
52 fMother[0] = fMother[1] = 0;
53 fDaughter[0] = fDaughter[1] = 0;
54
55
56}
57
58//______________________________________________________________________________
59AliJMCTrack::AliJMCTrack(const AliJMCTrack& a):
60 AliPhJBaseTrack(a),
61 fPdgCode(a.fPdgCode),
62 fStatus(a.fStatus),
63 fFlag(a.fFlag),
64 fLabel(a.fLabel),
65 fVx(a.fVx),
66 fVy(a.fVy),
67 fVz(a.fVz),
68 fEta(a.fEta),
69 fPrimary(a.fPrimary),
70 fPHOS(a.fPHOS),
71 fEMCAL(a.fEMCAL),
72 fTPC(a.fTPC),
73 fPtHard(a.fPtHard)
74{
75//copy constructor
76 for(Int_t i=0;i<2;i++){
77 fMother[i] = a.fMother[i];
78 fDaughter[i] = a.fDaughter[i];
79 }
80}
81
82
83//______________________________________________________________________________
84
85AliJMCTrack& AliJMCTrack::operator=(const AliJMCTrack& trk){
86 //operator=
87 if(this != &trk){
88 AliPhJBaseTrack::operator=(trk);
89 fPdgCode = trk.fPdgCode;
90 fStatus = trk.fStatus;
91 fFlag = trk.fFlag;
92 fLabel = trk.fLabel;
93 for(Int_t i=0;i<2;i++){
94 fMother[i] = trk.fMother[i];
95 fDaughter[i] = trk.fDaughter[i];
96 }
97 fVx = trk.fVx;
98 fVy = trk.fVy;
99 fVz = trk.fVz;
100 fEta = trk.fEta;
101 fPrimary = trk.fPrimary;
102 fPHOS = trk.fPHOS;
103 fEMCAL = trk.fEMCAL;
104 fTPC = trk.fTPC;
105 fPtHard = trk.fPtHard;
106 }
107 return *this;
108}
109
110
111
112
113