PandaRoot
PndTrkMergeSort.h
Go to the documentation of this file.
1 #ifndef PndTrkMergeSort_H
2 #define PndTrkMergeSort_H 1
3 
4 // Root includes
5 #include "TROOT.h"
6 
7 class PndTrkMergeSort : public TObject {
8 
9  public:
14 
15  void Merge(Short_t nl, Double_t *left, Int_t *ind_left, Short_t nr, Double_t *right, Int_t *ind_right, Double_t *result, Int_t *ind);
16 
17  // the only difference with Merge is that in Merge2 only Short_t
18  // are used (NO Int_t);
19  void Merge2(Short_t nl, Double_t *left, Short_t *ind_left, Short_t nr, Double_t *right, Short_t *ind_right, Double_t *result, Short_t *ind);
20 
21  void Merge3(Short_t nl, Int_t *left, Short_t *ind_left, Short_t nr, Int_t *right, Short_t *ind_right, Int_t *result, Short_t *ind);
22 
23  void Merge_Sort(Short_t n_ele, Double_t *array, Int_t *ind);
24 
25  // the only difference with Merge_Sort is that *ind is a Sort_t
26  // (NO Int_t);
27  void Merge_Sort2(Short_t n_ele, Double_t *array, Short_t *ind);
28 
29  void Merge_Sort3(Short_t n_ele,
30  Int_t *array, // the array to be ordered;
31  Short_t *ind);
32 
34 };
35 
36 #endif
void Merge(Short_t nl, Double_t *left, Int_t *ind_left, Short_t nr, Double_t *right, Int_t *ind_right, Double_t *result, Int_t *ind)
void Merge_Sort3(Short_t n_ele, Int_t *array, Short_t *ind)
ClassDef(PndTrkMergeSort, 1)
void Merge3(Short_t nl, Int_t *left, Short_t *ind_left, Short_t nr, Int_t *right, Short_t *ind_right, Int_t *result, Short_t *ind)
void Merge_Sort2(Short_t n_ele, Double_t *array, Short_t *ind)
void Merge_Sort(Short_t n_ele, Double_t *array, Int_t *ind)
void Merge2(Short_t nl, Double_t *left, Short_t *ind_left, Short_t nr, Double_t *right, Short_t *ind_right, Double_t *result, Short_t *ind)