AliPhysics  9fe175b (9fe175b)
 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:
17  AliBasicParticle(Float_t eta, Float_t phi, Float_t pt, Short_t charge);
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 Bool_t IsEqual(const TObject* obj) const { return (obj->GetUniqueID() == GetUniqueID()); }
51 
52  virtual void SetPhi(Double_t phi) { fPhi = phi; }
53 
54  private:
55  Float_t fEta; // eta
56  Float_t fPhi; // phi
57  Float_t fpT; // pT
58  Short_t fCharge; // charge
59 
60  ClassDef( AliBasicParticle, 1); // very basic particle class used for correlation analyses
61 };
62 
63 #endif
Int_t charge
virtual Double_t Px() const
virtual Double_t Zv() const
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
virtual Double_t Eta() const
virtual Double_t Y() const
virtual Double_t E() const
ClassDef(AliBasicParticle, 1)
virtual Int_t GetLabel() const
virtual Short_t Charge() const
virtual Double_t OneOverPt() const
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
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