468 {
469
470 if(newCluster){
480
482
484
485 return true;
486 } else {
489
495
496 if ((hitCol == clusterCol + clusterColWidth) && (hitRow == clusterRow + clusterRowWidth)) {
497 clusterColWidth++;
498 clusterRowWidth++;
499
501 } else if ((hitCol == clusterCol + clusterColWidth) && (hitRow == clusterRow - 1)) {
502 clusterColWidth++;
503 clusterRow--;
504 clusterRowWidth++;
505
507 } else if ((hitCol >= clusterCol) && (hitCol < clusterCol + clusterColWidth) && (hitRow == clusterRow + clusterRowWidth)) {
508 clusterRowWidth++;
509
511 } else if ((hitCol == clusterCol + clusterColWidth) && (hitRow >= clusterRow) && (hitRow < clusterRow + clusterRowWidth)) {
512 clusterColWidth++;
513
515 } else if ((hitCol >= clusterCol) && (hitCol < clusterCol + clusterColWidth) && (hitRow == clusterRow - 1)) {
516 clusterRow--;
517 clusterRowWidth++;
518
520 } else if ((hitCol == clusterCol - 1) && (hitRow == clusterRow - 1)) {
521 clusterCol--;
522 clusterColWidth++;
523 clusterRow--;
524 clusterRowWidth++;
525
527 } else if ((hitCol == clusterCol - 1) && (hitRow >= clusterRow) && (hitRow < clusterRow + clusterRowWidth)) {
528 clusterCol--;
529 clusterColWidth++;
530
532 } else if ((hitCol == clusterCol - 1) && (hitRow == clusterRow + clusterRowWidth)) {
533 clusterCol--;
534 clusterColWidth++;
535 clusterRowWidth++;
536
538 } else if ((hitCol >= clusterCol) && (hitCol < clusterCol + clusterColWidth) && (hitRow >= clusterRow) && (hitRow < clusterRow + clusterRowWidth)) {
540 } else {
541 return false;
542 }
543 }
544}
unsigned getEtaWidth() const
bool updateClusterContents(FPGATrackSimCluster ¤tCluster, int &clusterRow, int &clusterRowWidth, int &clusterCol, int &clusterColWidth, FPGATrackSimHit &incomingHit, bool digitalClustering)