PandaRoot
PndTrkMergeSort.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 #ifndef PndTrkMergeSort_H
14 #define PndTrkMergeSort_H 1
15 
16 // Root includes
17 #include "TROOT.h"
18 
19 class PndTrkMergeSort : public TObject {
20 
21  public:
26 
27  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);
28 
29  // the only difference with Merge is that in Merge2 only Short_t
30  // are used (NO Int_t);
31  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);
32 
33  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);
34 
35  void Merge_Sort(Short_t n_ele, Double_t *array, Int_t *ind);
36 
37  // the only difference with Merge_Sort is that *ind is a Sort_t
38  // (NO Int_t);
39  void Merge_Sort2(Short_t n_ele, Double_t *array, Short_t *ind);
40 
41  void Merge_Sort3(Short_t n_ele,
42  Int_t *array, // the array to be ordered;
43  Short_t *ind);
44 
46 };
47 
48 #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)