20 std::vector<AlgoMuon> refHitCleanCands;
23 std::sort( refHitCands.rbegin(), refHitCands.rend() );
25 for(std::vector<AlgoMuon>::iterator it1 = refHitCands.begin();
26 it1 != refHitCands.end(); ++it1){
28 for(std::vector<AlgoMuon>::iterator it2 = refHitCleanCands.begin();
29 it2 != refHitCleanCands.end(); ++it2){
37 if(it1->getQ()>0 && !isGhost) refHitCleanCands.push_back(*it1);
40 refHitCleanCands.resize( 3,
AlgoMuon(0,999,9999,0,0,0,0,0) );
42 std::ostringstream myStr;
43 bool hasCandidates =
false;
44 for(
unsigned int iRefHit=0;iRefHit<refHitCands.size();++iRefHit){
45 if(refHitCands[iRefHit].getQ()){
50 for(
unsigned int iRefHit=0;iRefHit<refHitCands.size();++iRefHit){
51 if(refHitCands[iRefHit].getQ()) myStr<<
"Ref hit: "<<iRefHit<<
" "<<refHitCands[iRefHit]<<std::endl;
53 myStr<<
"Selected Candidates with charge: "<<charge<<std::endl;
54 for(
unsigned int iCand=0; iCand<refHitCleanCands.size(); ++iCand){
55 myStr<<
"Cand: "<<iCand<<
" "<<refHitCleanCands[iCand]<<std::endl;
58 if(hasCandidates)
edm::LogInfo(
"OMTF Sorter")<<myStr.str();
61 refHitCands = refHitCleanCands;
Abs< T >::type abs(const T &t)
void select(std::vector< AlgoMuon > &refHitCands, int charge=0)
static const OMTFConfiguration * instance()