Changes in external/fastjet/contribs/Nsubjettiness/Njettiness.cc [973b92a:1d208a2] in git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
external/fastjet/contribs/Nsubjettiness/Njettiness.cc
r973b92a r1d208a2 5 5 // Jesse Thaler, Ken Van Tilburg, Christopher K. Vermilion, and TJ Wilkason 6 6 // 7 // $Id: Njettiness.cc 821 2015-06-15 18:50:53Z jthaler $7 // $Id: Njettiness.cc 933 2016-04-04 22:23:32Z jthaler $ 8 8 //---------------------------------------------------------------------- 9 9 // This file is part of FastJet contrib. … … 46 46 // setAxes for Manual mode 47 47 void Njettiness::setAxes(const std::vector<fastjet::PseudoJet> & myAxes) { 48 if (_axes_def ()->needsManualAxes()) {48 if (_axes_def->needsManualAxes()) { 49 49 _currentAxes = myAxes; 50 50 } else { … … 59 59 _currentAxes = inputJets; 60 60 _currentAxes.resize(n_jets,fastjet::PseudoJet(0.0,0.0,0.0,0.0)); 61 _current_tau_components = TauComponents(); 61 62 // Put in empty tau components 63 std::vector<double> dummy_jet_pieces; 64 _current_tau_components = TauComponents(UNDEFINED_SHAPE, 65 dummy_jet_pieces, 66 0.0, 67 1.0, 68 _currentAxes, 69 _currentAxes 70 ); 62 71 _seedAxes = _currentAxes; 63 72 _currentPartition = TauPartition(n_jets); // empty partition 64 73 } else { 65 assert(_axes_def ()); // this should never fail.74 assert(_axes_def); // this should never fail. 66 75 67 if (_axes_def ()->needsManualAxes()) { // if manual mode76 if (_axes_def->needsManualAxes()) { // if manual mode 68 77 // take current axes as seeds 69 78 _seedAxes = _currentAxes; 70 79 71 80 // refine axes if requested 72 _currentAxes = _axes_def->get_refined_axes(n_jets,inputJets,_seedAxes, _measure_def ());81 _currentAxes = _axes_def->get_refined_axes(n_jets,inputJets,_seedAxes, _measure_def.get()); 73 82 } else { // non-manual axes 74 83 75 84 //set starting point for minimization 76 _seedAxes = _axes_def->get_starting_axes(n_jets,inputJets,_measure_def ());85 _seedAxes = _axes_def->get_starting_axes(n_jets,inputJets,_measure_def.get()); 77 86 78 87 // refine axes as needed 79 _currentAxes = _axes_def->get_refined_axes(n_jets,inputJets,_seedAxes, _measure_def ());88 _currentAxes = _axes_def->get_refined_axes(n_jets,inputJets,_seedAxes, _measure_def.get()); 80 89 81 90 // NOTE: The above two function calls are combined in "AxesDefinition::get_axes"
Note:
See TracChangeset
for help on using the changeset viewer.