Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:21:06

0001 #ifndef L1T_OmtfP1_OMTFSorter_H
0002 #define L1T_OmtfP1_OMTFSorter_H
0003 
0004 #include "L1Trigger/L1TMuonOverlapPhase1/interface/Omtf/SorterBase.h"
0005 #include <vector>
0006 
0007 template <class GoldenPatternType>
0008 class OMTFSorter : public SorterBase<GoldenPatternType> {
0009 public:
0010   OMTFSorter(int sorterTypeFlag) : myType(sorterTypeFlag) {}
0011 
0012   ~OMTFSorter() override {}
0013 
0014   ///Sort results from a single reference hit.
0015   ///Select candidate with highest number of hit layers
0016   ///Then select a candidate with largest likelihood value and given charge
0017   ///as we allow two candidates with opposite charge from single 10deg region
0018   AlgoMuons::value_type sortRefHitResults(unsigned int procIndx,
0019                                           unsigned int iRefHit,
0020                                           const GoldenPatternVec<GoldenPatternType>& gPatterns,
0021                                           int charge = 0) override;
0022 
0023 private:
0024   int myType;
0025 };
0026 
0027 #endif