![]() |
AliPhysics
58ae0ed (58ae0ed)
|
Reduced information set of particles associated with a jet. More...
#include <AliReducedJetParticle.h>
Public Member Functions | |
AliReducedJetParticle () | |
AliReducedJetParticle (double px, double py, double pz, double e, int pdgcode) | |
AliReducedJetParticle (const AliReducedJetParticle &ref) | |
AliReducedJetParticle & | operator= (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 |
TObjArray * | GetMatchedTracks () const |
AliReducedMatchedTrack * | GetMatchedTrack (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... | |
TObjArray * | fMatchedTrackContainer |
Container for matched tracks at reconstruction level. More... | |
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.
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.
px | x-component of the momentum vector |
py | y-component of the momentum vector |
pz | z-component of the momentum vector |
e | Particle energy |
pdgcode | PDG 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.
ref | Reference for the copy |
Definition at line 75 of file AliReducedJetParticle.cxx.
|
virtual |
Destructor. Deletes all matched tracks associated to the particle.
Definition at line 121 of file AliReducedJetParticle.cxx.
void HighPtTracks::AliReducedJetParticle::AddMatchedTrack | ( | AliReducedMatchedTrack * | trk | ) |
Adds a new matched reconstructed track to the jet particle. Tracks are matched via the Monte-Carlo label.
trk | Reconstructed 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
ref | The 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.
itrk | Number of the matched track to be checked (0 as default) |
Definition at line 152 of file AliReducedJetParticle.cxx.
|
inline |
Get distance to the main jet axis.
Definition at line 59 of file AliReducedJetParticle.h.
|
inline |
Get matched track with given index. In case the index is out of bounds, return a nullpointer.
itrk | Index to check |
Definition at line 101 of file AliReducedJetParticle.h.
|
inline |
Definition at line 92 of file AliReducedJetParticle.h.
|
inline |
Get the number of matched reconstruced tracks associated to the particle.
Definition at line 81 of file AliReducedJetParticle.h.
|
inline |
Get the number of track references in the TPC for the particle
Definition at line 90 of file AliReducedJetParticle.h.
|
inline |
Get the PDG code of the particle.
Definition at line 66 of file AliReducedJetParticle.h.
|
inline |
Checks if the track is reconstructed. Reconstructed tracks are defined as tracks with at least one associated track.
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.
ref | Reference for the copy |
Definition at line 102 of file AliReducedJetParticle.cxx.
|
inline |
Set the distance to the main jet axis
dr | Distance to the main jet axis |
Definition at line 126 of file AliReducedJetParticle.h.
Referenced by HighPtTracks::AliHighPtReconstructionEfficiency::ProcessJet().
|
inline |
Set the particle 4-momentum vector
px | x-component of the momentum vector |
py | y-component of the momentum vector |
pz | z-component of the momentum vector |
e | Particle energy |
Definition at line 114 of file AliReducedJetParticle.h.
|
inline |
Set the number of track references associated to the particle
nref | Number of track references associated to the particle |
Definition at line 142 of file AliReducedJetParticle.h.
Referenced by HighPtTracks::AliHighPtReconstructionEfficiency::ProcessJet().
|
inline |
Set the particle PDG code
pdg | The particle PDG code |
Definition at line 133 of file AliReducedJetParticle.h.
|
private |
Distance to the main jet axis.
Definition at line 149 of file AliReducedJetParticle.h.
Referenced by GetDistanceToJetMainAxis(), and SetDistanceToMainJetAxis().
|
private |
Particle energy.
Definition at line 148 of file AliReducedJetParticle.h.
Referenced by FillLorentzVector(), GetDeltaPt(), and SetKine().
|
private |
Container for matched tracks at reconstruction level.
Definition at line 152 of file AliReducedJetParticle.h.
Referenced by AddMatchedTrack(), AliReducedJetParticle(), GetDeltaPt(), GetMatchedTrack(), GetMatchedTracks(), GetNumberOfMatchedTracks(), IsReconstructed(), operator=(), and ~AliReducedJetParticle().
|
private |
Number of TPC track references associated to the particle.
Definition at line 151 of file AliReducedJetParticle.h.
Referenced by GetNumberOfTPCTrackReferences(), and SetNumberOfTPCtrackReferences().
|
private |
PDG code of the particle.
Definition at line 150 of file AliReducedJetParticle.h.
Referenced by GetPdgCode(), and SetPdgCode().
|
private |
x-component of the momentum vector
Definition at line 145 of file AliReducedJetParticle.h.
Referenced by FillLorentzVector(), GetDeltaPt(), and SetKine().
|
private |
y-component of the momentum vector
Definition at line 146 of file AliReducedJetParticle.h.
Referenced by FillLorentzVector(), GetDeltaPt(), and SetKine().
|
private |
z-component of the momentum vector
Definition at line 147 of file AliReducedJetParticle.h.
Referenced by FillLorentzVector(), GetDeltaPt(), and SetKine().