CMS 3D CMS Logo

List of all members | Public Member Functions
SorterBase< GoldenPatternType > Class Template Referenceabstract

#include <SorterBase.h>

Inheritance diagram for SorterBase< GoldenPatternType >:
OMTFSorter< GoldenPatternType >

Public Member Functions

virtual AlgoMuons::value_type sortRefHitResults (unsigned int procIndx, unsigned int iRefHit, const GoldenPatternVec< GoldenPatternType > &gPatterns, int charge=0)=0
 
virtual AlgoMuons sortResults (unsigned int procIndx, const GoldenPatternVec< GoldenPatternType > &gPatterns, int charge=0)
 
virtual ~SorterBase ()
 

Detailed Description

template<class GoldenPatternType>
class SorterBase< GoldenPatternType >

Definition at line 20 of file SorterBase.h.

Constructor & Destructor Documentation

◆ ~SorterBase()

template<class GoldenPatternType>
virtual SorterBase< GoldenPatternType >::~SorterBase ( )
inlinevirtual

Definition at line 22 of file SorterBase.h.

22 {}

Member Function Documentation

◆ sortRefHitResults()

template<class GoldenPatternType>
virtual AlgoMuons::value_type SorterBase< GoldenPatternType >::sortRefHitResults ( unsigned int  procIndx,
unsigned int  iRefHit,
const GoldenPatternVec< GoldenPatternType > &  gPatterns,
int  charge = 0 
)
pure virtual

Sort results from a single reference hit. Select candidate with highest number of hit layers Then select a candidate with largest likelihood value and given charge as we allow two candidates with opposite charge from single 10deg region

Implemented in OMTFSorter< GoldenPatternType >.

Referenced by SorterBase< GoldenPatternType >::sortResults().

◆ sortResults()

template<class GoldenPatternType>
virtual AlgoMuons SorterBase< GoldenPatternType >::sortResults ( unsigned int  procIndx,
const GoldenPatternVec< GoldenPatternType > &  gPatterns,
int  charge = 0 
)
inlinevirtual

Definition at line 25 of file SorterBase.h.

References ALCARECOTkAlJpsiMuMu_cff::charge, and SorterBase< GoldenPatternType >::sortRefHitResults().

27  {
28  AlgoMuons refHitCands;
29  // for(auto itRefHit: procResults) refHitCands.push_back(sortRefHitResults(itRefHit,charge));
30  for (unsigned int iRefHit = 0; iRefHit < gPatterns.at(0)->getResults()[procIndx].size(); iRefHit++) {
31  refHitCands.emplace_back(sortRefHitResults(procIndx, iRefHit, gPatterns, charge));
32  }
33  return refHitCands;
34  }
virtual AlgoMuons::value_type sortRefHitResults(unsigned int procIndx, unsigned int iRefHit, const GoldenPatternVec< GoldenPatternType > &gPatterns, int charge=0)=0
std::vector< AlgoMuonPtr > AlgoMuons
Definition: AlgoMuon.h:176