AliPhysics  41af4b0 (41af4b0)
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 
48 public:
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 
81  void GetMomentumVector(Double_t &px, Double_t &py, Double_t &pz) const {
82  px = fPVec[0];
83  py = fPVec[1];
84  pz = fPVec[2];
85  }
86 
96  void Set(Int_t id, Int_t pdgcode, Double_t px, Double_t py, Double_t pz, Double_t energy){
97  fParticleID = id;
98  fPDGCode = pdgcode;
99  fPVec[0] = px;
100  fPVec[1] = py;
101  fPVec[2] = px;
102  fEnergy = energy;
103  }
108  void SetID(Int_t id) { fParticleID = id; }
113  void SetPDGCode(Int_t pdgcode) { fPDGCode = pdgcode; }
121  fPVec[0] = px;
122  fPVec[1] = py;
123  fPVec[2] = px;
124  }
129  void SetEnergy(Double_t energy) { fEnergy = energy; }
130 
131 protected:
136 
138  ClassDef(AliReducedGeneratedParticle, 1);
140 };
141 
142 } /* namespace HighPtTracks */
143 
144 #endif /* ALIREDUCEDGENERATEDPARTICLE_H */
Int_t pdg
double Double_t
Definition: External.C:58
energy
Definition: HFPtSpectrum.C:44
void GetMomentumVector(Double_t &px, Double_t &py, Double_t &pz) const
void Set(Int_t id, Int_t pdgcode, Double_t px, Double_t py, Double_t pz, Double_t energy)
int Int_t
Definition: External.C:63
Namespace for classes creating trees of events with jets.
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.