Changeset b9ae4c3 in git for external/fastjet/LazyTiling25.cc
- Timestamp:
- Sep 2, 2016, 3:46:14 PM (8 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- fa068d3
- Parents:
- ec5e04b (diff), 23389ff (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - git-author:
- Pavel Demin <pavel-demin@…> (09/02/16 15:46:14)
- git-committer:
- GitHub <noreply@…> (09/02/16 15:46:14)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
external/fastjet/LazyTiling25.cc
rec5e04b rb9ae4c3 1 1 //FJSTARTHEADER 2 // $Id: LazyTiling25.cc 380 8 2015-02-20 11:24:53Z soyez $2 // $Id: LazyTiling25.cc 3807 2015-02-20 11:16:55Z soyez $ 3 3 // 4 4 // Copyright (c) 2005-2014, Matteo Cacciari, Gavin P. Salam and Gregory Soyez … … 369 369 double dist = _distance_to_tile(jet, *near_tile) - tile_edge_security_margin; 370 370 // cout << " max info looked at tile " << *near_tile - &_tiles[0] 371 // 372 // 371 // << ", dist = " << dist << " " << (*near_tile)->max_NN_dist 372 // << " -> diff = " << dist-(*near_tile)->max_NN_dist << endl; 373 373 if (dist > (*near_tile)->max_NN_dist) continue; 374 374 … … 665 665 int n_near_tiles = 0; 666 666 667 // GS comment: 668 // 669 // At this stage, we have perforned the clustering in 670 // ClusterSequence and we need to update the NNs. The objects we 671 // deal with are jetA and oldB (the once that have been clustered) 672 // as well as jetB (the result of the clustering) 673 // 674 // There are two types of objects we need to update: 675 // - find jetB NN 676 // - update the NN of points which had jetA or jetB as their NN 677 // 678 // Wile we find jetB's NN, browsing relevant tiles near jetB, we 679 // also search for points which had jetA or jetB as their 680 // NN. These are tagged. Then we list the relevant tiles where we 681 // can potentially have points to update (i.e. points which had 682 // jetA and oldB as NN) in the yet untagged relevant tiles near 683 // jetA and oldB. 684 // 685 // DEBUG: 686 // if (jetB != NULL) { 687 // cout << "jetA = " << jetA->_jets_index << " (tile " << jetA->tile_index << "), " 688 // << "oldB = " << oldB._jets_index << " (tile " << oldB. tile_index << "), " 689 // << "jetB = " << jetB->_jets_index << " (tile " << jetB->tile_index << ")" << endl; 690 // } else { 691 // cout << "jetA = " << jetA->_jets_index << " (tile " << jetA->tile_index << ")" << endl; 692 // } 693 667 694 // Initialise jetB's NN distance as well as updating it for other 668 695 // particles. While doing so, examine whether jetA or old jetB was … … 679 706 bool relevant_for_near_tile = dist_to_tile <= (*near_tile)->max_NN_dist; 680 707 bool relevant = relevant_for_jetB || relevant_for_near_tile; 708 709 // cout << " Relevance of tile " << *near_tile - & _tiles[0] 710 // << " wrt jetB is " << relevant << endl; 711 681 712 if (! relevant) continue; 682 713 // now label this tile as having been considered (so that we … … 702 733 // and one new jet. 703 734 int n_done_tiles = n_near_tiles; 735 //cout << "Looking at relevant tiles to update for jetA" << endl; 704 736 _add_untagged_neighbours_to_tile_union_using_max_info(jetA, 705 737 tile_union, n_near_tiles); 706 738 if (jetB != NULL) { 739 // cout << "Looking at relevant tiles to update for oldB" << endl; 707 740 _add_untagged_neighbours_to_tile_union_using_max_info(&oldB, 708 741 tile_union,n_near_tiles);
Note:
See TracChangeset
for help on using the changeset viewer.