Changes in external/fastjet/ClusterSequenceArea.hh [35cdc46:1d208a2] in git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
external/fastjet/ClusterSequenceArea.hh
r35cdc46 r1d208a2 1 1 //FJSTARTHEADER 2 // $Id: ClusterSequenceArea.hh 3484 2014-07-29 21:39:39Z soyez$2 // $Id: ClusterSequenceArea.hh 4098 2016-03-15 16:38:22Z salam $ 3 3 // 4 4 // Copyright (c) 2006-2014, Matteo Cacciari, Gavin P. Salam and Gregory Soyez … … 80 80 81 81 /// return the area associated with the given jet 82 virtual double area (const PseudoJet & jet) const {82 virtual double area (const PseudoJet & jet) const FASTJET_OVERRIDE { 83 83 return _area_base->area(jet);} 84 84 85 85 /// return the error (uncertainty) associated with the determination 86 86 /// of the area of this jet 87 virtual double area_error (const PseudoJet & jet) const {87 virtual double area_error (const PseudoJet & jet) const FASTJET_OVERRIDE { 88 88 return _area_base->area_error(jet);} 89 89 90 90 /// return the 4-vector area 91 virtual PseudoJet area_4vector(const PseudoJet & jet) const {91 virtual PseudoJet area_4vector(const PseudoJet & jet) const FASTJET_OVERRIDE { 92 92 return _area_base->area_4vector(jet);} 93 93 … … 110 110 /// jet (see the BackgroundEstimator and Subtractor tools for more 111 111 /// advanced usage) 112 virtual double empty_area(const Selector & selector) const {112 virtual double empty_area(const Selector & selector) const FASTJET_OVERRIDE { 113 113 return _area_base->empty_area(selector);} 114 114 … … 122 122 /// jet (see the BackgroundEstimator and Subtractor tools for more 123 123 /// advanced usage) 124 virtual double n_empty_jets(const Selector & selector) const {124 virtual double n_empty_jets(const Selector & selector) const FASTJET_OVERRIDE { 125 125 return _area_base->n_empty_jets(selector); 126 126 } 127 127 128 128 /// true if a jet is made exclusively of ghosts 129 virtual bool is_pure_ghost(const PseudoJet & jet) const {129 virtual bool is_pure_ghost(const PseudoJet & jet) const FASTJET_OVERRIDE { 130 130 return _area_base->is_pure_ghost(jet); 131 131 } 132 132 133 133 /// true if this ClusterSequence has explicit ghosts 134 virtual bool has_explicit_ghosts() const {134 virtual bool has_explicit_ghosts() const FASTJET_OVERRIDE { 135 135 return _area_base->has_explicit_ghosts(); 136 136 } … … 144 144 /// jet (see the BackgroundEstimator and Subtractor tools for more 145 145 /// advanced usage) 146 //FASTJET_DEPRECATED_MSG("ClusterSequenceArea::get_median_rho_and_sigma(...) is deprecated since FastJet 3.0. Use the BackgroundEstimator series of tools instead") 146 147 virtual void get_median_rho_and_sigma(const std::vector<PseudoJet> & all_jets, 147 148 const Selector & selector, … … 149 150 double & median, double & sigma, 150 151 double & mean_area, 151 bool all_are_incl = false) const {152 bool all_are_incl = false) const FASTJET_OVERRIDE { 152 153 _warn_if_range_unsuitable(selector); 153 ClusterSequenceAreaBase:: get_median_rho_and_sigma(154 ClusterSequenceAreaBase::_get_median_rho_and_sigma( 154 155 all_jets, selector, use_area_4vector, 155 156 median, sigma, mean_area, all_are_incl); … … 160 161 /// since we've overridden the 5-argument version above, we have to 161 162 /// override the 4-argument version too. 163 //FASTJET_DEPRECATED_MSG("ClusterSequenceArea::get_median_rho_and_sigma(...) is deprecated since FastJet 3.0. Use the BackgroundEstimator series of tools instead") 162 164 virtual void get_median_rho_and_sigma(const Selector & selector, 163 165 bool use_area_4vector, 164 double & median, double & sigma) const {165 ClusterSequenceAreaBase:: get_median_rho_and_sigma(selector,use_area_4vector,166 median,sigma);166 double & median, double & sigma) const FASTJET_OVERRIDE { 167 ClusterSequenceAreaBase::_get_median_rho_and_sigma(selector,use_area_4vector, 168 median,sigma); 167 169 } 168 170 … … 171 173 /// since we've overridden the multi-argument version above, we have to 172 174 /// override the 5-argument version too. 175 //FASTJET_DEPRECATED_MSG("ClusterSequenceArea::get_median_rho_and_sigma(...) is deprecated since FastJet 3.0. Use the BackgroundEstimator series of tools instead") 173 176 virtual void get_median_rho_and_sigma(const Selector & selector, 174 177 bool use_area_4vector, 175 178 double & median, double & sigma, 176 double & mean_area) const {177 ClusterSequenceAreaBase:: get_median_rho_and_sigma(selector,use_area_4vector,178 median,sigma, mean_area);179 double & mean_area) const FASTJET_OVERRIDE { 180 ClusterSequenceAreaBase::_get_median_rho_and_sigma(selector,use_area_4vector, 181 median,sigma, mean_area); 179 182 } 180 183 … … 183 186 /// additionally checks compatibility between "range" and region in which 184 187 /// ghosts are thrown. 188 //FASTJET_DEPRECATED_MSG("ClusterSequenceArea::parabolic_pt_per_unit_area(...) is deprecated since FastJet 3.0. Use the BackgroundEstimator series of tools instead") 185 189 virtual void parabolic_pt_per_unit_area(double & a, double & b, 186 190 const Selector & selector, 187 191 double exclude_above=-1.0, 188 bool use_area_4vector=false) const { 189 _warn_if_range_unsuitable(selector); 190 ClusterSequenceAreaBase::parabolic_pt_per_unit_area( 191 a,b,selector, exclude_above, use_area_4vector); 192 bool use_area_4vector=false) const FASTJET_OVERRIDE { 193 return _parabolic_pt_per_unit_area(a,b,selector,exclude_above,use_area_4vector); 192 194 } 193 195 … … 204 206 const JetDefinition & jet_def); 205 207 206 std::auto_ptr<ClusterSequenceAreaBase> _area_base;208 SharedPtr<ClusterSequenceAreaBase> _area_base; 207 209 AreaDefinition _area_def; 208 210 static LimitedWarning _range_warnings; 209 211 static LimitedWarning _explicit_ghosts_repeats_warnings; 212 213 // the following set of private methods are all deprecated. Their 214 // role is simply to hide the corresponding methods (without the 215 // first underscore) from the public interface so that they can be 216 // used internally until all the deprecated methods are removed. 217 // DO NOT USE ANY OF THESE METHODS: THEY ARE DEPRECATED AND WILL BE 218 // REMOVED. 219 virtual void _parabolic_pt_per_unit_area(double & a, double & b, 220 const Selector & selector, 221 double exclude_above=-1.0, 222 bool use_area_4vector=false) const FASTJET_OVERRIDE { 223 _warn_if_range_unsuitable(selector); 224 ClusterSequenceAreaBase::_parabolic_pt_per_unit_area( 225 a,b,selector, exclude_above, use_area_4vector); 226 } 210 227 211 228 }; … … 254 271 } 255 272 // now copy across the information from the area base class 256 _area_base = std::auto_ptr<ClusterSequenceAreaBase>(_area_base_ptr);273 _area_base = SharedPtr<ClusterSequenceAreaBase>(_area_base_ptr); 257 274 transfer_from_sequence(*_area_base); 258 275 }
Note:
See TracChangeset
for help on using the changeset viewer.