AliPhysics  v5-06-21-01 (1eac791)
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
AliReducedGeneratedParticle.h
Go to the documentation of this file.
1 
11 #ifndef ALIREDUCEDGENERATEDPARTICLE_H
12 #define ALIREDUCEDGENERATEDPARTICLE_H
13 /* Copyright(c) 1998-2015, ALICE Experiment at CERN, All rights reserved. *
14  * See cxx source for full Copyright notice */
15 
16 #include <TObject.h>
17 
18 class TVector3;
19 
34 namespace HighPtTracks {
35 
47 class AliReducedGeneratedParticle: public TObject {
48 public:
50  AliReducedGeneratedParticle(Int_t id, Int_t pdg, Double_t px, Double_t py, Double_t pz, Double_t energy);
52 
57  Int_t GetID() const { return fParticleID; }
62  Int_t GetPdgCode() const { return fPDGCode; }
67  Double_t GetParticleEnergy() const { return fEnergy; }
68 
69  Double_t Pt() const;
70  Double_t Eta() const;
71  Double_t Phi() const;
72 
73  void FillMomentumVector(TVector3 &) const;
74 
84  void Set(Int_t id, Int_t pdgcode, Double_t px, Double_t py, Double_t pz, Double_t energy){
85  fParticleID = id;
86  fPDGCode = pdgcode;
87  fPVec[0] = px;
88  fPVec[1] = py;
89  fPVec[2] = px;
90  fEnergy = energy;
91  }
96  void SetID(Int_t id) { fParticleID = id; }
101  void SetPDGCode(Int_t pdgcode) { fPDGCode = pdgcode; }
108  void SetPVector(Double_t px, Double_t py, Double_t pz){
109  fPVec[0] = px;
110  fPVec[1] = py;
111  fPVec[2] = px;
112  }
117  void SetEnergy(Double_t energy) { fEnergy = energy; }
118 
119 protected:
120  Int_t fParticleID;
121  Int_t fPDGCode;
122  Double_t fPVec[3];
123  Double_t fEnergy;
124 
126  ClassDef(AliReducedGeneratedParticle, 1);
128 };
129 
130 } /* namespace HighPtTracks */
131 
132 #endif /* ALIREDUCEDGENERATEDPARTICLE_H */
void Set(Int_t id, Int_t pdgcode, Double_t px, Double_t py, Double_t pz, Double_t energy)
void SetPVector(Double_t px, Double_t py, Double_t pz)
Structure for reduced particle information at generator level.
Double_t fPVec[3]
Particle momentum vector.