31 #include "fastjet/ClusterSequence1GhostPassiveArea.hh" 33 FASTJET_BEGIN_NAMESPACE
40 void ClusterSequence1GhostPassiveArea::_initialise_and_run_1GPA (
43 const bool & writeout_combinations) {
45 bool continue_running;
46 _initialise_AA(jet_def_in, area_spec, writeout_combinations, continue_running);
47 if (continue_running) {
49 _postprocess_AA(area_spec);
56 void ClusterSequence1GhostPassiveArea::_run_1GPA (
const GhostedAreaSpec & area_spec) {
58 vector<PseudoJet> input_jets(_jets);
61 vector<int> unique_tree;
64 valarray<double> lcl_average_area2(0.0, _average_area.size());
65 valarray<double> last_average_area(0.0, _average_area.size());
68 for (
int irepeat = 0; irepeat < area_spec.repeat(); irepeat++) {
71 vector<PseudoJet> all_ghosts;
75 for (
unsigned ig = 0; ig < all_ghosts.size(); ig++) {
76 vector<PseudoJet> some_ghosts;
77 some_ghosts.push_back(all_ghosts[ig]);
79 some_ghosts, area_spec.actual_ghost_area());
81 if (irepeat == 0 && ig == 0) {
84 _transfer_ghost_free_history(clust_seq);
86 unique_tree = unique_history_order();
90 _transfer_areas(unique_tree, clust_seq);
93 lcl_average_area2 += (_average_area - last_average_area)*
94 (_average_area - last_average_area);
95 last_average_area = _average_area;
97 _average_area2 = lcl_average_area2;
101 FASTJET_END_NAMESPACE
void add_ghosts(std::vector< PseudoJet > &) const
push a set of ghost 4-momenta onto the back of the vector of PseudoJets
Like ClusterSequence with computation of the active jet area with the addition of explicit ghosts...
Parameters to configure the computation of jet areas using ghosts.
class that is intended to hold a full definition of the jet clusterer