Changeset 273e668 in git for external/fastjet/tools/Subtractor.hh
- Timestamp:
- Oct 15, 2014, 10:55:55 AM (10 years ago)
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
external/fastjet/tools/Subtractor.hh
rf14bd6a r273e668 1 1 //FJSTARTHEADER 2 // $Id: Subtractor.hh 3 584 2014-08-12 12:40:10Z soyez $2 // $Id: Subtractor.hh 3670 2014-09-08 14:17:59Z soyez $ 3 3 // 4 4 // Copyright (c) 2005-2014, Matteo Cacciari, Gavin P. Salam and Gregory Soyez … … 32 32 #define __FASTJET_TOOLS_SUBTRACTOR_HH__ 33 33 34 #include "fastjet/internal/base.hh" // namespace macros (include explicitly to help Doxygen) 34 35 #include "fastjet/tools/Transformer.hh" // to derive Subtractor from Transformer 35 36 #include "fastjet/tools/BackgroundEstimatorBase.hh" // used as a ctor argument … … 69 70 Subtractor(double rho); 70 71 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 71 76 /// default constructor 72 77 Subtractor() : _bge(0), _rho(_invalid_rho) { set_defaults(); } … … 96 101 /// in a future release of FastJet 97 102 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"); 100 105 } 101 106 _use_rho_m=use_rho_m_in; … … 176 181 /// if has to be mutable in case its underlying selector takes a reference jet 177 182 mutable BackgroundEstimatorBase * _bge; 178 /// the fixed value of rho to use if the user has selected that option179 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; 180 185 181 186 // configuration parameters/flags
Note:
See TracChangeset
for help on using the changeset viewer.