Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
KFPTrackIndex Class Reference

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.
 

Detailed Description

Helper structure to sort tracks in the KFPTrackVector object.

Author
M.Zyzak, I.Kisel
Date
05.02.2019
Version
1.0

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

Member Function Documentation

static bool KFPTrackIndex::Compare ( const KFPTrackIndex a,
const KFPTrackIndex b 
)
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".

Parameters
[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().

+ Here is the caller graph for this function:

Member Data Documentation

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().


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