Changeset 973b92a in git for external/fastjet/contribs/Nsubjettiness/NjettinessPlugin.cc
- Timestamp:
- Oct 9, 2015, 2:47:38 PM (9 years ago)
- Branches:
- ImprovedOutputFile, Timing, dual_readout, llp, master
- Children:
- 8713dee
- Parents:
- f118021
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
external/fastjet/contribs/Nsubjettiness/NjettinessPlugin.cc
rf118021 r973b92a 5 5 // Jesse Thaler, Ken Van Tilburg, Christopher K. Vermilion, and TJ Wilkason 6 6 // 7 // $Id: NjettinessPlugin.cc 663 2014-06-03 21:26:41Z jthaler $7 // $Id: NjettinessPlugin.cc 821 2015-06-15 18:50:53Z jthaler $ 8 8 //---------------------------------------------------------------------- 9 9 // This file is part of FastJet contrib. … … 29 29 namespace contrib{ 30 30 31 31 LimitedWarning NjettinessPlugin::_old_constructor_warning; 32 32 33 33 std::string NjettinessPlugin::description() const {return "N-jettiness jet finder";} … … 48 48 49 49 50 _njettinessFinder.getTau(_N, particles);51 52 std::vector<std::list<int> > partition = _njettinessFinder.getPartitionList(particles);53 54 std::vector< fastjet::PseudoJet> jet_indices_for_extras;50 TauComponents tau_components = _njettinessFinder.getTauComponents(_N, particles); 51 TauPartition tau_partition = _njettinessFinder.currentPartition(); 52 std::vector<std::list<int> > partition = tau_partition.jets_list(); 53 54 std::vector<int> jet_indices_for_extras; 55 55 56 56 // output clusterings for each jet … … 73 73 int finalJet = indices.back(); 74 74 cs.plugin_record_iB_recombination(finalJet, fakeDib); 75 jet_indices_for_extras.push_back(cs.jets()[finalJet] ); // Get the four vector for the final jets to compare later.75 jet_indices_for_extras.push_back(cs.jets()[finalJet].cluster_hist_index()); // Get the four vector for the final jets to compare later. 76 76 } 77 77 … … 79 79 reverse(jet_indices_for_extras.begin(),jet_indices_for_extras.end()); 80 80 81 NjettinessExtras * extras = new NjettinessExtras(_njettinessFinder.currentTauComponents(),jet_indices_for_extras,_njettinessFinder.currentAxes()); 81 // Store extra information about jets 82 NjettinessExtras * extras = new NjettinessExtras(tau_components,jet_indices_for_extras); 83 84 #if FASTJET_VERSION_NUMBER>=30100 85 cs.plugin_associate_extras(extras); 86 #else 87 // auto_ptr no longer supported, apparently 82 88 cs.plugin_associate_extras(std::auto_ptr<ClusterSequence::Extras>(extras)); 83 89 #endif 90 84 91 } 85 92
Note:
See TracChangeset
for help on using the changeset viewer.