Fork me on GitHub

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • external/fastjet/internal/Dnn2piCylinder.hh

    r35cdc46 rd7d2da3  
    1 //FJSTARTHEADER
    2 // $Id: Dnn2piCylinder.hh 3442 2014-07-24 07:20:49Z salam $
    3 //
    4 // Copyright (c) 2005-2014, Matteo Cacciari, Gavin P. Salam and Gregory Soyez
     1//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
    55//
    66//----------------------------------------------------------------------
     
    1313//
    1414//  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
    1716//  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.
    2018//
    2119//  FastJet is distributed in the hope that it will be useful,
     
    2725//  along with FastJet. If not, see <http://www.gnu.org/licenses/>.
    2826//----------------------------------------------------------------------
    29 //FJENDHEADER
     27//ENDHEADER
    3028
    3129
     
    7573  /// Returns the index of  the nearest neighbour of point labelled
    7674  /// by ii (assumes ii is valid)
    77   int NearestNeighbourIndex(const int ii) const ;
     75  int NearestNeighbourIndex(const int & ii) const ;
    7876
    7977  /// Returns the distance to the nearest neighbour of point labelled
    8078  /// by index ii (assumes ii is valid)
    81   double NearestNeighbourDistance(const int ii) const ;
     79  double NearestNeighbourDistance(const int & ii) const ;
    8280
    8381  /// Returns true iff the given index corresponds to a point that
    8482  /// exists in the DNN structure (meaning that it has been added, and
    8583  /// not removed in the meantime)
    86   bool Valid(const int index) const;
     84  bool Valid(const int & index) const;
    8785
    8886  void RemoveAndAddPoints(const std::vector<int> & indices_to_remove,
     
    218216/// initialised the class with instructions to ignore this problem the
    219217/// program will detect and ignore it, or crash.
    220 inline int Dnn2piCylinder::NearestNeighbourIndex(const int current) const {
     218inline int Dnn2piCylinder::NearestNeighbourIndex(const int & current) const {
    221219  int main_index = _mirror_info[current].main_index;
    222220  int mirror_index = _mirror_info[current].mirror_index;
     
    243241}
    244242
    245 inline double Dnn2piCylinder::NearestNeighbourDistance(const int current) const {
     243inline double Dnn2piCylinder::NearestNeighbourDistance(const int & current) const {
    246244  int main_index = _mirror_info[current].main_index;
    247245  int mirror_index = _mirror_info[current].mirror_index;
     
    258256}
    259257
    260 inline bool Dnn2piCylinder::Valid(const int index) const {
     258inline bool Dnn2piCylinder::Valid(const int & index) const {
    261259  return (_DNN->Valid(_mirror_info[index].main_index));
    262260}
Note: See TracChangeset for help on using the changeset viewer.