Changes in external/fastjet/internal/Dnn2piCylinder.hh [35cdc46:d7d2da3] in git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
external/fastjet/internal/Dnn2piCylinder.hh
r35cdc46 rd7d2da3 1 // FJSTARTHEADER2 // $Id: Dnn2piCylinder.hh 3442 2014-07-24 07:20:49Z salam $3 // 4 // Copyright (c) 2005-201 4, Matteo Cacciari, Gavin P. Salam and Gregory Soyez1 //STARTHEADER 2 // $Id: Dnn2piCylinder.hh 2577 2011-09-13 15:11:38Z salam $ 3 // 4 // Copyright (c) 2005-2011, Matteo Cacciari, Gavin P. Salam and Gregory Soyez 5 5 // 6 6 //---------------------------------------------------------------------- … … 13 13 // 14 14 // The algorithms that underlie FastJet have required considerable 15 // development. They are described in the original FastJet paper, 16 // hep-ph/0512210 and in the manual, arXiv:1111.6097. If you use 15 // development and are described in hep-ph/0512210. If you use 17 16 // FastJet as part of work towards a scientific publication, please 18 // quote the version you use and include a citation to the manual and 19 // optionally also to hep-ph/0512210. 17 // include a citation to the FastJet paper. 20 18 // 21 19 // FastJet is distributed in the hope that it will be useful, … … 27 25 // along with FastJet. If not, see <http://www.gnu.org/licenses/>. 28 26 //---------------------------------------------------------------------- 29 // FJENDHEADER27 //ENDHEADER 30 28 31 29 … … 75 73 /// Returns the index of the nearest neighbour of point labelled 76 74 /// by ii (assumes ii is valid) 77 int NearestNeighbourIndex(const int ii) const ;75 int NearestNeighbourIndex(const int & ii) const ; 78 76 79 77 /// Returns the distance to the nearest neighbour of point labelled 80 78 /// by index ii (assumes ii is valid) 81 double NearestNeighbourDistance(const int ii) const ;79 double NearestNeighbourDistance(const int & ii) const ; 82 80 83 81 /// Returns true iff the given index corresponds to a point that 84 82 /// exists in the DNN structure (meaning that it has been added, and 85 83 /// not removed in the meantime) 86 bool Valid(const int index) const;84 bool Valid(const int & index) const; 87 85 88 86 void RemoveAndAddPoints(const std::vector<int> & indices_to_remove, … … 218 216 /// initialised the class with instructions to ignore this problem the 219 217 /// program will detect and ignore it, or crash. 220 inline int Dnn2piCylinder::NearestNeighbourIndex(const int current) const {218 inline int Dnn2piCylinder::NearestNeighbourIndex(const int & current) const { 221 219 int main_index = _mirror_info[current].main_index; 222 220 int mirror_index = _mirror_info[current].mirror_index; … … 243 241 } 244 242 245 inline double Dnn2piCylinder::NearestNeighbourDistance(const int current) const {243 inline double Dnn2piCylinder::NearestNeighbourDistance(const int & current) const { 246 244 int main_index = _mirror_info[current].main_index; 247 245 int mirror_index = _mirror_info[current].mirror_index; … … 258 256 } 259 257 260 inline bool Dnn2piCylinder::Valid(const int index) const {258 inline bool Dnn2piCylinder::Valid(const int & index) const { 261 259 return (_DNN->Valid(_mirror_info[index].main_index)); 262 260 }
Note:
See TracChangeset
for help on using the changeset viewer.