]>
Commit | Line | Data |
---|---|---|
9dc4f671 | 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 | ||
a65a7e70 | 18 | // $Id: AliJBaseTrack.cxx,v 1.5 2008/05/08 15:19:52 djkim Exp $ |
19 | //////////////////////////////////////////////////// | |
20 | /*! | |
21 | \file AliJBaseTrack.cxx | |
22 | \brief | |
23 | \author J. Rak, D.J.Kim, R.Diaz (University of Jyvaskyla) | |
24 | \email: djkim@jyu.fi | |
25 | \version $Revision: 1.5 $ | |
26 | \date $Date: 2008/05/08 15:19:52 $ | |
27 | */ | |
28 | //////////////////////////////////////////////////// | |
29 | ||
a65a7e70 | 30 | #include "AliJBaseTrack.h" |
31 | ||
32 | //______________________________________________________________________________ | |
33 | AliJBaseTrack::AliJBaseTrack(): | |
34 | fID(-1), | |
9dc4f671 | 35 | fLabel(-9999), |
a65a7e70 | 36 | fParticleType(-1), |
37 | fCharge(0), | |
38 | fStatus(0), | |
9dc4f671 | 39 | fFlags(0), |
40 | fTriggID(-1), | |
41 | fAssocID(-1), | |
42 | fTracEff(-1), | |
43 | fMCIndex(-9999), | |
44 | fWeight(1.0) | |
a65a7e70 | 45 | { |
46 | // constructor | |
47 | } | |
48 | ||
49 | //_____________________________________________________________ | |
50 | AliJBaseTrack::AliJBaseTrack(float px,float py, float pz, float e, Int_t id, Short_t ptype, Char_t charge): | |
51 | TLorentzVector( px, py, pz, e ), | |
52 | fID(id), | |
9dc4f671 | 53 | fLabel(-9999), |
a65a7e70 | 54 | fParticleType(ptype), |
55 | fCharge(charge), | |
56 | fStatus(0), | |
9dc4f671 | 57 | fFlags(0), |
58 | fTriggID(-1), | |
59 | fAssocID(-1), | |
60 | fTracEff(-1), | |
61 | fMCIndex(-9999), | |
62 | fWeight(1.0) | |
a65a7e70 | 63 | { |
64 | // constructor | |
65 | } | |
66 | ||
67 | //_____________________________________________________________ | |
68 | AliJBaseTrack::AliJBaseTrack(const AliJBaseTrack& a): | |
69 | TLorentzVector (a), | |
70 | fID (a.fID), | |
9dc4f671 | 71 | fLabel (a.fLabel), |
a65a7e70 | 72 | fParticleType ( a.fParticleType ), |
73 | fCharge ( a.fCharge ), | |
74 | fStatus ( a.fStatus ), | |
9dc4f671 | 75 | fFlags ( a.fFlags ), |
76 | fTriggID( a.fTriggID ), | |
77 | fAssocID( a.fAssocID ), | |
78 | fTracEff( a.fTracEff ), | |
79 | fMCIndex( a.fMCIndex ), | |
80 | fWeight ( a.fWeight ) | |
a65a7e70 | 81 | { |
82 | //copy constructor | |
83 | } | |
84 | ||
85 | //_____________________________________________________________ | |
86 | AliJBaseTrack::AliJBaseTrack(const TLorentzVector& a): | |
87 | TLorentzVector (a), | |
88 | fID ( -1 ), | |
9dc4f671 | 89 | fLabel ( -9999 ), |
a65a7e70 | 90 | fParticleType ( -1 ), |
91 | fCharge ( 0 ), | |
92 | fStatus ( 0 ), | |
9dc4f671 | 93 | fFlags ( 0 ), |
94 | fTriggID(-1), | |
95 | fAssocID(-1), | |
96 | fTracEff(-1), | |
97 | fMCIndex(-9999), | |
98 | fWeight(1.0) | |
a65a7e70 | 99 | { |
100 | //copy constructor | |
101 | } | |
102 | //_____________________________________________________________ | |
103 | AliJBaseTrack& AliJBaseTrack::operator=(const AliJBaseTrack& trk){ | |
104 | //operator = | |
105 | if(this != &trk){ | |
106 | TLorentzVector::operator=(trk); | |
107 | fID = trk.fID; | |
108 | fLabel = trk.fLabel; | |
109 | fParticleType = trk.fParticleType; | |
110 | fCharge = trk.fCharge; | |
111 | fStatus = trk.fStatus; | |
112 | fFlags = trk.fFlags; | |
9dc4f671 | 113 | fTriggID = trk.fTriggID; |
114 | fAssocID = trk.fAssocID; | |
115 | fTracEff = trk.fTracEff; | |
116 | fMCIndex = trk.fMCIndex; | |
117 | fWeight = trk.fWeight; | |
a65a7e70 | 118 | } |
119 | return *this; | |
120 | } | |
121 | ||
122 | //_____________________________________________________________ | |
9dc4f671 | 123 | void AliJBaseTrack::Print(Option_t *option) const{ |
a65a7e70 | 124 | //object print out |
9dc4f671 | 125 | JUNUSED(option); |
a65a7e70 | 126 | std::cout<<Form("(ID,Type,Charge,Flags)=(%d, %d, %d, %d)" , |
127 | fID, fParticleType, fCharge, fFlags ); | |
9dc4f671 | 128 | TLorentzVector::Print(); |
129 | cout<<"ID ="<<fID <<endl; | |
130 | cout<<"fLabel="<<fLabel <<endl; | |
131 | cout<<"fParticleType="<<fParticleType <<endl; | |
132 | cout<<"fCharge="<<fCharge <<endl; | |
133 | cout<<"fStatus="<<fStatus <<endl; | |
134 | cout<<"fFlags="<<fFlags <<endl; | |
135 | cout<<"fTriggID="<<fTriggID <<endl; | |
136 | cout<<"fAssocID="<<fAssocID <<endl; | |
137 | cout<<"fTracEff="<<fTracEff <<endl; | |
a65a7e70 | 138 | } |
139 | ||
140 | ClassImp(AliJBaseTrack) | |
141 |