AliPhysics  vAN-20150507 (0645659)
 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 
32 namespace HighPtTracks {
33 
45 class AliReducedGeneratedParticle: public TObject {
46 public:
48  AliReducedGeneratedParticle(Int_t id, Int_t pdg, Double_t px, Double_t py, Double_t pz, Double_t energy);
50 
55  Int_t GetID() const { return fParticleID; }
60  Int_t GetPdgCode() const { return fPDGCode; }
65  Double_t GetParticleEnergy() const { return fEnergy; }
66 
76  void Set(Int_t id, Int_t pdgcode, Double_t px, Double_t py, Double_t pz, Double_t energy){
77  fParticleID = id;
78  fPDGCode = pdgcode;
79  fPVec[0] = px;
80  fPVec[1] = py;
81  fPVec[2] = px;
82  fEnergy = energy;
83  }
88  void SetID(Int_t id) { fParticleID = id; }
93  void SetPDGCode(Int_t pdgcode) { fPDGCode = pdgcode; }
100  void SetPVector(Double_t px, Double_t py, Double_t pz){
101  fPVec[0] = px;
102  fPVec[1] = py;
103  fPVec[2] = px;
104  }
109  void SetEnergy(Double_t energy) { fEnergy = energy; }
110 
111 protected:
112  Int_t fParticleID;
113  Int_t fPDGCode;
114  Double_t fPVec[3];
115  Double_t fEnergy;
116 
118  ClassDef(AliReducedGeneratedParticle, 1);
120 };
121 
122 } /* namespace HighPtTracks */
123 
124 #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.