Fork me on GitHub

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • external/fastjet/JetDefinition.hh

    r1d208a2 r273e668  
    33
    44//FJSTARTHEADER
    5 // $Id: JetDefinition.hh 4074 2016-03-08 09:09:25Z soyez $
     5// $Id: JetDefinition.hh 3677 2014-09-09 22:45:25Z soyez $
    66//
    77// Copyright (c) 2005-2014, Matteo Cacciari, Gavin P. Salam and Gregory Soyez
     
    3535#include "fastjet/internal/numconsts.hh"
    3636#include "fastjet/PseudoJet.hh"
    37 #include "fastjet/internal/deprecated.hh"
    3837#include<string>
    3938#include<memory>
     
    269268                RecombinationScheme recomb_scheme_in = E_scheme,
    270269                Strategy strategy_in = Best) {
    271     *this = JetDefinition(jet_algorithm_in, R_in, recomb_scheme_in, strategy_in, 1);
     270    *this = JetDefinition(jet_algorithm_in, R_in, strategy_in, recomb_scheme_in, 1);
    272271  }
    273272
     
    278277                Strategy strategy_in = Best) {
    279278    double dummyR = 0.0;
    280     *this = JetDefinition(jet_algorithm_in, dummyR, recomb_scheme_in, strategy_in, 0);
     279    *this = JetDefinition(jet_algorithm_in, dummyR, strategy_in, recomb_scheme_in, 0);
    281280  }
    282281
     
    288287                RecombinationScheme recomb_scheme_in = E_scheme,
    289288                Strategy strategy_in = Best) {
    290     *this = JetDefinition(jet_algorithm_in, R_in, recomb_scheme_in, strategy_in, 2);
     289    *this = JetDefinition(jet_algorithm_in, R_in, strategy_in, recomb_scheme_in, 2);
    291290    set_extra_param(xtra_param_in);
    292291  }
     
    345344    _strategy = plugin_strategy;
    346345    _Rparam = _plugin->R();
    347     _extra_param = 0.0; // a dummy value to keep static code checkers happy
    348346    _jet_algorithm = plugin_algorithm;
    349347    set_recombination_scheme(E_scheme);
    350348  }
    351349
     350
    352351  /// constructor to fully specify a jet-definition (together with
    353352  /// information about how algorithically to run it).
    354   JetDefinition(JetAlgorithm jet_algorithm_in,
    355                 double R_in,
    356                 RecombinationScheme recomb_scheme_in,
    357                 Strategy strategy_in,
    358                 int nparameters_in);
    359 
    360   /// constructor to fully specify a jet-definition (together with
    361   /// information about how algorithically to run it).
    362353  ///
    363354  /// the ordering of arguments here is old and deprecated (except
    364355  /// as the common constructor for internal use)
    365   FASTJET_DEPRECATED_MSG("This argument ordering is deprecated. Use JetDefinition(alg, R, strategy, scheme[, n_parameters]) instead")
    366356  JetDefinition(JetAlgorithm jet_algorithm_in,
    367357                double R_in,
    368358                Strategy strategy_in,
    369359                RecombinationScheme recomb_scheme_in = E_scheme,
    370                 int nparameters_in = 1){
    371     (*this) = JetDefinition(jet_algorithm_in,R_in,recomb_scheme_in,strategy_in,nparameters_in);
    372   }
    373 
     360                int nparameters_in = 1);
    374361
    375362  /// cluster the supplied particles and returns a vector of resulting
     
    401388  /// Recombiner *) may lead to memory corruption.
    402389  void set_recombiner(const Recombiner * recomb) {
    403     if (_shared_recombiner) _shared_recombiner.reset(recomb);
     390    if (_shared_recombiner()) _shared_recombiner.reset(recomb);
    404391    _recombiner = recomb;
    405392    _default_recombiner = DefaultRecombiner(external_scheme);
     
    534521      _recomb_scheme(recomb_scheme) {}
    535522   
    536     virtual std::string description() const FASTJET_OVERRIDE;
     523    virtual std::string description() const;
    537524   
    538525    /// recombine pa and pb and put result into pab
    539526    virtual void recombine(const PseudoJet & pa, const PseudoJet & pb,
    540                            PseudoJet & pab) const FASTJET_OVERRIDE;
    541 
    542     virtual void preprocess(PseudoJet & p) const FASTJET_OVERRIDE;
     527                           PseudoJet & pab) const;
     528
     529    virtual void preprocess(PseudoJet & p) const;
    543530
    544531    /// return the index of the recombination scheme
Note: See TracChangeset for help on using the changeset viewer.