Changeset 1d208a2 in git for external/fastjet/ClusterSequenceAreaBase.hh
- Timestamp:
- Aug 30, 2016, 12:36:00 AM (8 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- 6be4bc0
- Parents:
- d091310
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
external/fastjet/ClusterSequenceAreaBase.hh
rd091310 r1d208a2 1 1 //FJSTARTHEADER 2 // $Id: ClusterSequenceAreaBase.hh 3433 2014-07-23 08:17:03Z salam $2 // $Id: ClusterSequenceAreaBase.hh 4098 2016-03-15 16:38:22Z salam $ 3 3 // 4 4 // Copyright (c) 2005-2014, Matteo Cacciari, Gavin P. Salam and Gregory Soyez … … 35 35 #include "fastjet/LimitedWarning.hh" 36 36 #include "fastjet/Selector.hh" 37 #include "fastjet/internal/deprecated.hh" 37 38 38 39 FASTJET_BEGIN_NAMESPACE … … 144 145 /// apply jet-by-jet (see the BackgroundEstimator and Subtractor 145 146 /// tools for more generic usages) 147 FASTJET_DEPRECATED_MSG("ClusterSequenceAreaBase::median_pt_per_unit_area(...) is deprecated since FastJet 3.0. Use the BackgroundEstimator series of tools instead") 146 148 double median_pt_per_unit_area(const Selector & selector) const; 147 149 … … 151 153 /// The selector passed as an argument has to have a finite area and 152 154 /// apply jet-by-jet 155 FASTJET_DEPRECATED_MSG("ClusterSequenceAreaBase::median_pt_per_unit_area_4vector(...) is deprecated since FastJet 3.0. Use the BackgroundEstimator series of tools instead") 153 156 double median_pt_per_unit_area_4vector(const Selector & selector) const; 154 157 … … 157 160 /// - something_is_area_4vect = false -> use plain area 158 161 /// - something_is_area_4vect = true -> use 4-vector area 159 double median_pt_per_unit_something( 160 const Selector & selector, bool use_area_4vector) const; 162 FASTJET_DEPRECATED_MSG("ClusterSequenceAreaBase::median_pt_per_unit_something(...) is deprecated since FastJet 3.0. Use the BackgroundEstimator series of tools instead") 163 double median_pt_per_unit_something(const Selector & selector, 164 bool use_area_4vector) const; 161 165 162 166 /// using jets withing the selector range (and with 4-vector areas if … … 184 188 /// using a scalar area causes one to neglect terms of relative 185 189 /// order $R^2/8$ in the jet $p_t$. 190 //FASTJET_DEPRECATED_MSG("ClusterSequenceAreaBase::get_median_rho_and_sigma(...) is deprecated since FastJet 3.0. Use the BackgroundEstimator series of tools instead") 186 191 virtual void get_median_rho_and_sigma(const Selector & selector, 187 192 bool use_area_4vector, … … 208 213 /// apply jet-by-jet (see the BackgroundEstimator and Subtractor 209 214 /// tools for more generic usages) 215 //FASTJET_DEPRECATED_MSG("ClusterSequenceAreaBase::get_median_rho_and_sigma(...) is deprecated since FastJet 3.0. Use the BackgroundEstimator series of tools instead") 210 216 virtual void get_median_rho_and_sigma(const std::vector<PseudoJet> & all_jets, 211 217 const Selector & selector, … … 221 227 /// apply jet-by-jet (see the BackgroundEstimator and Subtractor 222 228 /// tools for more generic usages) 229 //FASTJET_DEPRECATED_MSG("ClusterSequenceAreaBase::get_median_rho_and_sigma(...) is deprecated since FastJet 3.0. Use the BackgroundEstimator series of tools instead") 223 230 virtual void get_median_rho_and_sigma(const Selector & selector, 224 bool use_area_4vector, 225 double & median, double & sigma) const { 226 double mean_area; 227 get_median_rho_and_sigma(selector, use_area_4vector, 228 median, sigma, mean_area); 231 bool use_area_4vector, 232 double & median, double & sigma) const{ 233 return _get_median_rho_and_sigma(selector, use_area_4vector, median, sigma); 229 234 } 230 235 … … 238 243 /// apply jet-by-jet (see the BackgroundEstimator and Subtractor 239 244 /// tools for more generic usages) 245 //FASTJET_DEPRECATED_MSG("ClusterSequenceAreaBase::parabolic_pt_per_unit_area(...) is deprecated since FastJet 3.0. Use the BackgroundEstimator series of tools instead") 240 246 virtual void parabolic_pt_per_unit_area(double & a, double & b, 241 247 const Selector & selector, … … 247 253 /// the ordering is the same as that of sorted_by_pt(cs.inclusive_jets()), 248 254 /// i.e. not necessarily ordered in pt once subtracted 255 FASTJET_DEPRECATED_MSG("ClusterSequenceAreaBase::subtracted_jets(...) is deprecated since FastJet 3.0. Use the Subtractor tool (with the BackgroundEstimator series of tools) instead") 249 256 std::vector<PseudoJet> subtracted_jets(const double rho, 250 257 const double ptmin=0.0) const; … … 258 265 /// apply jet-by-jet (see the BackgroundEstimator and Subtractor 259 266 /// tools for more generic usages) 267 FASTJET_DEPRECATED_MSG("ClusterSequenceAreaBase::subtracted_jets(...) is deprecated since FastJet 3.0. Use the Subtractor tool (with the BackgroundEstimator series of tools) instead") 260 268 std::vector<PseudoJet> subtracted_jets(const Selector & selector, 261 269 const double ptmin=0.0) const; 262 270 263 271 /// return a subtracted jet, using area_4vector, given rho 272 FASTJET_DEPRECATED_MSG("ClusterSequenceAreaBase::subtracted_jet(...) is deprecated since FastJet 3.0. Use the Subtractor tool (with the BackgroundEstimator series of tools) instead") 264 273 PseudoJet subtracted_jet(const PseudoJet & jet, 265 274 const double rho) const; … … 273 282 /// apply jet-by-jet (see the BackgroundEstimator and Subtractor 274 283 /// tools for more generic usages) 284 FASTJET_DEPRECATED_MSG("ClusterSequenceAreaBase::subtracted_jet(...) is deprecated since FastJet 3.0. Use the Subtractor tool (with the BackgroundEstimator series of tools) instead") 275 285 PseudoJet subtracted_jet(const PseudoJet & jet, 276 286 const Selector & selector) const; 277 287 278 288 /// return the subtracted pt, given rho 289 FASTJET_DEPRECATED_MSG("ClusterSequenceAreaBase::subtracted_pt(...) is deprecated since FastJet 3.0. Use the Subtractor tool (with the BackgroundEstimator series of tools) instead") 279 290 double subtracted_pt(const PseudoJet & jet, 280 291 const double rho, … … 288 299 /// apply jet-by-jet (see the BackgroundEstimator and Subtractor 289 300 /// tools for more generic usages) 301 FASTJET_DEPRECATED_MSG("ClusterSequenceAreaBase::subtracted_pt(...) is deprecated since FastJet 3.0. Use the Subtractor tool (with the BackgroundEstimator series of tools) instead") 290 302 double subtracted_pt(const PseudoJet & jet, 291 303 const Selector & selector, … … 296 308 void _check_selector_good_for_median(const Selector &selector) const; 297 309 310 // the following set of protected methods are all deprecated. Their 311 // role is simply to hide the corresponding methods (without the 312 // first underscore) from the public interface so that they can be 313 // used internally until all the deprecated methods are removed. 314 // DO NOT USE ANY OF THESE METHODS: THEY ARE DEPRECATED AND WILL BE 315 // REMOVED. 316 virtual void _get_median_rho_and_sigma(const Selector & selector, 317 bool use_area_4vector, 318 double & median, double & sigma, 319 double & mean_area) const; 320 virtual void _get_median_rho_and_sigma(const std::vector<PseudoJet> & all_jets, 321 const Selector & selector, 322 bool use_area_4vector, 323 double & median, double & sigma, 324 double & mean_area, 325 bool all_are_inclusive = false) const; 326 virtual void _get_median_rho_and_sigma(const Selector & selector, 327 bool use_area_4vector, 328 double & median, double & sigma) const { 329 double mean_area; 330 _get_median_rho_and_sigma(selector, use_area_4vector, 331 median, sigma, mean_area); 332 } 333 virtual void _parabolic_pt_per_unit_area(double & a, double & b, 334 const Selector & selector, 335 double exclude_above=-1.0, 336 bool use_area_4vector=false) const; 298 337 299 338 private: … … 305 344 /// check the jet algorithm is suitable (and if not issue a warning) 306 345 void _check_jet_alg_good_for_median() const; 307 346 347 // the following set of private methods are all deprecated. Their 348 // role is simply to hide the corresponding methods (without the 349 // first underscore) from the public interface so that they can be 350 // used internally until all the deprecated methods are removed. 351 // DO NOT USE ANY OF THESE METHODS: THEY ARE DEPRECATED AND WILL BE 352 // REMOVED. 353 double _median_pt_per_unit_area(const Selector & selector) const; 354 double _median_pt_per_unit_area_4vector(const Selector & selector) const; 355 double _median_pt_per_unit_something(const Selector & selector, 356 bool use_area_4vector) const; 357 std::vector<PseudoJet> _subtracted_jets(const double rho, 358 const double ptmin=0.0) const; 359 PseudoJet _subtracted_jet(const PseudoJet & jet, 360 const double rho) const; 361 PseudoJet _subtracted_jet(const PseudoJet & jet, 362 const Selector & selector) const; 363 double _subtracted_pt(const PseudoJet & jet, 364 const double rho, 365 bool use_area_4vector=false) const; 308 366 }; 309 367
Note:
See TracChangeset
for help on using the changeset viewer.