Fork me on GitHub

Ignore:
Timestamp:
Oct 15, 2014, 10:55:55 AM (10 years ago)
Author:
Pavel Demin <pavel.demin@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
35b9204, b25d4cf
Parents:
f14bd6a
git-author:
Pavel Demin <pavel.demin@…> (10/10/14 08:56:40)
git-committer:
Pavel Demin <pavel.demin@…> (10/15/14 10:55:55)
Message:

upgrade FastJet to version 3.1.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • external/fastjet/tools/Subtractor.hh

    rf14bd6a r273e668  
    11//FJSTARTHEADER
    2 // $Id: Subtractor.hh 3584 2014-08-12 12:40:10Z soyez $
     2// $Id: Subtractor.hh 3670 2014-09-08 14:17:59Z soyez $
    33//
    44// Copyright (c) 2005-2014, Matteo Cacciari, Gavin P. Salam and Gregory Soyez
     
    3232#define __FASTJET_TOOLS_SUBTRACTOR_HH__
    3333
     34#include "fastjet/internal/base.hh"     // namespace macros (include explicitly to help Doxygen)
    3435#include "fastjet/tools/Transformer.hh" // to derive Subtractor from Transformer
    3536#include "fastjet/tools/BackgroundEstimatorBase.hh" // used as a ctor argument
     
    6970  Subtractor(double rho);
    7071
     72  /// define a subtractor that uses a fixed value of rho and rho_m;
     73  /// both must be >= 0;
     74  Subtractor(double rho, double rho_m);
     75
    7176  /// default constructor
    7277  Subtractor() : _bge(0), _rho(_invalid_rho) { set_defaults(); }
     
    96101  /// in a future release of FastJet
    97102  void set_use_rho_m(bool use_rho_m_in = true){
    98     if (_bge == 0) {
    99       throw Error("Subtractor: rho_m support works only for Subtractors constructed with background estimator");
     103    if (_bge == 0  && _rho_m < 0) {
     104      throw Error("Subtractor: rho_m support works only for Subtractors constructed with a background estimator or an explicit rho_m value");
    100105    }
    101106    _use_rho_m=use_rho_m_in;
     
    176181  /// if has to be mutable in case its underlying selector takes a reference jet
    177182  mutable BackgroundEstimatorBase * _bge;
    178   /// the fixed value of rho to use if the user has selected that option
    179   double _rho;
     183  /// the fixed value of rho and/or rho_m to use if the user has selected that option
     184  double _rho, _rho_m;
    180185
    181186  // configuration parameters/flags
Note: See TracChangeset for help on using the changeset viewer.