30 #ifndef __SPH_SPLIT_MERGE_H__ 31 #define __SPH_SPLIT_MERGE_H__ 101 enum Esplit_merge_scale {
107 std::string split_merge_scale_name(Esplit_merge_scale sms);
118 particles(0), split_merge_scale(SM_Etilde){};
122 return split_merge_scale_name(split_merge_scale);}
159 typedef std::multiset<siscone_spherical::CSphjet,CSphsplit_merge_ptcomparison>::iterator cjet_iterator;
162 typedef std::vector<siscone_spherical::CSphjet>::iterator jet_iterator;
191 int init(std::vector<CSphmomentum> &_particles, std::vector<CSphmomentum> *protocones,
double R2,
double Emin=0.0);
198 int init_particles(std::vector<CSphmomentum> &_particles);
217 use_E_weighted_splitting = _use_E_weighted_splitting;
245 int merge_collinear_and_remove_soft();
254 int add_protocones(std::vector<CSphmomentum> *protocones,
double R2,
double Emin=0.0);
265 int perform(
double overlap_tshold,
double Emin=0.0);
274 int save_contents(FILE *flux);
347 bool split(cjet_iterator &it_j1, cjet_iterator &it_j2);
357 bool merge(cjet_iterator &it_j1, cjet_iterator &it_j2);
376 void compute_Etilde(
CSphjet &j);
380 std::auto_ptr<std::multiset<CSphjet,CSphsplit_merge_ptcomparison> > candidates;
390 bool use_E_weighted_splitting;
392 #ifdef ALLOW_MERGE_IDENTICAL_PROTOCONES 393 std::set<siscone::Creference> cand_refs;
int set_E_weighted_splitting(bool _use_E_weighted_splitting)
use an energy-dependent boundary for splitting When called with true, the criterium for splitting two...
int n
number of particles inside
std::vector< double > particles_norm2
norm^2 of the particle (3-vect part)
std::vector< CSphmomentum > particles
list of particles
Esplit_merge_scale split_merge_scale
the following parameter controls the variable we're using for the split-merge process i...
a class that allows us to carry out comparisons of pt of jets, using information from exact particle ...
double sm_var2
ordering variable used for ordering and overlap in the split–merge.
std::vector< CSphmomentum > * particles
pointer to the list of particles
double SM_var2_hardest_cut_off
stop split–merge when the SM_var of the hardest protojet is below this cut-off.
double stable_cone_soft_E2_cutoff
Energy cutoff for the particles to put in p_uncol_hard this is meant to allow removing soft particles...
std::vector< CSphjet > jets
list of jets
bool merge_identical_protocones
The following flag indicates that identical protocones are to be merged automatically each time aroun...
int * indices
maximal size array for indices works
Class used to split and merge jets.
CSphtheta_phi_range range
covered range in eta-phi
int n_pass
index of the run
double most_ambiguous_split
minimal difference in squared distance between a particle and two overlapping protojets when doing a ...
CSphsplit_merge_ptcomparison ptcomparison
member used for detailed comparisons of pt's
CSphmomentum v
jet momentum
class for holding a covering range in eta-phi
double E_tilde
sum of E_i [ 1 +|p_i x p_J|^2/(|p_i|^2 E_J^2)]
std::vector< CSphmomentum > p_uncol_hard
list of particles remaining with collinear clustering
int pass
pass at which the jet has been found It starts at 0 (first pass), -1 means infinite rapidity ...
std::vector< CSphmomentum > p_remain
list of particles remaining to deal with
std::vector< int > contents
particle contents (list of indices)
std::string SM_scale_name() const
return the name corresponding to the SM scale variable
int idx_size
number of elements in indices1
base class for dynamic coordinates management
CSphsplit_merge_ptcomparison()
default ctor
std::vector< double > * particles_norm2
pointer to the particles's norm^2
int n_left
numer of particles that does not belong to any jet