AliPhysics  1168478 (1168478)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliBasicParticle.h
Go to the documentation of this file.
1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2  * See cxx source for full Copyright notice */
3 
4 // Basic particle class only containing pt, eta, phi, charge
5 //
6 #ifndef ALIBASICPARTICLE_H
7 #define ALIBASICPARTICLE_H
8 
9 
10 #include "AliVParticle.h"
11 #include "AliLog.h"
12 
13 class AliBasicParticle : public AliVParticle
14 {
15  public:
19 
20  // kinematics
21  virtual Double_t Px() const { AliFatal("Not implemented"); return 0; }
22  virtual Double_t Py() const { AliFatal("Not implemented"); return 0; }
23  virtual Double_t Pz() const { AliFatal("Not implemented"); return 0; }
24  virtual Double_t Pt() const { return fpT; }
25  virtual Double_t P() const { AliFatal("Not implemented"); return 0; }
26  virtual Bool_t PxPyPz(Double_t[3]) const { AliFatal("Not implemented"); return 0; }
27 
28  virtual Double_t Xv() const { AliFatal("Not implemented"); return 0; }
29  virtual Double_t Yv() const { AliFatal("Not implemented"); return 0; }
30  virtual Double_t Zv() const { AliFatal("Not implemented"); return 0; }
31  virtual Bool_t XvYvZv(Double_t[3]) const { AliFatal("Not implemented"); return 0; }
32 
33  virtual Double_t OneOverPt() const { AliFatal("Not implemented"); return 0; }
34  virtual Double_t Phi() const { return fPhi; }
35  virtual Double_t Theta() const { AliFatal("Not implemented"); return 0; }
36 
37 
38  virtual Double_t E() const { AliFatal("Not implemented"); return 0; }
39  virtual Double_t M() const { AliFatal("Not implemented"); return 0; }
40 
41  virtual Double_t Eta() const { return fEta; }
42  virtual Double_t Y() const { AliFatal("Not implemented"); return 0; }
43 
44  virtual Short_t Charge() const { return fCharge; }
45  virtual Int_t GetLabel() const { AliFatal("Not implemented"); return 0; }
46  // PID
47  virtual Int_t PdgCode() const { AliFatal("Not implemented"); return 0; }
48  virtual const Double_t *PID() const { AliFatal("Not implemented"); return 0; }
49 
50  virtual Long64_t GetEventIndex()const { return fEventIndex; }
51  virtual Bool_t IsEqual(const TObject* obj) const { return (obj->GetUniqueID() == GetUniqueID()); }
52  virtual Bool_t IsInSameEvent(const AliBasicParticle* obj) const { return (obj->GetEventIndex() == GetEventIndex()); }
53 
54  virtual void SetPhi(Double_t phi) { fPhi = phi; }
55  virtual void SetEventIndex(Long64_t val) { fEventIndex = val; }
56 
57  private:
58  Float_t fEta; // eta
59  Float_t fPhi; // phi
60  Float_t fpT; // pT
61  Short_t fCharge; // charge
62  Long64_t fEventIndex;// event index
63 
64  ClassDef( AliBasicParticle, 3); // very basic particle class used for correlation analyses
65 };
66 
67 #endif
Int_t charge
double Double_t
Definition: External.C:58
virtual Double_t Px() const
long long Long64_t
Definition: External.C:43
virtual Double_t Zv() const
virtual void SetEventIndex(Long64_t val)
virtual Double_t Yv() const
virtual Double_t Theta() const
virtual Int_t PdgCode() const
virtual const Double_t * PID() const
virtual Double_t Pt() const
ClassDef(AliBasicParticle, 3)
virtual Double_t Eta() const
virtual Double_t Y() const
virtual Double_t E() const
virtual Int_t GetLabel() const
virtual Long64_t GetEventIndex() const
virtual Short_t Charge() const
int Int_t
Definition: External.C:63
float Float_t
Definition: External.C:68
virtual Bool_t IsInSameEvent(const AliBasicParticle *obj) const
virtual Double_t OneOverPt() const
short Short_t
Definition: External.C:23
virtual Bool_t IsEqual(const TObject *obj) const
virtual Bool_t PxPyPz(Double_t[3]) const
virtual void SetPhi(Double_t phi)
virtual Bool_t XvYvZv(Double_t[3]) const
virtual Double_t P() const
bool Bool_t
Definition: External.C:53
virtual Double_t Xv() const
virtual Double_t Py() const
virtual Double_t Pz() const
virtual Double_t Phi() const
virtual Double_t M() const