Changeset 49234af in git for external/fastjet/LimitedWarning.hh
- Timestamp:
- Dec 9, 2014, 1:27:13 PM (10 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- 37deb3b, 9e991f8
- Parents:
- f6b6ee7 (diff), e7e90df (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
external/fastjet/LimitedWarning.hh
rf6b6ee7 r49234af 2 2 #define __FASTJET_LIMITEDWARNING_HH__ 3 3 4 // STARTHEADER5 // $Id: LimitedWarning.hh 2577 2011-09-13 15:11:38Z salam $4 //FJSTARTHEADER 5 // $Id: LimitedWarning.hh 3622 2014-08-13 14:45:45Z salam $ 6 6 // 7 // Copyright (c) 2005-201 1, Matteo Cacciari, Gavin P. Salam and Gregory Soyez7 // Copyright (c) 2005-2014, Matteo Cacciari, Gavin P. Salam and Gregory Soyez 8 8 // 9 9 //---------------------------------------------------------------------- … … 16 16 // 17 17 // The algorithms that underlie FastJet have required considerable 18 // development and are described in hep-ph/0512210. If you use 18 // development. They are described in the original FastJet paper, 19 // hep-ph/0512210 and in the manual, arXiv:1111.6097. If you use 19 20 // FastJet as part of work towards a scientific publication, please 20 // include a citation to the FastJet paper. 21 // quote the version you use and include a citation to the manual and 22 // optionally also to hep-ph/0512210. 21 23 // 22 24 // FastJet is distributed in the hope that it will be useful, … … 28 30 // along with FastJet. If not, see <http://www.gnu.org/licenses/>. 29 31 //---------------------------------------------------------------------- 30 // ENDHEADER32 //FJENDHEADER 31 33 32 34 … … 50 52 51 53 /// constructor that provides a user-set max number of warnings 52 LimitedWarning(int max_warn ) : _max_warn(max_warn), _n_warn_so_far(0), _this_warning_summary(0) {}54 LimitedWarning(int max_warn_in) : _max_warn(max_warn_in), _n_warn_so_far(0), _this_warning_summary(0) {} 53 55 54 56 /// outputs a warning to standard error (or the user's default 55 57 /// warning stream if set) 56 void warn(const std::string & warning); 58 void warn(const char * warning) {warn(warning, _default_ostr);} 59 60 /// outputs a warning to standard error (or the user's default 61 /// warning stream if set) 62 void warn(const std::string & warning) {warn(warning.c_str(), _default_ostr);} 57 63 58 64 /// outputs a warning to the specified stream 59 void warn(const std::string & warning, std::ostream * ostr); 65 void warn(const char * warning, std::ostream * ostr); 66 67 /// outputs a warning to the specified stream 68 void warn(const std::string & warning, std::ostream * ostr) {warn(warning.c_str(), ostr);} 60 69 61 70 /// sets the default output stream for all warnings (by default … … 70 79 _max_warn_default = max_warn; 71 80 } 81 82 /// the maximum number of warning messages that will be printed 83 /// by this instance of the class 84 int max_warn() const {return _max_warn;} 85 86 /// the number of times so far that a warning has been registered 87 /// with this instance of the class. 88 int n_warn_so_far() const {return _n_warn_so_far;} 72 89 73 90 /// returns a summary of all the warnings that came through the
Note:
See TracChangeset
for help on using the changeset viewer.