Changeset d69dfe4 in git for external/fastjet/internal
- Timestamp:
- Nov 20, 2013, 9:52:59 PM (11 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- fc39685
- Parents:
- 88a9b72
- Location:
- external/fastjet/internal
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
external/fastjet/internal/ClusterSequence_N2.icc
r88a9b72 rd69dfe4 1 1 // -*- C++ -*- 2 #ifndef __ CLUSTERQUENCE_N2_ICC__3 #define __ CLUSTERQUENCE_N2_ICC__2 #ifndef __FASTJET_CLUSTERQUENCE_N2_ICC__ 3 #define __FASTJET_CLUSTERQUENCE_N2_ICC__ 4 4 #include "fastjet/ClusterSequence.hh" 5 5 … … 196 196 FASTJET_END_NAMESPACE 197 197 198 #endif // __ CLUSTERQUENCE_N2_ICC__199 200 198 #endif // __FASTJET_CLUSTERQUENCE_N2_ICC__ 199 200 -
external/fastjet/internal/IsBase.hh
r88a9b72 rd69dfe4 1 1 //STARTHEADER 2 // $Id: IsBase.hh 2622 2011-10-05 22:13:23Z soyez$2 // $Id: IsBase.hh 3071 2013-04-01 12:52:46Z cacciari $ 3 3 // 4 4 // Copyright (c) 2005-2011, Matteo Cacciari, Gavin P. Salam and Gregory Soyez … … 163 163 template<class B, class D> 164 164 B* cast_if_derived(D* d){ 165 return IsBaseAndDerived<B,D>::value ? (B*)(d) : NULL;165 return IsBaseAndDerived<B,D>::value ? (B*)(d) : 0; 166 166 } 167 167 -
external/fastjet/internal/SearchTree.hh
r88a9b72 rd69dfe4 1 1 //STARTHEADER 2 // $Id: SearchTree.hh 2577 2011-09-13 15:11:38Z salam $2 // $Id: SearchTree.hh 3107 2013-05-03 15:47:47Z salam $ 3 3 // 4 4 // Copyright (c) 2005-2011, Matteo Cacciari, Gavin P. Salam and Gregory Soyez … … 89 89 // tracking the depth may have some speed overhead -- so leave it 90 90 // out for the time being... 91 #ifdef TRACK_DEPTH91 #ifdef __FASTJET_SEARCHTREE_TRACK_DEPTH 92 92 /// the max depth the tree has ever reached 93 93 inline unsigned int max_depth() const {return _max_depth;}; … … 129 129 130 130 131 #ifdef TRACK_DEPTH131 #ifdef __FASTJET_SEARCHTREE_TRACK_DEPTH 132 132 unsigned int _max_depth; 133 133 #endif … … 189 189 190 190 // so that it can access out _node object; 191 friend class SearchTree<T>::const_circulator; 191 // note: "class U" needed for clang (v1.1 branches/release_27) compilation 192 template<class U> friend class SearchTree<U>::const_circulator; 192 193 friend class SearchTree<T>; 193 194 … … 340 341 //_available_nodes.reserve(); 341 342 342 #ifdef TRACK_DEPTH343 #ifdef __FASTJET_SEARCHTREE_TRACK_DEPTH 343 344 _max_depth = 0; 344 345 #endif … … 390 391 ) { 391 392 392 #ifdef TRACK_DEPTH393 #ifdef __FASTJET_SEARCHTREE_TRACK_DEPTH 393 394 // keep track of tree depth for checking things stay reasonable... 394 395 _max_depth = max(depth, _max_depth); … … 565 566 bool on_left = true; // (init not needed -- but soothes g++4) 566 567 // work through tree until we reach its end 567 #ifdef TRACK_DEPTH568 #ifdef __FASTJET_SEARCHTREE_TRACK_DEPTH 568 569 unsigned int depth = 0; 569 570 #endif 570 571 while(location != NULL) { 571 #ifdef TRACK_DEPTH572 #ifdef __FASTJET_SEARCHTREE_TRACK_DEPTH 572 573 depth++; 573 574 #endif … … 577 578 else {location = location->right;} 578 579 } 579 #ifdef TRACK_DEPTH580 #ifdef __FASTJET_SEARCHTREE_TRACK_DEPTH 580 581 _max_depth = max(depth, _max_depth); 581 582 #endif
Note:
See TracChangeset
for help on using the changeset viewer.