AliPhysics  vAN-20150425 (2dcf1b0)
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros
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  **************************************************************************/
16 
20 
21 namespace HighPtTracks {
22 
26 AliReducedGeneratedParticle::AliReducedGeneratedParticle():
27  TObject(),
28  fParticleID(-1),
29  fPDGCode(-10000),
30  fEnergy(-1.)
31 {
32  memset(fPVec, 0, sizeof(Double_t) * 3);
33 }
34 
45  Double_t px, Double_t py, Double_t pz, Double_t energy):
46  TObject(),
47  fParticleID(id),
48  fPDGCode(pdg),
49  fEnergy(energy)
50 {
51  fPVec[0] = px;
52  fPVec[1] = py;
53  fPVec[2] = px;
54 }
55 
60 
61 } /* namespace HighPtTracks */
ClassImp(AliAnalysisTaskTriggerRates) AliAnalysisTaskTriggerRates
Declaration of class AliReducedGeneratedParticle.
Structure for reduced particle information at generator level.
Double_t fPVec[3]
Particle momentum vector.