Changes in external/fastjet/ClusterSequenceArea.hh [1d208a2:35cdc46] in git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
external/fastjet/ClusterSequenceArea.hh
r1d208a2 r35cdc46 1 1 //FJSTARTHEADER 2 // $Id: ClusterSequenceArea.hh 4098 2016-03-15 16:38:22Z salam$2 // $Id: ClusterSequenceArea.hh 3484 2014-07-29 21:39:39Z soyez $ 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 FASTJET_OVERRIDE{82 virtual double area (const PseudoJet & jet) const { 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 FASTJET_OVERRIDE{87 virtual double area_error (const PseudoJet & jet) const { 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 FASTJET_OVERRIDE{91 virtual PseudoJet area_4vector(const PseudoJet & jet) const { 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 FASTJET_OVERRIDE{112 virtual double empty_area(const Selector & selector) const { 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 FASTJET_OVERRIDE{124 virtual double n_empty_jets(const Selector & selector) const { 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 FASTJET_OVERRIDE{129 virtual bool is_pure_ghost(const PseudoJet & jet) const { 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 FASTJET_OVERRIDE{134 virtual bool has_explicit_ghosts() const { 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")147 146 virtual void get_median_rho_and_sigma(const std::vector<PseudoJet> & all_jets, 148 147 const Selector & selector, … … 150 149 double & median, double & sigma, 151 150 double & mean_area, 152 bool all_are_incl = false) const FASTJET_OVERRIDE{151 bool all_are_incl = false) const { 153 152 _warn_if_range_unsuitable(selector); 154 ClusterSequenceAreaBase:: _get_median_rho_and_sigma(153 ClusterSequenceAreaBase::get_median_rho_and_sigma( 155 154 all_jets, selector, use_area_4vector, 156 155 median, sigma, mean_area, all_are_incl); … … 161 160 /// since we've overridden the 5-argument version above, we have to 162 161 /// 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")164 162 virtual void get_median_rho_and_sigma(const Selector & selector, 165 163 bool use_area_4vector, 166 double & median, double & sigma) const FASTJET_OVERRIDE{167 ClusterSequenceAreaBase:: _get_median_rho_and_sigma(selector,use_area_4vector,168 164 double & median, double & sigma) const { 165 ClusterSequenceAreaBase::get_median_rho_and_sigma(selector,use_area_4vector, 166 median,sigma); 169 167 } 170 168 … … 173 171 /// since we've overridden the multi-argument version above, we have to 174 172 /// 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")176 173 virtual void get_median_rho_and_sigma(const Selector & selector, 177 174 bool use_area_4vector, 178 175 double & median, double & sigma, 179 double & mean_area) const FASTJET_OVERRIDE{180 ClusterSequenceAreaBase:: _get_median_rho_and_sigma(selector,use_area_4vector,181 176 double & mean_area) const { 177 ClusterSequenceAreaBase::get_median_rho_and_sigma(selector,use_area_4vector, 178 median,sigma, mean_area); 182 179 } 183 180 … … 186 183 /// additionally checks compatibility between "range" and region in which 187 184 /// 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")189 185 virtual void parabolic_pt_per_unit_area(double & a, double & b, 190 186 const Selector & selector, 191 187 double exclude_above=-1.0, 192 bool use_area_4vector=false) const FASTJET_OVERRIDE { 193 return _parabolic_pt_per_unit_area(a,b,selector,exclude_above,use_area_4vector); 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); 194 192 } 195 193 … … 206 204 const JetDefinition & jet_def); 207 205 208 SharedPtr<ClusterSequenceAreaBase> _area_base;206 std::auto_ptr<ClusterSequenceAreaBase> _area_base; 209 207 AreaDefinition _area_def; 210 208 static LimitedWarning _range_warnings; 211 209 static LimitedWarning _explicit_ghosts_repeats_warnings; 212 213 // the following set of private methods are all deprecated. Their214 // role is simply to hide the corresponding methods (without the215 // first underscore) from the public interface so that they can be216 // used internally until all the deprecated methods are removed.217 // DO NOT USE ANY OF THESE METHODS: THEY ARE DEPRECATED AND WILL BE218 // 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 }227 210 228 211 }; … … 271 254 } 272 255 // now copy across the information from the area base class 273 _area_base = SharedPtr<ClusterSequenceAreaBase>(_area_base_ptr);256 _area_base = std::auto_ptr<ClusterSequenceAreaBase>(_area_base_ptr); 274 257 transfer_from_sequence(*_area_base); 275 258 }
Note:
See TracChangeset
for help on using the changeset viewer.