Changeset 1d208a2 in git for external/fastjet/JetDefinition.hh
- Timestamp:
- Aug 30, 2016, 12:36:00 AM (8 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- 6be4bc0
- Parents:
- d091310
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
external/fastjet/JetDefinition.hh
rd091310 r1d208a2 3 3 4 4 //FJSTARTHEADER 5 // $Id: JetDefinition.hh 3677 2014-09-09 22:45:25Z soyez $5 // $Id: JetDefinition.hh 4074 2016-03-08 09:09:25Z soyez $ 6 6 // 7 7 // Copyright (c) 2005-2014, Matteo Cacciari, Gavin P. Salam and Gregory Soyez … … 35 35 #include "fastjet/internal/numconsts.hh" 36 36 #include "fastjet/PseudoJet.hh" 37 #include "fastjet/internal/deprecated.hh" 37 38 #include<string> 38 39 #include<memory> … … 268 269 RecombinationScheme recomb_scheme_in = E_scheme, 269 270 Strategy strategy_in = Best) { 270 *this = JetDefinition(jet_algorithm_in, R_in, strategy_in, recomb_scheme_in, 1);271 *this = JetDefinition(jet_algorithm_in, R_in, recomb_scheme_in, strategy_in, 1); 271 272 } 272 273 … … 277 278 Strategy strategy_in = Best) { 278 279 double dummyR = 0.0; 279 *this = JetDefinition(jet_algorithm_in, dummyR, strategy_in, recomb_scheme_in, 0);280 *this = JetDefinition(jet_algorithm_in, dummyR, recomb_scheme_in, strategy_in, 0); 280 281 } 281 282 … … 287 288 RecombinationScheme recomb_scheme_in = E_scheme, 288 289 Strategy strategy_in = Best) { 289 *this = JetDefinition(jet_algorithm_in, R_in, strategy_in, recomb_scheme_in, 2);290 *this = JetDefinition(jet_algorithm_in, R_in, recomb_scheme_in, strategy_in, 2); 290 291 set_extra_param(xtra_param_in); 291 292 } … … 344 345 _strategy = plugin_strategy; 345 346 _Rparam = _plugin->R(); 347 _extra_param = 0.0; // a dummy value to keep static code checkers happy 346 348 _jet_algorithm = plugin_algorithm; 347 349 set_recombination_scheme(E_scheme); 348 350 } 349 351 350 351 352 /// constructor to fully specify a jet-definition (together with 352 353 /// 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). 353 362 /// 354 363 /// the ordering of arguments here is old and deprecated (except 355 364 /// 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") 356 366 JetDefinition(JetAlgorithm jet_algorithm_in, 357 367 double R_in, 358 368 Strategy strategy_in, 359 369 RecombinationScheme recomb_scheme_in = E_scheme, 360 int nparameters_in = 1); 370 int nparameters_in = 1){ 371 (*this) = JetDefinition(jet_algorithm_in,R_in,recomb_scheme_in,strategy_in,nparameters_in); 372 } 373 361 374 362 375 /// cluster the supplied particles and returns a vector of resulting … … 388 401 /// Recombiner *) may lead to memory corruption. 389 402 void set_recombiner(const Recombiner * recomb) { 390 if (_shared_recombiner ()) _shared_recombiner.reset(recomb);403 if (_shared_recombiner) _shared_recombiner.reset(recomb); 391 404 _recombiner = recomb; 392 405 _default_recombiner = DefaultRecombiner(external_scheme); … … 521 534 _recomb_scheme(recomb_scheme) {} 522 535 523 virtual std::string description() const ;536 virtual std::string description() const FASTJET_OVERRIDE; 524 537 525 538 /// recombine pa and pb and put result into pab 526 539 virtual void recombine(const PseudoJet & pa, const PseudoJet & pb, 527 PseudoJet & pab) const ;528 529 virtual void preprocess(PseudoJet & p) const ;540 PseudoJet & pab) const FASTJET_OVERRIDE; 541 542 virtual void preprocess(PseudoJet & p) const FASTJET_OVERRIDE; 530 543 531 544 /// return the index of the recombination scheme
Note:
See TracChangeset
for help on using the changeset viewer.