#include <iostream>
#include "L1Trigger/L1TCalorimeter/interface/HardwareSortingMethods.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
Go to the source code of this file.
Namespaces | |
l1t | |
map containing the conditions | |
Functions | |
std::vector< l1t::Jet > | array_from_row_sorted_matrix (std::vector< std::vector< l1t::Jet > > input_matrix, unsigned int n_keep) |
std::vector< std::vector < l1t::Jet > > | extract_sub_jet_energy_position_matrix (std::vector< std::vector< l1t::Jet > > input_matrix, unsigned int row_i, unsigned int row_f, unsigned int col_i, unsigned int col_f) |
std::vector< std::vector < l1t::Jet > > | presort (std::vector< std::vector< l1t::Jet > > energies, int rows, int cols) |
void | print2DVector (std::vector< std::vector< l1t::Jet > > myVector) |
std::vector< l1t::Jet > | sort_array (std::vector< l1t::Jet > inputArray) |
std::vector< std::vector < l1t::Jet > > | sort_by_row_in_groups (std::vector< std::vector< l1t::Jet > > input_matrix, int group_size) |
std::vector< std::vector < l1t::Jet > > | sort_matrix_rows (std::vector< std::vector< l1t::Jet > > input_matrix) |
void | l1t::SortJets (std::vector< l1t::Jet > *input, std::vector< l1t::Jet > *output) |
std::vector< std::vector < l1t::Jet > > | super_sort_matrix_rows (std::vector< std::vector< l1t::Jet > > input_matrix, unsigned int group_size, unsigned int n_keep) |
Variables | |
int | fw_to_gt_phi_map [] = {4, 3, 2, 1, 0, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5} |
int | gt_to_fw_phi_map [] = {4, 3, 2, 1, 0, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5} |
const bool | verbose = false |
std::vector<l1t::Jet> array_from_row_sorted_matrix | ( | std::vector< std::vector< l1t::Jet > > | input_matrix, |
unsigned int | n_keep | ||
) |
Definition at line 133 of file HardwareSortingMethods.cc.
References i, j, gen::k, l1t::L1Candidate::setHwEta(), l1t::L1Candidate::setHwPhi(), l1t::L1Candidate::setHwPt(), and findQualityFiles::size.
Referenced by super_sort_matrix_rows().
std::vector<std::vector<l1t::Jet> > extract_sub_jet_energy_position_matrix | ( | std::vector< std::vector< l1t::Jet > > | input_matrix, |
unsigned int | row_i, | ||
unsigned int | row_f, | ||
unsigned int | col_i, | ||
unsigned int | col_f | ||
) |
Definition at line 86 of file HardwareSortingMethods.cc.
References i, j, l1t::L1Candidate::setHwEta(), l1t::L1Candidate::setHwPhi(), and l1t::L1Candidate::setHwPt().
Referenced by sort_by_row_in_groups(), and super_sort_matrix_rows().
std::vector<std::vector<l1t::Jet> > presort | ( | std::vector< std::vector< l1t::Jet > > | energies, |
int | rows, | ||
int | cols | ||
) |
Definition at line 45 of file HardwareSortingMethods.cc.
References trackerHits::c, cuy::col, print2DVector(), alignCSCRings::r, tablePrinter::rows, l1t::L1Candidate::setHwEta(), l1t::L1Candidate::setHwPhi(), l1t::L1Candidate::setHwPt(), and sort_array().
Referenced by l1t::SortJets().
void print2DVector | ( | std::vector< std::vector< l1t::Jet > > | myVector | ) |
Definition at line 18 of file HardwareSortingMethods.cc.
References trackerHits::c, gather_cfg::cout, and alignCSCRings::r.
Referenced by presort(), sort_by_row_in_groups(), and super_sort_matrix_rows().
Definition at line 33 of file HardwareSortingMethods.cc.
Referenced by presort(), and super_sort_matrix_rows().
std::vector<std::vector<l1t::Jet> > sort_by_row_in_groups | ( | std::vector< std::vector< l1t::Jet > > | input_matrix, |
int | group_size | ||
) |
Definition at line 116 of file HardwareSortingMethods.cc.
References extract_sub_jet_energy_position_matrix(), g, i, print2DVector(), findQualityFiles::size, and sort_matrix_rows().
Referenced by l1t::SortJets().
std::vector<std::vector<l1t::Jet> > sort_matrix_rows | ( | std::vector< std::vector< l1t::Jet > > | input_matrix | ) |
Definition at line 102 of file HardwareSortingMethods.cc.
Referenced by sort_by_row_in_groups().
std::vector<std::vector<l1t::Jet> > super_sort_matrix_rows | ( | std::vector< std::vector< l1t::Jet > > | input_matrix, |
unsigned int | group_size, | ||
unsigned int | n_keep | ||
) |
Definition at line 164 of file HardwareSortingMethods.cc.
References array_from_row_sorted_matrix(), extract_sub_jet_energy_position_matrix(), g, i, print2DVector(), findQualityFiles::size, and sort_array().
Referenced by l1t::SortJets().
int fw_to_gt_phi_map[] = {4, 3, 2, 1, 0, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5} |
Definition at line 15 of file HardwareSortingMethods.cc.
Referenced by l1t::SortJets().
int gt_to_fw_phi_map[] = {4, 3, 2, 1, 0, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5} |
Definition at line 16 of file HardwareSortingMethods.cc.
Referenced by l1t::SortJets().
const bool verbose = false |
Definition at line 13 of file HardwareSortingMethods.cc.