AliPhysics  9fe175b (9fe175b)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliReducedJetParticle.h
Go to the documentation of this file.
1 
9 #ifndef ALIREDUCEDJETPARTICLE_H
10 #define ALIREDUCEDJETPARTICLE_H
11 /* Copyright(c) 1998-2015, ALICE Experiment at CERN, All rights reserved. *
12  * See cxx source for full Copyright notice */
13 
14 #include <TObjArray.h>
15 #include "AliReducedMatchedTrack.h"
16 
17 class TLorentzVector;
18 
33 namespace HighPtTracks {
34 
44 class AliReducedJetParticle : public TObject {
45 public:
47  AliReducedJetParticle(double px, double py, double pz, double e, int pdgcode);
50  virtual ~AliReducedJetParticle();
51 
52  void FillLorentzVector(TLorentzVector &ref) const;
53 
59  double GetDistanceToJetMainAxis() const { return fDr; }
60 
66  int GetPdgCode() const { return fPdgCode; }
67 
74  bool IsReconstructed() const { return fMatchedTrackContainer->GetEntries() > 0; }
75 
81  int GetNumberOfMatchedTracks() const { return fMatchedTrackContainer->GetEntries(); }
82 
83  double GetDeltaPt(int itrk = 0) const;
84 
90  unsigned short GetNumberOfTPCTrackReferences() const { return fNTPCTrackReferences; }
91 
92  TObjArray *GetMatchedTracks() const { return fMatchedTrackContainer; }
93 
102  if(itrk >= fMatchedTrackContainer->GetEntries()) return NULL;
103  return static_cast<AliReducedMatchedTrack *>(fMatchedTrackContainer->At(itrk));
104  }
105 
114  void SetKine(double px, double py, double pz, double e){
115  fPx = px;
116  fPy = py;
117  fPz = pz;
118  fE = e;
119  }
120 
126  void SetDistanceToMainJetAxis(double dr) { fDr = dr; }
127 
133  void SetPdgCode(int pdg) { fPdgCode = pdg; }
134 
136 
142  void SetNumberOfTPCtrackReferences(unsigned short nref) { fNTPCTrackReferences = nref; }
143 
144 private:
145  double fPx;
146  double fPy;
147  double fPz;
148  double fE;
149  double fDr;
150  int fPdgCode;
151  unsigned short fNTPCTrackReferences;
153 
155  ClassDef(AliReducedJetParticle, 3);
157 };
158 
159 } /* namespace HighPtTracks */
160 
161 #endif /* ALIREDUCEDJETPARTICLE_H */
Int_t pdg
AliReducedJetParticle & operator=(const AliReducedJetParticle &ref)
void SetNumberOfTPCtrackReferences(unsigned short nref)
double fPy
y-component of the momentum vector
void SetKine(double px, double py, double pz, double e)
double fDr
Distance to the main jet axis.
void AddMatchedTrack(AliReducedMatchedTrack *trk)
TObjArray * fMatchedTrackContainer
Container for matched tracks at reconstruction level.
void FillLorentzVector(TLorentzVector &ref) const
double fPz
z-component of the momentum vector
int fPdgCode
PDG code of the particle.
AliReducedMatchedTrack * GetMatchedTrack(int itrk)
Reduced information set of particles associated with a jet.
Definition of class AliReducedTrack, a structure with reduced track information at reconstruction lev...
unsigned short GetNumberOfTPCTrackReferences() const
double fPx
x-component of the momentum vector
Class with reduced track information at reconstruction level.
unsigned short fNTPCTrackReferences
Number of TPC track references associated to the particle.