]>
Commit | Line | Data |
---|---|---|
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(Double_t eta, Double_t phi, Double_t pt, Int_t mcLabel, Int_t trackid, Double_t impPar, Bool_t checkSoftPi) : | |
34 | fEta(eta), | |
35 | fPhi(phi), | |
36 | fpT(pt), | |
37 | fMcLabel(mcLabel), | |
38 | fid(trackid), | |
39 | fImpPar(impPar), | |
40 | fCheckSoftPi(checkSoftPi), | |
41 | fCharge(0), | |
42 | fInvMass(0), | |
43 | fPtBin(-1), | |
44 | fOriginMother(-1) | |
45 | { | |
46 | // | |
47 | // default constructor | |
48 | // | |
49 | } | |
50 | ||
51 | 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) : | |
52 | fEta(eta), | |
53 | fPhi(phi), | |
54 | fpT(pt), | |
55 | fMcLabel(mcLabel), | |
56 | fid(trackid), | |
57 | fImpPar(impPar), | |
58 | fCheckSoftPi(checkSoftPi), | |
59 | fCharge(charge), | |
60 | fInvMass(0), | |
61 | fPtBin(-1), | |
62 | fOriginMother(-1) | |
63 | { | |
64 | // | |
65 | // default constructor | |
66 | // | |
67 | } | |
68 | ||
69 | AliReducedParticle::AliReducedParticle(Double_t eta, Double_t phi, Double_t pt, Int_t McLabel) : | |
70 | fEta(eta), | |
71 | fPhi(phi), | |
72 | fpT(pt), | |
73 | fMcLabel(McLabel), | |
74 | fid(0), | |
75 | fImpPar(0.), | |
76 | fCheckSoftPi(kFALSE), | |
77 | fCharge(0), | |
78 | fInvMass(0), | |
79 | fPtBin(-1), | |
80 | fOriginMother(-1) | |
81 | { | |
82 | // | |
83 | // default constructor | |
84 | // | |
85 | } | |
86 | ||
87 | AliReducedParticle::AliReducedParticle(Double_t eta, Double_t phi, Double_t pt, int charge, int originmother) : | |
88 | fEta(eta), | |
89 | fPhi(phi), | |
90 | fpT(pt), | |
91 | fMcLabel(0), | |
92 | fid(0), | |
93 | fImpPar(0.), | |
94 | fCheckSoftPi(kFALSE), | |
95 | fCharge(charge), | |
96 | fInvMass(0), | |
97 | fPtBin(-1), | |
98 | fOriginMother(originmother) | |
99 | { | |
100 | // | |
101 | // default constructor | |
102 | // | |
103 | } | |
104 | ||
105 | AliReducedParticle::AliReducedParticle(Double_t eta, Double_t phi, Double_t pt, Double_t invmass, int ptbin, int originmother) : | |
106 | fEta(eta), | |
107 | fPhi(phi), | |
108 | fpT(pt), | |
109 | fMcLabel(0), | |
110 | fid(0), | |
111 | fImpPar(0.), | |
112 | fCheckSoftPi(kFALSE), | |
113 | fCharge(0), | |
114 | fInvMass(invmass), | |
115 | fPtBin(ptbin), | |
116 | fOriginMother(originmother) | |
117 | { | |
118 | // | |
119 | // default constructor | |
120 | // | |
121 | } | |
122 | ||
123 | ||
124 | AliReducedParticle::~AliReducedParticle() { | |
125 | ||
126 | // | |
127 | // destructor | |
128 | // | |
129 | ||
130 | //Info("AliReducedParticle","Calling Destructor"); | |
131 | } |