Changeset b9ae4c3 in git for external/fastjet/ClusterSequence.cc
- Timestamp:
- Sep 2, 2016, 3:46:14 PM (8 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- fa068d3
- Parents:
- ec5e04b (diff), 23389ff (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. - git-author:
- Pavel Demin <pavel-demin@…> (09/02/16 15:46:14)
- git-committer:
- GitHub <noreply@…> (09/02/16 15:46:14)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
external/fastjet/ClusterSequence.cc
rec5e04b rb9ae4c3 1 1 //FJSTARTHEADER 2 // $Id: ClusterSequence.cc 3809 2015-02-20 13:05:13Z soyez $2 // $Id: ClusterSequence.cc 4154 2016-07-20 16:20:48Z soyez $ 3 3 // 4 4 // Copyright (c) 2005-2014, Matteo Cacciari, Gavin P. Salam and Gregory Soyez … … 152 152 // set the pointer in the wrapper to this object to NULL to say that 153 153 // we're going out of scope 154 if (_structure_shared_ptr ()){155 ClusterSequenceStructure* csi = dynamic_cast<ClusterSequenceStructure*>(_structure_shared_ptr ());154 if (_structure_shared_ptr){ 155 ClusterSequenceStructure* csi = dynamic_cast<ClusterSequenceStructure*>(_structure_shared_ptr.get()); 156 156 // normally the csi is purely internal so it really should not be 157 157 // NULL i.e assert should be OK … … 724 724 } 725 725 726 bool code_should_never_reach_here = false; 727 assert(code_should_never_reach_here); 726 //bool code_should_never_reach_here = false; 727 //assert(code_should_never_reach_here); 728 729 assert(0 && "Code should never reach here"); 730 728 731 return N2MHTLazy9; 729 732 … … 775 778 776 779 780 ClusterSequence & ClusterSequence::operator=(const ClusterSequence & cs) { 781 // self assignment is trivial 782 if (&cs != this) { 783 _deletes_self_when_unused = false; 784 transfer_from_sequence(cs); 785 } 786 return *this; 787 } 788 777 789 //---------------------------------------------------------------------- 778 790 // transfer the sequence contained in other_seq into our own; … … 815 827 816 828 // clean up existing structure 817 if (_structure_shared_ptr ()) {829 if (_structure_shared_ptr) { 818 830 // If there are jets associated with an old version of the CS and 819 831 // a new one, keeping track of when to delete the CS becomes more … … 823 835 // anything that is currently associated with the cluster sequence 824 836 // should be told that its cluster sequence no longer exists 825 ClusterSequenceStructure* csi = dynamic_cast<ClusterSequenceStructure*>(_structure_shared_ptr ());837 ClusterSequenceStructure* csi = dynamic_cast<ClusterSequenceStructure*>(_structure_shared_ptr.get()); 826 838 assert(csi != NULL); 827 839 csi->set_associated_cs(NULL); … … 1455 1467 // initialise the history in a standard way 1456 1468 void ClusterSequence::_add_step_to_history ( 1457 const int step_number, const int parent1, 1469 //NO_LONGER_USED: const int step_number, 1470 const int parent1, 1458 1471 const int parent2, const int jetp_index, 1459 1472 const double dij) { … … 1469 1482 1470 1483 int local_step = _history.size()-1; 1471 assert(local_step == step_number); 1484 //#ifndef __NO_ASSERTS__ 1485 //assert(local_step == step_number); 1486 //#endif 1472 1487 1473 1488 // sanity check: make sure the particles have not already been recombined … … 1669 1684 int hist_j = _jets[jet_j].cluster_hist_index(); 1670 1685 1671 _add_step_to_history( newstep_k,min(hist_i, hist_j), max(hist_i,hist_j),1686 _add_step_to_history(min(hist_i, hist_j), max(hist_i,hist_j), 1672 1687 newjet_k, dij); 1688 1689 // _add_step_to_history(newstep_k, min(hist_i, hist_j), max(hist_i,hist_j), 1690 // newjet_k, dij); 1691 1673 1692 1674 1693 } … … 1680 1699 void ClusterSequence::_do_iB_recombination_step( 1681 1700 const int jet_i, const double diB) { 1682 // get history index1683 int newstep_k = _history.size();1684 1685 1701 // recombine the jet with the beam 1686 _add_step_to_history( newstep_k,_jets[jet_i].cluster_hist_index(),BeamJet,1702 _add_step_to_history(_jets[jet_i].cluster_hist_index(),BeamJet, 1687 1703 Invalid, diB); 1704 1705 // // get history index 1706 // int newstep_k = _history.size(); 1707 // 1708 // _add_step_to_history(newstep_k,_jets[jet_i].cluster_hist_index(),BeamJet, 1709 // Invalid, diB); 1688 1710 1689 1711 }
Note:
See TracChangeset
for help on using the changeset viewer.