AliPhysics  96f6795 (96f6795)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliReducedGeneratedParticle.cxx
Go to the documentation of this file.
1 /**************************************************************************
2  * Copyright(c) 1998-2015, ALICE Experiment at CERN, All rights reserved. *
3  * *
4  * Author: The ALICE Off-line Project. *
5  * Contributors are mentioned in the code where appropriate. *
6  * *
7  * Permission to use, copy, modify and distribute this software and its *
8  * documentation strictly for non-commercial purposes is hereby granted *
9  * without fee, provided that the above copyright notice appears in all *
10  * copies and that both the copyright notice and this permission notice *
11  * appear in the supporting documentation. The authors make no claims *
12  * about the suitability of this software for any purpose. It is *
13  * provided "as is" without express or implied warranty. *
14  **************************************************************************/
15 #include <TVector3.h>
17 
21 
22 namespace HighPtTracks {
23 
27 AliReducedGeneratedParticle::AliReducedGeneratedParticle():
28  TObject(),
29  fParticleID(-1),
30  fPDGCode(-10000),
31  fEnergy(-1.)
32 {
33  memset(fPVec, 0, sizeof(Double_t) * 3);
34 }
35 
47  TObject(),
48  fParticleID(id),
49  fPDGCode(pdg),
50  fEnergy(energy)
51 {
52  fPVec[0] = px;
53  fPVec[1] = py;
54  fPVec[2] = px;
55 }
56 
61 
67  TVector3 pvec(fPVec[0], fPVec[1], fPVec[2]);
68  return pvec.Pt();
69 }
70 
76  TVector3 pvec(fPVec[0], fPVec[1], fPVec[2]);
77  return pvec.Eta();
78 }
79 
85  TVector3 pvec(fPVec[0], fPVec[1], fPVec[2]);
86  return pvec.Phi();
87 }
88 
94  pvec.SetXYZ(fPVec[0], fPVec[1], fPVec[2]);
95 }
96 
97 
98 } /* namespace HighPtTracks */
99 
Int_t pdg
double Double_t
Definition: External.C:58
energy
Definition: HFPtSpectrum.C:44
int Int_t
Definition: External.C:63
Declaration of class AliReducedGeneratedParticle.
Structure for reduced particle information at generator level.
ClassImp(AliAnalysisTaskDeltaPt) AliAnalysisTaskDeltaPt
Double_t fPVec[3]
Particle momentum vector.