AliPhysics  e59a9ba (e59a9ba)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliReducedJetConstituent.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 <TDatabasePDG.h>
16 #include <TLorentzVector.h>
17 #include <TParticlePDG.h>
18 
20 
24 
25 namespace HighPtTracks {
26 
30 AliReducedJetConstituent::AliReducedJetConstituent() :
31  TObject(),
32  fPx(0),
33  fPy(0),
34  fPz(0),
35  fE(0),
36  fPdgCode(0)
37 {
38 }
39 
49 AliReducedJetConstituent::AliReducedJetConstituent(double px, double py, double pz, double e, int pdg) :
50  TObject(),
51  fPx(px),
52  fPy(py),
53  fPz(pz),
54  fE(e),
55  fPdgCode(pdg)
56 {
57 }
58 
64 void AliReducedJetConstituent::FillLorentzVector(TLorentzVector& target) const {
65  target.SetPxPyPzE(fPx, fPy, fPz, fE);
66 }
67 
76  return TDatabasePDG::Instance()->GetParticle(fPdgCode);
77 }
78 
79 } /* namespace HighPtTracks */
Minimal stucture for jet constituents associated to a jet by the jet clustering algorithm.
Int_t pdg
void FillLorentzVector(TLorentzVector &target) const
double fPz
z-compoent of the constituent 3-momentum vector
double fE
Energy of the constituent.
int fPdgCode
PDG code of the constituent.
ClassImp(AliAnalysisTaskCRC) AliAnalysisTaskCRC
Definition of class AliReducedJetConstituent, a minimal stucture for jet constituents associated to a...
double fPy
y-compoent of the constituent 3-momentum vector
double fPx
x-compoent of the constituent 3-momentum vector