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