Changes in external/fastjet/CircularRange.hh [35cdc46:1d208a2] in git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
external/fastjet/CircularRange.hh
r35cdc46 r1d208a2 1 1 //FJSTARTHEADER 2 // $Id: CircularRange.hh 3433 2014-07-23 08:17:03Z salam$2 // $Id: CircularRange.hh 4074 2016-03-08 09:09:25Z soyez $ 3 3 // 4 4 // Copyright (c) 2005-2014, Matteo Cacciari, Gavin P. Salam and Gregory Soyez … … 35 35 #include "fastjet/RangeDefinition.hh" 36 36 #include "fastjet/Error.hh" 37 #include "fastjet/internal/deprecated.hh" 37 38 38 39 // for backwards compatibility: one should now use SelectorCircle, … … 50 51 public: 51 52 /// constructor 53 FASTJET_DEPRECATED_MSG("CircularRange is deprecated since FastJet 3.0. Use SelectorCircle instead") 52 54 CircularRange() {_set_invalid_rapphi();} 53 55 54 56 /// initialise CircularRange with a jet 57 FASTJET_DEPRECATED_MSG("CircularRange is deprecated since FastJet 3.0. Use SelectorCircle instead") 55 58 CircularRange(const fastjet::PseudoJet & jet, double distance) { 56 59 _distance = distance; … … 60 63 61 64 /// initialise CircularRange with a (rap,phi) point 65 FASTJET_DEPRECATED_MSG("CircularRange is deprecated since FastJet 3.0. Use SelectorCircle instead") 62 66 CircularRange(double rap, double phi, double distance) { 63 67 _distance = distance; … … 67 71 68 72 /// initialise CircularRange with just the radius parameter 73 FASTJET_DEPRECATED_MSG("CircularRange is deprecated since FastJet 3.0. Use SelectorCircle instead") 69 74 CircularRange(double distance) { 70 75 _set_invalid_rapphi(); … … 76 81 77 82 /// return description of range 78 virtual inline std::string description() const {83 virtual inline std::string description() const FASTJET_OVERRIDE { 79 84 std::ostringstream ostr; 80 85 ostr << "CircularRange: within distance "<< _distance << " of given jet or point." ; … … 83 88 /// returns true since this range is localizable (i.e. set_position 84 89 /// does something meaningful) 85 virtual inline bool is_localizable() const { return true; }90 virtual inline bool is_localizable() const FASTJET_OVERRIDE { return true; } 86 91 87 92 /// return bool according to whether (rap,phi) is in range 88 virtual inline bool is_in_range(double rap, double phi) const {93 virtual inline bool is_in_range(double rap, double phi) const FASTJET_OVERRIDE { 89 94 if (! _rapphi_are_valid()) { 90 95 throw Error("Circular range used without a center having being defined (use set_position())"); … … 98 103 99 104 /// return the minimal and maximal rapidity of this range 100 virtual inline void get_rap_limits(double & rapmin, double & rapmax) const {105 virtual inline void get_rap_limits(double & rapmin, double & rapmax) const FASTJET_OVERRIDE { 101 106 rapmin = _rapjet - _distance; 102 107 rapmax = _rapjet + _distance; }
Note:
See TracChangeset
for help on using the changeset viewer.