AliPhysics  58ae0ed (58ae0ed)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HighPtTracks::AliReducedJetParticle Class Reference

Reduced information set of particles associated with a jet. More...

#include <AliReducedJetParticle.h>

Inheritance diagram for HighPtTracks::AliReducedJetParticle:

Public Member Functions

 AliReducedJetParticle ()
 
 AliReducedJetParticle (double px, double py, double pz, double e, int pdgcode)
 
 AliReducedJetParticle (const AliReducedJetParticle &ref)
 
AliReducedJetParticleoperator= (const AliReducedJetParticle &ref)
 
virtual ~AliReducedJetParticle ()
 
void FillLorentzVector (TLorentzVector &ref) const
 
double GetDistanceToJetMainAxis () const
 
int GetPdgCode () const
 
bool IsReconstructed () const
 
int GetNumberOfMatchedTracks () const
 
double GetDeltaPt (int itrk=0) const
 
unsigned short GetNumberOfTPCTrackReferences () const
 
TObjArrayGetMatchedTracks () const
 
AliReducedMatchedTrackGetMatchedTrack (int itrk)
 
void SetKine (double px, double py, double pz, double e)
 
void SetDistanceToMainJetAxis (double dr)
 
void SetPdgCode (int pdg)
 
void AddMatchedTrack (AliReducedMatchedTrack *trk)
 
void SetNumberOfTPCtrackReferences (unsigned short nref)
 

Private Attributes

double fPx
 x-component of the momentum vector More...
 
double fPy
 y-component of the momentum vector More...
 
double fPz
 z-component of the momentum vector More...
 
double fE
 Particle energy. More...
 
double fDr
 Distance to the main jet axis. More...
 
int fPdgCode
 PDG code of the particle. More...
 
unsigned short fNTPCTrackReferences
 Number of TPC track references associated to the particle. More...
 
TObjArrayfMatchedTrackContainer
 Container for matched tracks at reconstruction level. More...
 

Detailed Description

Reduced information set of particles associated with a jet.

Object storing particle based information for tracks associated with jets. The object contains the 4-momentum vector of the particle, the PDG code, the distance to the main jet axis of its associated jet, the number of TPC track references of the Monte-Carlo true particle, and a list of reduced reconstructed tracks associated to the true particle.

Definition at line 44 of file AliReducedJetParticle.h.

Constructor & Destructor Documentation

HighPtTracks::AliReducedJetParticle::AliReducedJetParticle ( )

Dummy (I/O) constructor, not to be used

Definition at line 28 of file AliReducedJetParticle.cxx.

HighPtTracks::AliReducedJetParticle::AliReducedJetParticle ( double  px,
double  py,
double  pz,
double  e,
int  pdgcode 
)

Main constructor, initializes the particle with the moment vector, the particle energy and the PDG code. Also creates a container for tracks matched to the particle via the Monte-Carlo label, which takes ownership over the matched tracks.

Parameters
pxx-component of the momentum vector
pyy-component of the momentum vector
pzz-component of the momentum vector
eParticle energy
pdgcodePDG code of the particle

Definition at line 54 of file AliReducedJetParticle.cxx.

HighPtTracks::AliReducedJetParticle::AliReducedJetParticle ( const AliReducedJetParticle ref)

Copy constructor. For each matched track, a copy is created and stored in the new object.

Parameters
refReference for the copy

Definition at line 75 of file AliReducedJetParticle.cxx.

HighPtTracks::AliReducedJetParticle::~AliReducedJetParticle ( )
virtual

Destructor. Deletes all matched tracks associated to the particle.

Definition at line 121 of file AliReducedJetParticle.cxx.

Member Function Documentation

void HighPtTracks::AliReducedJetParticle::AddMatchedTrack ( AliReducedMatchedTrack trk)

Adds a new matched reconstructed track to the jet particle. Tracks are matched via the Monte-Carlo label.

Parameters
trkReconstructed track matched to the particle

Definition at line 141 of file AliReducedJetParticle.cxx.

Referenced by HighPtTracks::AliHighPtReconstructionEfficiency::ProcessJet().

void HighPtTracks::AliReducedJetParticle::FillLorentzVector ( TLorentzVector &  ref) const

Access to the particle kinematics information via a TLorentzVector which is filled inside the function

Parameters
refThe TLorentzVector to be filled

Definition at line 131 of file AliReducedJetParticle.cxx.

double HighPtTracks::AliReducedJetParticle::GetDeltaPt ( int  itrk = 0) const

Calculate the difference between reconstructed and generated \( p_{t} \) relative to the generated \( p_{t} \) . If no matching track is found for the index, returns -1000.

Parameters
itrkNumber of the matched track to be checked (0 as default)
Returns
\((p_{t,gen} - p_{t,rec})/p_{t,rec}\) (-1000 if no track is available)

Definition at line 152 of file AliReducedJetParticle.cxx.

double HighPtTracks::AliReducedJetParticle::GetDistanceToJetMainAxis ( ) const
inline

Get distance to the main jet axis.

Returns
The reconstructed distance

Definition at line 59 of file AliReducedJetParticle.h.

AliReducedMatchedTrack* HighPtTracks::AliReducedJetParticle::GetMatchedTrack ( int  itrk)
inline

Get matched track with given index. In case the index is out of bounds, return a nullpointer.

Parameters
itrkIndex to check
Returns
The track with this index (NULL if out of bounds)

Definition at line 101 of file AliReducedJetParticle.h.

TObjArray* HighPtTracks::AliReducedJetParticle::GetMatchedTracks ( ) const
inline

Definition at line 92 of file AliReducedJetParticle.h.

int HighPtTracks::AliReducedJetParticle::GetNumberOfMatchedTracks ( ) const
inline

Get the number of matched reconstruced tracks associated to the particle.

Returns
Number of matched reconstructed tracks

Definition at line 81 of file AliReducedJetParticle.h.

unsigned short HighPtTracks::AliReducedJetParticle::GetNumberOfTPCTrackReferences ( ) const
inline

Get the number of track references in the TPC for the particle

Returns
The number of TPC track references

Definition at line 90 of file AliReducedJetParticle.h.

int HighPtTracks::AliReducedJetParticle::GetPdgCode ( ) const
inline

Get the PDG code of the particle.

Returns
The PDF code

Definition at line 66 of file AliReducedJetParticle.h.

bool HighPtTracks::AliReducedJetParticle::IsReconstructed ( ) const
inline

Checks if the track is reconstructed. Reconstructed tracks are defined as tracks with at least one associated track.

Returns
True if at least one reconstructed track is found, false otherwise

Definition at line 74 of file AliReducedJetParticle.h.

AliReducedJetParticle & HighPtTracks::AliReducedJetParticle::operator= ( const AliReducedJetParticle ref)

Assignment operator. For each matched track, a copy is created and stored in the new object.

Parameters
refReference for the copy
Returns
This object

Definition at line 102 of file AliReducedJetParticle.cxx.

void HighPtTracks::AliReducedJetParticle::SetDistanceToMainJetAxis ( double  dr)
inline

Set the distance to the main jet axis

Parameters
drDistance to the main jet axis

Definition at line 126 of file AliReducedJetParticle.h.

Referenced by HighPtTracks::AliHighPtReconstructionEfficiency::ProcessJet().

void HighPtTracks::AliReducedJetParticle::SetKine ( double  px,
double  py,
double  pz,
double  e 
)
inline

Set the particle 4-momentum vector

Parameters
pxx-component of the momentum vector
pyy-component of the momentum vector
pzz-component of the momentum vector
eParticle energy

Definition at line 114 of file AliReducedJetParticle.h.

void HighPtTracks::AliReducedJetParticle::SetNumberOfTPCtrackReferences ( unsigned short  nref)
inline

Set the number of track references associated to the particle

Parameters
nrefNumber of track references associated to the particle

Definition at line 142 of file AliReducedJetParticle.h.

Referenced by HighPtTracks::AliHighPtReconstructionEfficiency::ProcessJet().

void HighPtTracks::AliReducedJetParticle::SetPdgCode ( int  pdg)
inline

Set the particle PDG code

Parameters
pdgThe particle PDG code

Definition at line 133 of file AliReducedJetParticle.h.

Member Data Documentation

double HighPtTracks::AliReducedJetParticle::fDr
private

Distance to the main jet axis.

Definition at line 149 of file AliReducedJetParticle.h.

Referenced by GetDistanceToJetMainAxis(), and SetDistanceToMainJetAxis().

double HighPtTracks::AliReducedJetParticle::fE
private

Particle energy.

Definition at line 148 of file AliReducedJetParticle.h.

Referenced by FillLorentzVector(), GetDeltaPt(), and SetKine().

TObjArray* HighPtTracks::AliReducedJetParticle::fMatchedTrackContainer
private
unsigned short HighPtTracks::AliReducedJetParticle::fNTPCTrackReferences
private

Number of TPC track references associated to the particle.

Definition at line 151 of file AliReducedJetParticle.h.

Referenced by GetNumberOfTPCTrackReferences(), and SetNumberOfTPCtrackReferences().

int HighPtTracks::AliReducedJetParticle::fPdgCode
private

PDG code of the particle.

Definition at line 150 of file AliReducedJetParticle.h.

Referenced by GetPdgCode(), and SetPdgCode().

double HighPtTracks::AliReducedJetParticle::fPx
private

x-component of the momentum vector

Definition at line 145 of file AliReducedJetParticle.h.

Referenced by FillLorentzVector(), GetDeltaPt(), and SetKine().

double HighPtTracks::AliReducedJetParticle::fPy
private

y-component of the momentum vector

Definition at line 146 of file AliReducedJetParticle.h.

Referenced by FillLorentzVector(), GetDeltaPt(), and SetKine().

double HighPtTracks::AliReducedJetParticle::fPz
private

z-component of the momentum vector

Definition at line 147 of file AliReducedJetParticle.h.

Referenced by FillLorentzVector(), GetDeltaPt(), and SetKine().


The documentation for this class was generated from the following files: