Analysis Software
Documentation for sPHENIX simulation software
|
Helper structure to sort tracks in the KFPTrackVector object. More...
#include <KFParticle/blob/master/KFParticle/KFPInputData.h>
Static Public Member Functions | |
static bool | Compare (const KFPTrackIndex &a, const KFPTrackIndex &b) |
Public Attributes | |
int | fIndex |
index of the track in the KFPTrackVector object. | |
int | fPdg |
PDG hypothesis of the track. | |
Helper structure to sort tracks in the KFPTrackVector object.
The structure is used in the KFParticleTopoReconstructor::SortTracks() function. Tracks are sorted according to their pdg hypothesis: electrons, muons, pions, tracks without pdg (-1), kaons, protons, deuterons, tritons, He3, He4. Teh structure contains pdg hypothesis of the track and its index in the KFPTrackVector object.
Definition at line 45 of file KFPInputData.h.
View newest version in sPHENIX GitHub at line 45 of file KFPInputData.h
|
inlinestatic |
Static sorting function for comparison of the two input objects of class KFPTrackIndex. Objects are sorted according to the PDG hypothesis: electrons, muons, pions, tracks without pdg (-1), kaons, protons, deuterons, tritons, He3, He4. Return "true" if a.fPdg < b.fPdg, otherwise returns "false".
[in] | a | - first object |
[in] | b | - second object |
Definition at line 50 of file KFPInputData.h.
View newest version in sPHENIX GitHub at line 50 of file KFPInputData.h
References fPdg.
Referenced by KFParticleTopoReconstructor::SortTracks().
int KFPTrackIndex::fIndex |
index of the track in the KFPTrackVector object.
Definition at line 47 of file KFPInputData.h.
View newest version in sPHENIX GitHub at line 47 of file KFPInputData.h
int KFPTrackIndex::fPdg |
PDG hypothesis of the track.
Definition at line 48 of file KFPInputData.h.
View newest version in sPHENIX GitHub at line 48 of file KFPInputData.h
Referenced by Compare().