Changeset 10e33bc in git for external/fastjet
- Timestamp:
- Jun 26, 2015, 9:03:11 PM (9 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- 1bc87da
- Parents:
- 8497ac6
- Location:
- external/fastjet
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
external/fastjet/ClusterSequence.cc
r8497ac6 r10e33bc 1 1 //FJSTARTHEADER 2 // $Id: ClusterSequence.cc 3 685 2014-09-11 20:15:00Z salam$2 // $Id: ClusterSequence.cc 3809 2015-02-20 13:05:13Z soyez $ 3 3 // 4 4 // Copyright (c) 2005-2014, Matteo Cacciari, Gavin P. Salam and Gregory Soyez … … 372 372 _plugin_activated = false; 373 373 374 } else if (_strategy == N2MHTLazy9AntiKtSeparateGhosts) { 374 375 #ifndef __FJCORE__ 375 } else if (_strategy == N2MHTLazy9AntiKtSeparateGhosts) {376 376 // attempt to use an external tiling routine -- it manipulates 377 377 // the CS history via the plugin mechanism … … 1471 1471 assert(local_step == step_number); 1472 1472 1473 // sanity check: make sure the particles have not already been recombined 1474 // 1475 // Note that good practice would make this an assert (since this is 1476 // a serious internal issue). However, we decided to throw an 1477 // InternalError so that the end user can decide to catch it and 1478 // retry the clustering with a different strategy. 1479 1473 1480 assert(parent1 >= 0); 1481 if (_history[parent1].child != Invalid){ 1482 throw InternalError("trying to recomine an object that has previsously been recombined"); 1483 } 1474 1484 _history[parent1].child = local_step; 1475 if (parent2 >= 0) {_history[parent2].child = local_step;} 1485 if (parent2 >= 0) { 1486 if (_history[parent2].child != Invalid){ 1487 throw InternalError("trying to recomine an object that has previsously been recombined"); 1488 } 1489 _history[parent2].child = local_step; 1490 } 1476 1491 1477 1492 // get cross-referencing right from PseudoJets -
external/fastjet/Error.hh
r8497ac6 r10e33bc 3 3 4 4 //FJSTARTHEADER 5 // $Id: Error.hh 3 694 2014-09-18 13:21:54Z soyez $5 // $Id: Error.hh 3809 2015-02-20 13:05:13Z soyez $ 6 6 // 7 7 // Copyright (c) 2005-2014, Matteo Cacciari, Gavin P. Salam and Gregory Soyez … … 96 96 97 97 98 /// @ingroup error_handling 99 /// \class InternalError 100 /// class corresponding to critical internal errors 101 /// 102 /// This is an error class (derived from Error) meant for serious, 103 /// critical, internal errors that we still want to be catchable by an 104 /// end-user [e.g. a serious issue in clustering where the end-user 105 /// can catch it and retry with a different strategy] 106 /// 107 /// Please directly contact the FastJet authors if you see such an 108 /// error. 109 class InternalError : public Error{ 110 public: 111 /// ctor with error message: 112 /// just add a bit of info to the message and pass it to the base class 113 InternalError(const std::string & message_in) : Error(std::string("*** CRITICAL INTERNAL FASTJET ERROR *** CONTACT THE AUTHORS *** ") + message_in){ } 114 }; 115 116 98 117 FASTJET_END_NAMESPACE 99 118 -
external/fastjet/LazyTiling25.cc
r8497ac6 r10e33bc 1 1 //FJSTARTHEADER 2 // $Id: LazyTiling25.cc 3 477 2014-07-29 14:34:39Z salam$2 // $Id: LazyTiling25.cc 3808 2015-02-20 11:24:53Z soyez $ 3 3 // 4 4 // Copyright (c) 2005-2014, Matteo Cacciari, Gavin P. Salam and Gregory Soyez … … 365 365 for (Tile25 ** near_tile = tile.begin_tiles; near_tile != tile.end_tiles; near_tile++){ 366 366 if ((*near_tile)->tagged) continue; 367 double dist = _distance_to_tile(jet, *near_tile); 367 // here we are not allowed to miss a tile due to some rounding 368 // error. We therefore allow for a margin of security 369 double dist = _distance_to_tile(jet, *near_tile) - tile_edge_security_margin; 368 370 // cout << " max info looked at tile " << *near_tile - &_tiles[0] 369 371 // << ", dist = " << dist << " " << (*near_tile)->max_NN_dist -
external/fastjet/LazyTiling9.cc
r8497ac6 r10e33bc 1 1 //FJSTARTHEADER 2 // $Id: LazyTiling9.cc 3 477 2014-07-29 14:34:39Z salam$2 // $Id: LazyTiling9.cc 3808 2015-02-20 11:24:53Z soyez $ 3 3 // 4 4 // Copyright (c) 2005-2014, Matteo Cacciari, Gavin P. Salam and Gregory Soyez … … 348 348 for (Tile2 ** near_tile = tile.begin_tiles; near_tile != tile.end_tiles; near_tile++){ 349 349 if ((*near_tile)->tagged) continue; 350 double dist = _distance_to_tile(jet, *near_tile); 350 // here we are not allowed to miss a tile due to some rounding 351 // error. We therefore allow for a margin of security 352 double dist = _distance_to_tile(jet, *near_tile) - tile_edge_security_margin; 351 353 // cout << " max info looked at tile " << *near_tile - &_tiles[0] 352 354 // << ", dist = " << dist << " " << (*near_tile)->max_NN_dist -
external/fastjet/LazyTiling9Alt.cc
r8497ac6 r10e33bc 1 1 //FJSTARTHEADER 2 // $Id: LazyTiling9Alt.cc 3 477 2014-07-29 14:34:39Z salam$2 // $Id: LazyTiling9Alt.cc 3808 2015-02-20 11:24:53Z soyez $ 3 3 // 4 4 // Copyright (c) 2005-2014, Matteo Cacciari, Gavin P. Salam and Gregory Soyez … … 319 319 for (Tile::TileFnPair * near_tile = tile.begin_tiles; near_tile != tile.end_tiles; near_tile++){ 320 320 if ((near_tile->first)->tagged) continue; 321 double dist = (tile.*(near_tile->second))(jet); 321 // here we are not allowed to miss a tile due to some rounding 322 // error. We therefore allow for a margin of security 323 double dist = (tile.*(near_tile->second))(jet) - tile_edge_security_margin; 322 324 // cout << " max info looked at tile " << *near_tile - &_tiles[0] 323 325 // << ", dist = " << dist << " " << (*near_tile)->max_NN_dist -
external/fastjet/LazyTiling9SeparateGhosts.cc
r8497ac6 r10e33bc 1 1 //FJSTARTHEADER 2 // $Id: LazyTiling9SeparateGhosts.cc 3 596 2014-08-12 15:27:19Z soyez $2 // $Id: LazyTiling9SeparateGhosts.cc 3808 2015-02-20 11:24:53Z soyez $ 3 3 // 4 4 // Copyright (c) 2005-2014, Matteo Cacciari, Gavin P. Salam and Gregory Soyez … … 298 298 for (Tile3 ** near_tile = tile.begin_tiles; near_tile != tile.end_tiles; near_tile++){ 299 299 if ((*near_tile)->tagged) continue; 300 double dist = _distance_to_tile(jet, *near_tile); 300 // here we are not allowed to miss a tile due to some rounding 301 // error. We therefore allow for a margin of security 302 double dist = _distance_to_tile(jet, *near_tile) - tile_edge_security_margin; 301 303 // cout << " max info looked at tile " << *near_tile - &_tiles[0] 302 304 // << ", dist = " << dist << " " << (*near_tile)->max_NN_dist -
external/fastjet/VERSION
r8497ac6 r10e33bc 1 3.1. 11 3.1.2 -
external/fastjet/config_auto.h
r8497ac6 r10e33bc 151 151 /* Define to the full name and version of this package. */ 152 152 #ifndef FASTJET_PACKAGE_STRING 153 #define FASTJET_PACKAGE_STRING "FastJet 3.1. 1"153 #define FASTJET_PACKAGE_STRING "FastJet 3.1.2" 154 154 #endif 155 155 … … 161 161 /* Define to the version of this package. */ 162 162 #ifndef FASTJET_PACKAGE_VERSION 163 #define FASTJET_PACKAGE_VERSION "3.1. 1"163 #define FASTJET_PACKAGE_VERSION "3.1.2" 164 164 #endif 165 165 … … 171 171 /* Version number of package */ 172 172 #ifndef FASTJET_VERSION 173 #define FASTJET_VERSION "3.1. 1"173 #define FASTJET_VERSION "3.1.2" 174 174 #endif 175 175 … … 186 186 /* Version of the package under the form XYYZZ (instead of X.Y.Z) */ 187 187 #ifndef FASTJET_VERSION_NUMBER 188 #define FASTJET_VERSION_NUMBER 3010 1188 #define FASTJET_VERSION_NUMBER 30102 189 189 #endif 190 190 191 191 /* Patch version of this package */ 192 192 #ifndef FASTJET_VERSION_PATCHLEVEL 193 #define FASTJET_VERSION_PATCHLEVEL 1193 #define FASTJET_VERSION_PATCHLEVEL 2 194 194 #endif 195 195 -
external/fastjet/config_raw.h
r8497ac6 r10e33bc 92 92 93 93 /* Define to the full name and version of this package. */ 94 #define PACKAGE_STRING "FastJet 3.1. 1"94 #define PACKAGE_STRING "FastJet 3.1.2" 95 95 96 96 /* Define to the one symbol short name of this package. */ … … 98 98 99 99 /* Define to the version of this package. */ 100 #define PACKAGE_VERSION "3.1. 1"100 #define PACKAGE_VERSION "3.1.2" 101 101 102 102 /* Define to 1 if you have the ANSI C header files. */ … … 104 104 105 105 /* Version number of package */ 106 #define VERSION "3.1. 1"106 #define VERSION "3.1.2" 107 107 108 108 /* Major version of this package */ … … 113 113 114 114 /* Version of the package under the form XYYZZ (instead of X.Y.Z) */ 115 #define VERSION_NUMBER 3010 1115 #define VERSION_NUMBER 30102 116 116 117 117 /* Patch version of this package */ 118 #define VERSION_PATCHLEVEL 1118 #define VERSION_PATCHLEVEL 2 119 119 120 120 /* Pre-release version of this package */ -
external/fastjet/config_win.h
r8497ac6 r10e33bc 1 #define FASTJET_PACKAGE_STRING "FastJet 3.1. 1"2 #define FASTJET_PACKAGE_VERSION "3.1. 1"3 #define FASTJET_VERSION "3.1. 1"1 #define FASTJET_PACKAGE_STRING "FastJet 3.1.2" 2 #define FASTJET_PACKAGE_VERSION "3.1.2" 3 #define FASTJET_VERSION "3.1.2" 4 4 #define FASTJET_VERSION_MAJOR 3 5 5 #define FASTJET_VERSION_MINOR 1 6 #define FASTJET_VERSION_PATCHLEVEL 17 #define FASTJET_VERSION_NUMBER 3010 16 #define FASTJET_VERSION_PATCHLEVEL 2 7 #define FASTJET_VERSION_NUMBER 30102 8 8 9 9 /* The ATLASCone plugin is disabled by default*/ -
external/fastjet/internal/LazyTiling9Alt.hh
r8497ac6 r10e33bc 3 3 4 4 //FJSTARTHEADER 5 // $Id: LazyTiling9Alt.hh 3 477 2014-07-29 14:34:39Z salam$5 // $Id: LazyTiling9Alt.hh 3808 2015-02-20 11:24:53Z soyez $ 6 6 // 7 7 // Copyright (c) 2005-2014, Matteo Cacciari, Gavin P. Salam and Gregory Soyez … … 37 37 38 38 FASTJET_BEGIN_NAMESPACE // defined in fastjet/internal/base.hh 39 40 /// Rounding errors in the Lazy strategies may cause the following 41 /// problem: when browsing tiles in the vicinity of the particles 42 /// being clustered in order to decide which of these tiles may 43 /// contain particles that need to be updated (because theit NN is one 44 /// of the particles that are currently clustered), we discard tiles 45 /// that are deemed "too far from the cell" by the "max_NN_dist" 46 /// criterion. Because of rounding error, this condition can sometimes 47 /// miss cases where an update is needed. 48 /// 49 /// An example of this happens if a particle '1' is, say, at the lower 50 /// edge of the rapidity of a given tile, with a particle '2' in the 51 /// tile directly on its left at the same rapidity. Assume also that 52 /// max_NN_dist in 2's tile corresponds to the distance between 2 and 53 /// teh tile of 1. If 2 is 1's NN then in case 2 gets clustered, 1's 54 /// NN needs to be updated. However, rounding errors in the 55 /// calculation of the distance between 1 and 2 may result is 56 /// something slightly larger than the max_NN_dist in 2's tile. 57 /// 58 /// This situation corresponds to the bug reported by Jochen Olt on 59 /// February 12 2015 [see issue-tracker/2015-02-infinite-loop], 60 /// causing an infinite loop. 61 /// 62 /// To prevent this, the simplest solution is, when looking at tiles 63 /// to browse for updateds, to add a margin of security close to the 64 /// edges of the cell, i.e. instead of updating only tiles for which 65 /// distance<=max_NN_dist, we will update tiles for which 66 /// distance<=max_NN_dist+tile_edge_security_margin. 67 /// 68 /// Note that this does not need to be done when computing nearest 69 /// neighbours [rounding errors are tolerated there] but it is 70 /// critical when tracking points that have to be updated. 71 const double tile_edge_security_margin=1.0e-7; 39 72 40 73 /// structure analogous to BriefJet, but with the extra information -
external/fastjet/plugins/SISCone/config.h
r8497ac6 r10e33bc 54 54 #define PACKAGE_TARNAME "siscone" 55 55 56 /* Define to the home page for this package. */57 /* #undef PACKAGE_URL */58 59 56 /* Define to the version of this package. */ 60 57 #define PACKAGE_VERSION "3.0.0" -
external/fastjet/tools/Filter.hh
r8497ac6 r10e33bc 3 3 4 4 //FJSTARTHEADER 5 // $Id: Filter.hh 3 494 2014-07-30 20:38:48Z soyez $5 // $Id: Filter.hh 3845 2015-03-08 08:35:36Z soyez $ 6 6 // 7 7 // Copyright (c) 2005-2014, Matteo Cacciari, Gavin P. Salam and Gregory Soyez … … 142 142 /// Set a subtractor that is applied to all individual subjets before 143 143 /// deciding which ones to keep. It takes precedence over a non-zero rho. 144 void set_subtractor(const FunctionOfPseudoJet<PseudoJet> * subtractor ) {_subtractor = subtractor;}144 void set_subtractor(const FunctionOfPseudoJet<PseudoJet> * subtractor_in) {_subtractor = subtractor_in;} 145 145 146 146 /// runs the filtering and sets kept and rejected to be the jets of interest
Note:
See TracChangeset
for help on using the changeset viewer.