Fork me on GitHub

Ignore:
Timestamp:
Oct 9, 2015, 2:47:38 PM (9 years ago)
Author:
Pavel Demin <pavel.demin@…>
Branches:
ImprovedOutputFile, Timing, dual_readout, llp, master
Children:
8713dee
Parents:
f118021
Message:

update FastJet library to 3.1.3 and Nsubjettiness library to 2.2.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • external/fastjet/contribs/Nsubjettiness/NjettinessPlugin.cc

    rf118021 r973b92a  
    55//  Jesse Thaler, Ken Van Tilburg, Christopher K. Vermilion, and TJ Wilkason
    66//
    7 //  $Id: NjettinessPlugin.cc 663 2014-06-03 21:26:41Z jthaler $
     7//  $Id: NjettinessPlugin.cc 821 2015-06-15 18:50:53Z jthaler $
    88//----------------------------------------------------------------------
    99// This file is part of FastJet contrib.
     
    2929namespace contrib{
    3030
    31 
     31LimitedWarning NjettinessPlugin::_old_constructor_warning;
    3232
    3333std::string NjettinessPlugin::description() const {return "N-jettiness jet finder";}
     
    4848   
    4949   
    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;
    5555
    5656   // output clusterings for each jet
     
    7373      int finalJet = indices.back();
    7474      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.
    7676   }
    7777
     
    7979   reverse(jet_indices_for_extras.begin(),jet_indices_for_extras.end());
    8080
    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
    8288   cs.plugin_associate_extras(std::auto_ptr<ClusterSequence::Extras>(extras));
    83    
     89#endif
     90 
    8491}
    8592
Note: See TracChangeset for help on using the changeset viewer.