Changeset 1d208a2 in git for external/fastjet/ClusterSequence.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/ClusterSequence.hh
rd091310 r1d208a2 3 3 4 4 //FJSTARTHEADER 5 // $Id: ClusterSequence.hh 3911 2015-07-02 12:09:58Z salam$5 // $Id: ClusterSequence.hh 4154 2016-07-20 16:20:48Z soyez $ 6 6 // 7 7 // Copyright (c) 2005-2014, Matteo Cacciari, Gavin P. Salam and Gregory Soyez … … 49 49 #include "fastjet/ClusterSequenceStructure.hh" 50 50 51 #include "fastjet/internal/deprecated.hh" 52 51 53 FASTJET_BEGIN_NAMESPACE // defined in fastjet/internal/base.hh 52 54 … … 80 82 } 81 83 84 /// explicit assignment operator for a ClusterSequence 85 ClusterSequence & operator=(const ClusterSequence & cs); 86 82 87 // virtual ClusterSequence destructor, in case any derived class 83 88 // thinks of needing a destructor at some point … … 362 367 /// As of FJ v3.1, this is deprecated, in line with the deprecation 363 368 /// of auto_ptr in C++11 364 inline void plugin_associate_extras(std::auto_ptr<Extras> extras_in) { 369 #ifdef FASTJET_HAVE_AUTO_PTR_INTERFACE 370 FASTJET_DEPRECATED_MSG("Please use ClusterSequence::plugin_associate_extras(Extras * extras_in)) instead") 371 inline void plugin_associate_extras(std::auto_ptr<Extras> extras_in){ 365 372 _extras.reset(extras_in.release()); 366 373 } 374 #endif 367 375 368 376 /// returns true when the plugin is allowed to run the show. … … 730 738 void _fast_NsqrtN_cluster(); 731 739 732 void _add_step_to_history(const int step_number, const int parent1, 733 const int parent2, const int jetp_index, 734 const double dij); 740 void _add_step_to_history( //const int step_number, 741 const int parent1, 742 const int parent2, const int jetp_index, 743 const double dij); 735 744 736 745 /// internal routine associated with the construction of the unique … … 1037 1046 template <class J> inline double ClusterSequence::_bj_dist( 1038 1047 const J * const jetA, const J * const jetB) const { 1048 //#define FASTJET_NEW_DELTA_PHI 1049 #ifndef FASTJET_NEW_DELTA_PHI 1050 //GPS+MC old version of Delta phi calculation 1039 1051 double dphi = std::abs(jetA->phi - jetB->phi); 1040 1052 double deta = (jetA->eta - jetB->eta); 1041 1053 if (dphi > pi) {dphi = twopi - dphi;} 1054 #else 1055 //GPS+MC testing for 2015-02-faster-deltaR2 1056 double dphi = pi-std::abs(pi-std::abs(jetA->phi - jetB->phi)); 1057 double deta = (jetA->eta - jetB->eta); 1058 #endif 1042 1059 return dphi*dphi + deta*deta; 1043 1060 }
Note:
See TracChangeset
for help on using the changeset viewer.