CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Namespaces | Functions | Variables
HardwareSortingMethods.cc File Reference
#include <iostream>
#include "L1Trigger/L1TCalorimeter/interface/HardwareSortingMethods.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"

Go to the source code of this file.

Namespaces

 l1t
 delete x;
 

Functions

std::vector< l1t::L1Candidatearray_from_row_sorted_matrix (std::vector< std::vector< l1t::L1Candidate > > input_matrix, unsigned int n_keep)
 
std::vector< std::vector
< l1t::L1Candidate > > 
extract_sub_jet_energy_position_matrix (std::vector< std::vector< l1t::L1Candidate > > input_matrix, unsigned int row_i, unsigned int row_f, unsigned int col_i, unsigned int col_f)
 
unsigned int l1t::pack15bits (int pt, int eta, int phi)
 
unsigned int l1t::pack16bits (int pt, int eta, int phi)
 
unsigned int l1t::pack16bitsEgammaSpecial (int pt, int eta, int phi)
 
std::vector< std::vector
< l1t::L1Candidate > > 
presort (std::vector< std::vector< l1t::L1Candidate > > energies, int rows, int cols)
 
std::vector< std::vector
< l1t::L1Candidate > > 
presort_egamma (std::vector< l1t::L1Candidate > input_egamma, int rows, int cols)
 
void print2DVector (std::vector< std::vector< l1t::L1Candidate > > myVector)
 
std::vector< l1t::L1Candidatesort_array (std::vector< l1t::L1Candidate > inputArray)
 
std::vector< std::vector
< l1t::L1Candidate > > 
sort_by_row_in_groups (std::vector< std::vector< l1t::L1Candidate > > input_matrix, int group_size)
 
std::vector< std::vector
< l1t::L1Candidate > > 
sort_matrix_rows (std::vector< std::vector< l1t::L1Candidate > > input_matrix)
 
void l1t::SortEGammas (std::vector< l1t::EGamma > *input, std::vector< l1t::EGamma > *output)
 
void l1t::SortJets (std::vector< l1t::Jet > *input, std::vector< l1t::Jet > *output)
 
void l1t::SortTaus (std::vector< l1t::Tau > *input, std::vector< l1t::Tau > *output)
 
std::vector< std::vector
< l1t::L1Candidate > > 
super_sort_matrix_rows (std::vector< std::vector< l1t::L1Candidate > > 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}
 
bool verbose = false
 

Function Documentation

std::vector<l1t::L1Candidate> array_from_row_sorted_matrix ( std::vector< std::vector< l1t::L1Candidate > >  input_matrix,
unsigned int  n_keep 
)

Definition at line 154 of file HardwareSortingMethods.cc.

std::vector<std::vector<l1t::L1Candidate> > extract_sub_jet_energy_position_matrix ( std::vector< std::vector< l1t::L1Candidate > >  input_matrix,
unsigned int  row_i,
unsigned int  row_f,
unsigned int  col_i,
unsigned int  col_f 
)

Definition at line 104 of file HardwareSortingMethods.cc.

std::vector<std::vector<l1t::L1Candidate> > presort ( std::vector< std::vector< l1t::L1Candidate > >  energies,
int  rows,
int  cols 
)

Definition at line 62 of file HardwareSortingMethods.cc.

std::vector<std::vector<l1t::L1Candidate> > presort_egamma ( std::vector< l1t::L1Candidate input_egamma,
int  rows,
int  cols 
)

Definition at line 212 of file HardwareSortingMethods.cc.

void print2DVector ( std::vector< std::vector< l1t::L1Candidate > >  myVector)

Definition at line 35 of file HardwareSortingMethods.cc.

std::vector<l1t::L1Candidate> sort_array ( std::vector< l1t::L1Candidate inputArray)

Definition at line 50 of file HardwareSortingMethods.cc.

std::vector<std::vector<l1t::L1Candidate> > sort_by_row_in_groups ( std::vector< std::vector< l1t::L1Candidate > >  input_matrix,
int  group_size 
)

Definition at line 134 of file HardwareSortingMethods.cc.

std::vector<std::vector<l1t::L1Candidate> > sort_matrix_rows ( std::vector< std::vector< l1t::L1Candidate > >  input_matrix)

Definition at line 120 of file HardwareSortingMethods.cc.

std::vector<std::vector<l1t::L1Candidate> > super_sort_matrix_rows ( std::vector< std::vector< l1t::L1Candidate > >  input_matrix,
unsigned int  group_size,
unsigned int  n_keep 
)

Definition at line 186 of file HardwareSortingMethods.cc.

Variable Documentation

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.

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.

bool verbose = false