Fork me on GitHub

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • external/fastjet/ClusterSequenceArea.hh

    r1d208a2 r35cdc46  
    11//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 $
    33//
    44// Copyright (c) 2006-2014, Matteo Cacciari, Gavin P. Salam and Gregory Soyez
     
    8080
    8181  /// 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 {
    8383    return _area_base->area(jet);}
    8484
    8585  /// return the error (uncertainty) associated with the determination
    8686  /// 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 {
    8888    return _area_base->area_error(jet);}
    8989
    9090  /// 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 {
    9292    return _area_base->area_4vector(jet);}
    9393
     
    110110  /// jet (see the BackgroundEstimator and Subtractor tools for more
    111111  /// advanced usage)
    112   virtual double empty_area(const Selector & selector) const FASTJET_OVERRIDE {
     112  virtual double empty_area(const Selector & selector) const {
    113113    return _area_base->empty_area(selector);}
    114114
     
    122122  /// jet (see the BackgroundEstimator and Subtractor tools for more
    123123  /// advanced usage)
    124   virtual double n_empty_jets(const Selector & selector) const FASTJET_OVERRIDE {
     124  virtual double n_empty_jets(const Selector & selector) const {
    125125    return _area_base->n_empty_jets(selector);
    126126  }
    127127
    128128  /// 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 {
    130130    return _area_base->is_pure_ghost(jet);
    131131  }
    132132
    133133  /// true if this ClusterSequence has explicit ghosts
    134   virtual bool has_explicit_ghosts() const FASTJET_OVERRIDE {
     134  virtual bool has_explicit_ghosts() const {
    135135    return _area_base->has_explicit_ghosts();
    136136  }
     
    144144  /// jet (see the BackgroundEstimator and Subtractor tools for more
    145145  /// 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")
    147146  virtual void get_median_rho_and_sigma(const std::vector<PseudoJet> & all_jets,
    148147                                        const Selector & selector,
     
    150149                                        double & median, double & sigma,
    151150                                        double & mean_area,
    152                                         bool all_are_incl = false) const FASTJET_OVERRIDE {
     151                                        bool all_are_incl = false) const {
    153152    _warn_if_range_unsuitable(selector);
    154     ClusterSequenceAreaBase::_get_median_rho_and_sigma(
     153    ClusterSequenceAreaBase::get_median_rho_and_sigma(
    155154                                 all_jets, selector, use_area_4vector,
    156155                                 median, sigma, mean_area, all_are_incl);
     
    161160  /// since we've overridden the 5-argument version above, we have to
    162161  /// 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")
    164162  virtual void get_median_rho_and_sigma(const Selector & selector,
    165163                                        bool use_area_4vector,
    166                                         double & median, double & sigma) const FASTJET_OVERRIDE {
    167     ClusterSequenceAreaBase::_get_median_rho_and_sigma(selector,use_area_4vector,
    168                                                        median,sigma);
     164                                        double & median, double & sigma) const {
     165    ClusterSequenceAreaBase::get_median_rho_and_sigma(selector,use_area_4vector,
     166                                                      median,sigma);
    169167  }
    170168
     
    173171  /// since we've overridden the multi-argument version above, we have to
    174172  /// 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")
    176173  virtual void get_median_rho_and_sigma(const Selector & selector,
    177174                                        bool use_area_4vector,
    178175                                        double & median, double & sigma,
    179                                         double & mean_area) const FASTJET_OVERRIDE {
    180     ClusterSequenceAreaBase::_get_median_rho_and_sigma(selector,use_area_4vector,
    181                                                        median,sigma, mean_area);
     176                                        double & mean_area) const {
     177    ClusterSequenceAreaBase::get_median_rho_and_sigma(selector,use_area_4vector,
     178                                                      median,sigma, mean_area);
    182179  }
    183180
     
    186183  /// additionally checks compatibility between "range" and region in which
    187184  /// 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") 
    189185  virtual void parabolic_pt_per_unit_area(double & a, double & b,
    190186                                          const Selector & selector,
    191187                                          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);
    194192  }
    195193
     
    206204                                 const JetDefinition & jet_def);
    207205
    208   SharedPtr<ClusterSequenceAreaBase> _area_base;
     206  std::auto_ptr<ClusterSequenceAreaBase> _area_base;
    209207  AreaDefinition _area_def;
    210208  static LimitedWarning _range_warnings;
    211209  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   }
    227210
    228211};
     
    271254  }
    272255  // 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);
    274257  transfer_from_sequence(*_area_base);
    275258}
Note: See TracChangeset for help on using the changeset viewer.