9 int phiGMT(
int phiAlgo) {
return phiAlgo * 437 /
pow(2, 12); }
13 std::vector<AlgoMuon> refHitCleanCands;
16 std::sort(refHitCands.rbegin(), refHitCands.rend());
18 for (std::vector<AlgoMuon>::iterator it1 = refHitCands.begin(); it1 != refHitCands.end(); ++it1) {
20 for (std::vector<AlgoMuon>::iterator it2 = refHitCleanCands.begin(); it2 != refHitCleanCands.end(); ++it2) {
24 if (
std::abs(phiGMT(it1->getPhi()) - phiGMT(it2->getPhi())) < 8) {
32 if (it1->getQ() > 0 && !isGhost)
33 refHitCleanCands.push_back(*it1);
36 refHitCleanCands.resize(3,
AlgoMuon(0, 999, 9999, 0, 0, 0, 0, 0));
39 std::stringstream myStr;
40 bool hasCandidates =
false;
41 for (
unsigned int iRefHit = 0; iRefHit < refHitCands.size(); ++iRefHit) {
42 if (refHitCands[iRefHit].getQ()) {
47 for (
unsigned int iRefHit = 0; iRefHit < refHitCands.size(); ++iRefHit) {
48 if (refHitCands[iRefHit].getQ())
49 myStr <<
"Ref hit: " << iRefHit <<
" " << refHitCands[iRefHit] << std::endl;
51 myStr <<
"Selected Candidates with charge: " <<
charge << std::endl;
52 for (
unsigned int iCand = 0; iCand < refHitCleanCands.size(); ++iCand) {
53 myStr <<
"Cand: " << iCand <<
" " << refHitCleanCands[iCand] << std::endl;
60 return refHitCleanCands;