14 std::vector<AlgoMuon> refHitCleanCands;
17 std::sort( refHitCands.rbegin(), refHitCands.rend() );
19 for(std::vector<AlgoMuon>::iterator it1 = refHitCands.begin();
20 it1 != refHitCands.end(); ++it1){
22 for(std::vector<AlgoMuon>::iterator it2 = refHitCleanCands.begin();
23 it2 != refHitCleanCands.end(); ++it2){
27 if (
std::abs( phiGMT(it1->getPhi()) - phiGMT(it2->getPhi()) ) < 8 ) {
35 if(it1->getQ()>0 && !isGhost) refHitCleanCands.push_back(*it1);
38 refHitCleanCands.resize( 3,
AlgoMuon(0,999,9999,0,0,0,0,0) );
42 std::stringstream 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 return refHitCleanCands;
Abs< T >::type abs(const T &t)