Changes in external/fastjet/ClusterSequence.cc [1d208a2:10e33bc] in git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
external/fastjet/ClusterSequence.cc
r1d208a2 r10e33bc 1 1 //FJSTARTHEADER 2 // $Id: ClusterSequence.cc 4154 2016-07-20 16:20:48Z soyez $2 // $Id: ClusterSequence.cc 3809 2015-02-20 13:05:13Z 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 .get());154 if (_structure_shared_ptr()){ 155 ClusterSequenceStructure* csi = dynamic_cast<ClusterSequenceStructure*>(_structure_shared_ptr()); 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); 728 729 assert(0 && "Code should never reach here"); 730 726 bool code_should_never_reach_here = false; 727 assert(code_should_never_reach_here); 731 728 return N2MHTLazy9; 732 729 … … 778 775 779 776 780 ClusterSequence & ClusterSequence::operator=(const ClusterSequence & cs) {781 // self assignment is trivial782 if (&cs != this) {783 _deletes_self_when_unused = false;784 transfer_from_sequence(cs);785 }786 return *this;787 }788 789 777 //---------------------------------------------------------------------- 790 778 // transfer the sequence contained in other_seq into our own; … … 827 815 828 816 // clean up existing structure 829 if (_structure_shared_ptr ) {817 if (_structure_shared_ptr()) { 830 818 // If there are jets associated with an old version of the CS and 831 819 // a new one, keeping track of when to delete the CS becomes more … … 835 823 // anything that is currently associated with the cluster sequence 836 824 // should be told that its cluster sequence no longer exists 837 ClusterSequenceStructure* csi = dynamic_cast<ClusterSequenceStructure*>(_structure_shared_ptr .get());825 ClusterSequenceStructure* csi = dynamic_cast<ClusterSequenceStructure*>(_structure_shared_ptr()); 838 826 assert(csi != NULL); 839 827 csi->set_associated_cs(NULL); … … 1467 1455 // initialise the history in a standard way 1468 1456 void ClusterSequence::_add_step_to_history ( 1469 //NO_LONGER_USED: const int step_number, 1470 const int parent1, 1457 const int step_number, const int parent1, 1471 1458 const int parent2, const int jetp_index, 1472 1459 const double dij) { … … 1482 1469 1483 1470 int local_step = _history.size()-1; 1484 //#ifndef __NO_ASSERTS__ 1485 //assert(local_step == step_number); 1486 //#endif 1471 assert(local_step == step_number); 1487 1472 1488 1473 // sanity check: make sure the particles have not already been recombined … … 1684 1669 int hist_j = _jets[jet_j].cluster_hist_index(); 1685 1670 1686 _add_step_to_history( min(hist_i, hist_j), max(hist_i,hist_j),1671 _add_step_to_history(newstep_k, min(hist_i, hist_j), max(hist_i,hist_j), 1687 1672 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 1692 1673 1693 1674 } … … 1699 1680 void ClusterSequence::_do_iB_recombination_step( 1700 1681 const int jet_i, const double diB) { 1682 // get history index 1683 int newstep_k = _history.size(); 1684 1701 1685 // recombine the jet with the beam 1702 _add_step_to_history( _jets[jet_i].cluster_hist_index(),BeamJet,1686 _add_step_to_history(newstep_k,_jets[jet_i].cluster_hist_index(),BeamJet, 1703 1687 Invalid, diB); 1704 1705 // // get history index1706 // int newstep_k = _history.size();1707 //1708 // _add_step_to_history(newstep_k,_jets[jet_i].cluster_hist_index(),BeamJet,1709 // Invalid, diB);1710 1688 1711 1689 }
Note:
See TracChangeset
for help on using the changeset viewer.