Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:20:16

0001 // HardwareSortingMethods.h
0002 // Authors: R. Alex Barbieri
0003 //          Ben Kreis
0004 //
0005 // This file should contain the C++ equivalents of the sorting
0006 // algorithms used in Hardware. Most C++ methods originally written by
0007 // Ben Kries.
0008 
0009 #ifndef HARDWARESORTINGMETHODS_H
0010 #define HARDWARESORTINGMETHODS_H
0011 
0012 #include "DataFormats/L1Trigger/interface/Jet.h"
0013 #include "DataFormats/L1Trigger/interface/EGamma.h"
0014 #include "DataFormats/L1Trigger/interface/Tau.h"
0015 #include <vector>
0016 
0017 namespace l1t {
0018   void SortJets(std::vector<l1t::Jet>* input, std::vector<l1t::Jet>* output);
0019 
0020   void SortEGammas(std::vector<l1t::EGamma>* input, std::vector<l1t::EGamma>* output);
0021 
0022   void SortTaus(std::vector<l1t::Tau>* input, std::vector<l1t::Tau>* output);
0023 
0024   unsigned int pack15bits(int pt, int eta, int phi);
0025   unsigned int pack16bits(int pt, int eta, int phi);
0026   unsigned int pack16bitsEgammaSpecial(int pt, int eta, int phi);
0027 }  // namespace l1t
0028 
0029 #endif