]>
Commit | Line | Data |
---|---|---|
815e6bab | 1 | #ifndef AliReducedParticle_H |
2 | #define AliReducedParticle_H | |
3 | ||
4 | ||
5 | /************************************************************************** | |
6 | * Copyright(c) 1998-2009, ALICE Experiment at CERN, All rights reserved. * | |
7 | * * | |
8 | * Author: The ALICE Off-line Project. * | |
9 | * Contributors are mentioned in the code where appropriate. * | |
10 | * * | |
11 | * Permission to use, copy, modify and distribute this software and its * | |
12 | * documentation strictly for non-commercial purposes is hereby granted * | |
13 | * without fee, provided that the above copyright notice appears in all * | |
14 | * copies and that both the copyright notice and this permission notice * | |
15 | * appear in the supporting documentation. The authors make no claims * | |
16 | * about the suitability of this software for any purpose. It is * | |
17 | * provided "as is" without express or implied warranty. * | |
18 | **************************************************************************/ | |
19 | ||
20 | /* $Id$ */ | |
21 | ||
22 | // | |
23 | // | |
24 | // Base class for DStar - Hadron Correlations Analysis | |
25 | // | |
26 | //----------------------------------------------------------------------- | |
27 | // | |
28 | // | |
29 | // Author S.Bjelogrlic | |
30 | // Utrecht University | |
31 | // sandro.bjelogrlic@cern.ch | |
32 | // | |
33 | //----------------------------------------------------------------------- | |
34 | ||
35 | ||
36 | #include "AliLog.h" | |
2d1e13d1 | 37 | #include "AliVParticle.h" |
815e6bab | 38 | |
39 | // class to get the reduced hadron candidate | |
40 | class AliReducedParticle : public AliVParticle | |
815e6bab | 41 | { |
42 | public: | |
bce70c96 | 43 | AliReducedParticle(Double_t eta, Double_t phi, Double_t pt, Int_t mcLabel, Int_t trackid, Double_t impPar, Bool_t checkSoftPi); |
2d1e13d1 | 44 | 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); |
cc5f70d8 | 45 | 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); |
bce70c96 | 46 | AliReducedParticle(Double_t eta, Double_t phi, Double_t pt, Int_t mcLabel); |
2d1e13d1 | 47 | AliReducedParticle(Double_t eta, Double_t phi, Double_t pt, int charge, int orginmother); |
48 | AliReducedParticle(Double_t eta, Double_t phi, Double_t pt, Double_t invmass, int ptbin, int orginmother=0); | |
815e6bab | 49 | |
50 | ~AliReducedParticle(); | |
51 | ||
52 | // kinematics | |
53 | ||
54 | virtual Double_t Pt() const { return fpT; } | |
bce70c96 | 55 | virtual Double_t Phi() const { return fPhi; } |
56 | virtual Double_t Eta() const { return fEta; } | |
57 | virtual Int_t GetLabel() const { return fMcLabel; } | |
58 | virtual Int_t GetID() const{return fid;} | |
59 | virtual Double_t GetImpPar() const{return fImpPar;} | |
60 | virtual Bool_t CheckSoftPi() const{return fCheckSoftPi;} | |
2d1e13d1 | 61 | virtual Double_t GetInvMass() const {return fInvMass;} |
62 | virtual int GetPtBin() const {return fPtBin;} | |
63 | virtual int GetOriginMother() const {return fOriginMother;} | |
cc5f70d8 | 64 | void SetWeight(Double_t weight){fWeight=weight;} |
65 | Double_t GetWeight(){return fWeight;} | |
66 | ||
815e6bab | 67 | // kinematics |
68 | virtual Double_t Px() const { AliFatal("Not implemented"); return 0; } | |
69 | virtual Double_t Py() const { AliFatal("Not implemented"); return 0; } | |
70 | virtual Double_t Pz() const { AliFatal("Not implemented"); return 0; } | |
71 | virtual Double_t P() const { AliFatal("Not implemented"); return 0; } | |
72 | virtual Bool_t PxPyPz(Double_t[3]) const { AliFatal("Not implemented"); return 0; } | |
73 | ||
74 | virtual Double_t Xv() const { AliFatal("Not implemented"); return 0; } | |
75 | virtual Double_t Yv() const { AliFatal("Not implemented"); return 0; } | |
76 | virtual Double_t Zv() const { AliFatal("Not implemented"); return 0; } | |
77 | virtual Bool_t XvYvZv(Double_t[3]) const { AliFatal("Not implemented"); return 0; } | |
78 | ||
79 | virtual Double_t OneOverPt() const { AliFatal("Not implemented"); return 0; } | |
80 | ||
81 | virtual Double_t Theta() const { AliFatal("Not implemented"); return 0; } | |
82 | ||
83 | ||
84 | virtual Double_t E() const { AliFatal("Not implemented"); return 0; } | |
85 | virtual Double_t M() const { AliFatal("Not implemented"); return 0; } | |
86 | ||
87 | ||
88 | virtual Double_t Y() const { AliFatal("Not implemented"); return 0; } | |
89 | ||
c84dbedf | 90 | virtual Short_t Charge() const { return fCharge;} |
815e6bab | 91 | |
92 | // PID | |
93 | virtual Int_t PdgCode() const { AliFatal("Not implemented"); return 0; } | |
94 | virtual const Double_t *PID() const { AliFatal("Not implemented"); return 0; } | |
95 | ||
96 | ||
97 | ||
98 | ||
99 | private: | |
2d1e13d1 | 100 | Double_t fEta; // eta |
101 | Double_t fPhi; // phi | |
102 | Double_t fpT; // pT | |
103 | Int_t fMcLabel; //mclabel | |
104 | Int_t fid; // track ID | |
105 | Double_t fImpPar; // impact parameter | |
bce70c96 | 106 | Bool_t fCheckSoftPi; // check if the track is compatible with a softpion from D* |
2d1e13d1 | 107 | Short_t fCharge; // charge of the associated track |
108 | Double_t fInvMass; // Invariant mass of Dmeson | |
cc5f70d8 | 109 | Double_t fWeight; // track weight (e.g. 1/efficiency) |
2d1e13d1 | 110 | int fPtBin; // Ptbin of Dmesons |
111 | int fOriginMother; // Holds the origin motherquark (process) | |
112 | ||
815e6bab | 113 | |
2d1e13d1 | 114 | ClassDef(AliReducedParticle, 4); // class which contains only quantities requires for this analysis to reduce memory consumption for event mixing |
815e6bab | 115 | }; |
116 | #endif |