]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGHF/correlationHF/AliReducedParticle.cxx
Fix for Coverity defect 21499
[u/mrichter/AliRoot.git] / PWGHF / correlationHF / AliReducedParticle.cxx
1 /**************************************************************************
2  * Copyright(c) 1998-2009, 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 //
17 //             Base class for DStar - Hadron Correlations Analysis
18 //
19 //-----------------------------------------------------------------------
20 //          
21 //
22 //                                                 Author S.Bjelogrlic
23 //                         Utrecht University 
24 //                      sandro.bjelogrlic@cern.ch
25 //
26 //-----------------------------------------------------------------------
27
28 /* $Id$ */
29
30 #include "AliVParticle.h"
31 #include "AliReducedParticle.h"
32
33 AliReducedParticle::AliReducedParticle() :
34 fEta(0),
35 fPhi(0),
36 fpT(0),
37 fMcLabel(0),
38 fid(0),
39 fImpPar(0),
40 fCheckSoftPi(0),
41 fCharge(0),
42 fInvMass(0),
43 fWeight(1.),
44 fPtBin(-1),
45 fOriginMother(-1)
46 {
47         //
48         // default constructor
49         //
50 }
51
52
53 AliReducedParticle::AliReducedParticle(Double_t eta, Double_t phi, Double_t pt, Int_t mcLabel, Int_t trackid, Double_t impPar, Bool_t checkSoftPi) : 
54 fEta(eta), 
55 fPhi(phi), 
56 fpT(pt), 
57 fMcLabel(mcLabel), 
58 fid(trackid),
59 fImpPar(impPar),
60 fCheckSoftPi(checkSoftPi),
61 fCharge(0),
62 fInvMass(0),
63 fWeight(1.),
64 fPtBin(-1),
65 fOriginMother(-1)
66 {
67         //
68         // default constructor
69         //
70 }
71
72 AliReducedParticle::AliReducedParticle(Double_t eta, Double_t phi, Double_t pt, Int_t mcLabel, Int_t trackid, Double_t impPar, Bool_t checkSoftPi, Short_t charge) : 
73 fEta(eta), 
74 fPhi(phi), 
75 fpT(pt), 
76 fMcLabel(mcLabel), 
77 fid(trackid),
78 fImpPar(impPar),
79 fCheckSoftPi(checkSoftPi),
80 fCharge(charge),
81 fInvMass(0),
82 fWeight(1.),
83 fPtBin(-1),
84 fOriginMother(-1)
85 {
86         //
87         // default constructor
88         //
89 }
90
91 AliReducedParticle::AliReducedParticle(Double_t eta, Double_t phi, Double_t pt, Int_t mcLabel, Int_t trackid, Double_t impPar, Bool_t checkSoftPi, Short_t charge, Double_t weight) : 
92 fEta(eta), 
93 fPhi(phi), 
94 fpT(pt), 
95 fMcLabel(mcLabel), 
96 fid(trackid),
97 fImpPar(impPar),
98 fCheckSoftPi(checkSoftPi),
99 fCharge(charge),
100 fInvMass(0),
101 fWeight(weight),
102 fPtBin(-1),
103 fOriginMother(-1)
104 {
105         //
106         // default constructor
107         //
108 }
109
110
111
112 AliReducedParticle::AliReducedParticle(Double_t eta, Double_t phi, Double_t pt, Int_t McLabel) : 
113 fEta(eta), 
114 fPhi(phi), 
115 fpT(pt), 
116 fMcLabel(McLabel),
117 fid(0),
118 fImpPar(0.),
119 fCheckSoftPi(kFALSE),
120 fCharge(0),
121 fInvMass(0),
122 fWeight(1.),
123 fPtBin(-1),
124 fOriginMother(-1)
125 {
126         //
127         // default constructor
128         //
129 }
130
131 AliReducedParticle::AliReducedParticle(Double_t eta, Double_t phi, Double_t pt, int charge, int originmother) : 
132 fEta(eta), 
133 fPhi(phi), 
134 fpT(pt), 
135 fMcLabel(0),
136 fid(0),
137 fImpPar(0.),
138 fCheckSoftPi(kFALSE),
139 fCharge(charge),
140 fInvMass(0),
141 fWeight(1.),
142 fPtBin(-1),
143 fOriginMother(originmother)
144 {
145         //
146         // default constructor
147         //
148 }
149
150 AliReducedParticle::AliReducedParticle(Double_t eta, Double_t phi, Double_t pt, Double_t invmass, int ptbin, int originmother) : 
151 fEta(eta), 
152 fPhi(phi), 
153 fpT(pt), 
154 fMcLabel(0),
155 fid(0),
156 fImpPar(0.),
157 fCheckSoftPi(kFALSE),
158 fCharge(0),
159 fInvMass(invmass),
160 fWeight(1.),
161 fPtBin(ptbin),
162 fOriginMother(originmother)
163 {
164         //
165         // default constructor
166         //
167 }
168
169
170 AliReducedParticle::~AliReducedParticle() {
171
172         //
173         // destructor
174         //
175         
176         //Info("AliReducedParticle","Calling Destructor");
177 }