FCCAnalyses
Loading...
Searching...
No Matches
JetClustering.h
Go to the documentation of this file.
1#ifndef FastJet_JetClustering_h
2#define FastJet_JetClustering_h
3
4#include <cmath>
5#include <vector>
6
7#include "fastjet/AreaDefinition.hh"
8#include "fastjet/ClusterSequence.hh"
9#include "fastjet/ClusterSequenceArea.hh"
10#include "fastjet/JetDefinition.hh"
11#include "fastjet/EECambridgePlugin.hh"
12#include "fastjet/JadePlugin.hh"
13
15
20namespace JetClustering {
23 std::vector<fastjet::PseudoJet> jets;
24 std::vector<std::vector<int>> constituents;
25 std::vector<float>
26 exclusive_dmerge; // vector of Nmax_dmerge values associated with merging from n + 1 to n jets, for n =1, 2, ... 10
27 std::vector<float> exclusive_dmerge_max;
28 };
29
35
37
39 public:
40 clustering_kt(float arg_radius = 0.5,
41 int arg_exclusive = 0,
42 float arg_cut = 5,
43 int arg_sorted = 0,
44 int arg_recombination = 0);
45 FCCAnalysesJet operator()(const std::vector<fastjet::PseudoJet>& jets);
46
47 private:
48 float _radius;
50 float _cut;
51 int _sorted;
53 fastjet::JetAlgorithm _jetAlgorithm{fastjet::JetAlgorithm::undefined_jet_algorithm};
54 fastjet::RecombinationScheme _recombScheme;
55 fastjet::ClusterSequence _cs;
56 fastjet::JetDefinition _def;
57 };
58
61 public:
62 clustering_antikt(float arg_radius = 0.5,
63 int arg_exclusive = 0,
64 float arg_cut = 5.,
65 int arg_sorted = 0,
66 int arg_recombination = 0);
67 FCCAnalysesJet operator()(const std::vector<fastjet::PseudoJet>& jets);
68
69 private:
70 float _radius;
72 float _cut;
73 int _sorted;
75 fastjet::JetAlgorithm _jetAlgorithm{fastjet::JetAlgorithm::undefined_jet_algorithm};
76 fastjet::RecombinationScheme _recombScheme;
77 fastjet::ClusterSequence _cs;
78 fastjet::JetDefinition _def;
79 };
80
83 public:
84 clustering_cambridge(float arg_radius = 0.5,
85 int arg_exclusive = 0,
86 float arg_cut = 5.,
87 int arg_sorted = 0,
88 int arg_recombination = 0);
89 FCCAnalysesJet operator()(const std::vector<fastjet::PseudoJet>& jets);
90
91 private:
92 float _radius;
94 float _cut;
95 int _sorted;
97 fastjet::JetAlgorithm _jetAlgorithm{fastjet::JetAlgorithm::undefined_jet_algorithm};
98 fastjet::RecombinationScheme _recombScheme;
99 fastjet::ClusterSequence _cs;
100 fastjet::JetDefinition _def;
101 };
102
105 public:
106 clustering_ee_kt(int arg_exclusive = 0, float arg_cut = 5., int arg_sorted = 0, int arg_recombination = 0);
107 FCCAnalysesJet operator()(const std::vector<fastjet::PseudoJet>& jets);
108
110 float _cut;
113 fastjet::JetAlgorithm _jetAlgorithm{fastjet::JetAlgorithm::undefined_jet_algorithm};
114 fastjet::RecombinationScheme _recombScheme;
115 fastjet::ClusterSequence _cs;
116 fastjet::JetDefinition _def;
117 };
118
121 public:
122 clustering_ee_genkt(float arg_radius = 0.5,
123 int arg_exclusive = 0,
124 float arg_cut = 5.,
125 int arg_sorted = 0,
126 int arg_recombination = 0,
127 float arg_exponent = 0.);
128 FCCAnalysesJet operator()(const std::vector<fastjet::PseudoJet>& jets);
129
130 private:
131 float _radius;
133 float _cut;
136 float _exponent;
137 fastjet::JetAlgorithm _jetAlgorithm{fastjet::JetAlgorithm::undefined_jet_algorithm};
138 fastjet::RecombinationScheme _recombScheme;
139 fastjet::ClusterSequence _cs;
140 fastjet::JetDefinition _def;
141 };
142
145 public:
146 clustering_genkt(float arg_radius = 0.5,
147 int arg_exclusive = 0,
148 float arg_cut = 5.,
149 int arg_sorted = 0,
150 int arg_recombination = 0,
151 float arg_exponent = 0.);
152 FCCAnalysesJet operator()(const std::vector<fastjet::PseudoJet>& jets);
153
154 private:
155 float _radius;
157 float _cut;
160 float _exponent;
161 fastjet::JetAlgorithm _jetAlgorithm{fastjet::JetAlgorithm::undefined_jet_algorithm};
162 fastjet::RecombinationScheme _recombScheme;
163 fastjet::ClusterSequence _cs;
164 fastjet::JetDefinition _def;
165 };
166
169 public:
170 clustering_valencia(float arg_radius = 0.5,
171 int arg_exclusive = 0,
172 float arg_cut = 5.,
173 int arg_sorted = 0,
174 int arg_recombination = 0,
175 float arg_beta = 1.,
176 float arg_gamma = 1.);
177 FCCAnalysesJet operator()(const std::vector<fastjet::PseudoJet>& jets);
178
179 private:
180 float _radius;
182 float _cut;
185 float _beta;
186 float _gamma;
187 //fastjet::JetAlgorithm _jetAlgorithm {fastjet::JetAlgorithm::undefined_jet_algorithm};///<internal jet algorithm
188 fastjet::contrib::ValenciaPlugin* _jetAlgorithm;
189 fastjet::RecombinationScheme _recombScheme;
190 fastjet::ClusterSequence _cs;
191 fastjet::JetDefinition _def;
192 };
193
196 public:
197 clustering_jade(float arg_radius = 0.5,
198 int arg_exclusive = 0,
199 float arg_cut = 5.,
200 int arg_sorted = 0,
201 int arg_recombination = 0);
202 FCCAnalysesJet operator()(const std::vector<fastjet::PseudoJet>& jets);
203
204 private:
205 float _radius;
207 float _cut;
210 //fastjet::JetAlgorithm _jetAlgorithm {fastjet::JetAlgorithm::undefined_jet_algorithm};///<internal jet algorithm
211 fastjet::JadePlugin* _jetAlgorithm;
212 fastjet::RecombinationScheme _recombScheme;
213 fastjet::ClusterSequence _cs;
214 fastjet::JetDefinition _def;
215 };
217
218} // namespace JetClustering
219
220#endif
Jet clustering interface.
Definition JetClustering.h:20
Structure to keep useful informations for the jets.
Definition JetClustering.h:22
std::vector< float > exclusive_dmerge
Definition JetClustering.h:26
std::vector< float > exclusive_dmerge_max
Definition JetClustering.h:27
std::vector< std::vector< int > > constituents
Definition JetClustering.h:24
std::vector< fastjet::PseudoJet > jets
Definition JetClustering.h:23
Jet Clustering interface for antikt.
Definition JetClustering.h:60
fastjet::JetDefinition _def
internal jetdefinition sequence
Definition JetClustering.h:78
fastjet::JetAlgorithm _jetAlgorithm
internal jet algorithm
Definition JetClustering.h:75
int _sorted
pT ordering=0, E ordering=1
Definition JetClustering.h:73
fastjet::RecombinationScheme _recombScheme
internal recombination scheme
Definition JetClustering.h:76
clustering_antikt(float arg_radius=0.5, int arg_exclusive=0, float arg_cut=5., int arg_sorted=0, int arg_recombination=0)
Definition JetClustering.cc:52
fastjet::ClusterSequence _cs
internal clustering sequence
Definition JetClustering.h:77
FCCAnalysesJet operator()(const std::vector< fastjet::PseudoJet > &jets)
Definition JetClustering.cc:74
float _radius
jet cone radius
Definition JetClustering.h:70
float _cut
pT cut for m_exclusive=0, dcut for m_exclusive=1, N jets for m_exlusive=2, N jets for m_exclusive=3,...
Definition JetClustering.h:72
int _exclusive
flag for exclusive jet clustering. Possible choices are 0=inclusive clustering, 1=exclusive clusterin...
Definition JetClustering.h:71
int _recombination
E_scheme=0, pt_scheme=1, pt2_scheme=2, Et_scheme=3, Et2_scheme=4, BIpt_scheme=5, BIpt2_scheme=6.
Definition JetClustering.h:74
Jet Clustering interface for Cambridge.
Definition JetClustering.h:82
float _cut
pT cut for m_exclusive=0, dcut for m_exclusive=1, N jets for m_exlusive=2, N jets for m_exclusive=3,...
Definition JetClustering.h:94
FCCAnalysesJet operator()(const std::vector< fastjet::PseudoJet > &jets)
Definition JetClustering.cc:114
int _sorted
pT ordering=0, E ordering=1
Definition JetClustering.h:95
fastjet::ClusterSequence _cs
internal clustering sequence
Definition JetClustering.h:99
clustering_cambridge(float arg_radius=0.5, int arg_exclusive=0, float arg_cut=5., int arg_sorted=0, int arg_recombination=0)
Definition JetClustering.cc:93
fastjet::JetAlgorithm _jetAlgorithm
internal jet algorithm
Definition JetClustering.h:97
float _radius
jet cone radius
Definition JetClustering.h:92
fastjet::RecombinationScheme _recombScheme
internal recombination scheme
Definition JetClustering.h:98
fastjet::JetDefinition _def
internal jetdefinition sequence
Definition JetClustering.h:100
int _recombination
E_scheme=0, pt_scheme=1, pt2_scheme=2, Et_scheme=3, Et2_scheme=4, BIpt_scheme=5, BIpt2_scheme=6,...
Definition JetClustering.h:96
int _exclusive
flag for exclusive jet clustering. Possible choices are 0=inclusive clustering, 1=exclusive clusterin...
Definition JetClustering.h:93
Jet Clustering interface for ee_genkt.
Definition JetClustering.h:120
fastjet::RecombinationScheme _recombScheme
internal recombination scheme
Definition JetClustering.h:138
float _cut
pT cut for m_exclusive=0, dcut for m_exclusive=1, N jets for m_exlusive=2, N jets for m_exclusive=3,...
Definition JetClustering.h:133
fastjet::JetDefinition _def
internal jetdefinition sequence
Definition JetClustering.h:140
float _radius
jet cone radius
Definition JetClustering.h:131
clustering_ee_genkt(float arg_radius=0.5, int arg_exclusive=0, float arg_cut=5., int arg_sorted=0, int arg_recombination=0, float arg_exponent=0.)
Definition JetClustering.cc:167
int _recombination
E_scheme=0, pt_scheme=1, pt2_scheme=2, Et_scheme=3, Et2_scheme=4, BIpt_scheme=5, BIpt2_scheme=6,...
Definition JetClustering.h:135
float _exponent
Definition JetClustering.h:136
int _sorted
pT ordering=0, E ordering=1
Definition JetClustering.h:134
int _exclusive
flag for exclusive jet clustering. Possible choices are 0=inclusive clustering, 1=exclusive clusterin...
Definition JetClustering.h:132
fastjet::ClusterSequence _cs
internal clustering sequence
Definition JetClustering.h:139
FCCAnalysesJet operator()(const std::vector< fastjet::PseudoJet > &jets)
Definition JetClustering.cc:189
fastjet::JetAlgorithm _jetAlgorithm
anti-kT algorithm=-1, cambridge algorithm=0, kT algorithm=1
Definition JetClustering.h:137
Jet Clustering interface for ee_kt.
Definition JetClustering.h:104
float _cut
pT cut for m_exclusive=0, dcut for m_exclusive=1, N jets for m_exlusive=2, N jets for m_exclusive=3,...
Definition JetClustering.h:110
int _sorted
pT ordering=0, E ordering=1
Definition JetClustering.h:111
int _recombination
E_scheme=0, pt_scheme=1, pt2_scheme=2, Et_scheme=3, Et2_scheme=4, BIpt_scheme=5, BIpt2_scheme=6,...
Definition JetClustering.h:112
fastjet::JetAlgorithm _jetAlgorithm
internal jet algorithm
Definition JetClustering.h:113
fastjet::ClusterSequence _cs
internal clustering sequence
Definition JetClustering.h:115
FCCAnalysesJet operator()(const std::vector< fastjet::PseudoJet > &jets)
Definition JetClustering.cc:150
fastjet::RecombinationScheme _recombScheme
internal recombination scheme
Definition JetClustering.h:114
fastjet::JetDefinition _def
internal jetdefinition sequence
Definition JetClustering.h:116
clustering_ee_kt(int arg_exclusive=0, float arg_cut=5., int arg_sorted=0, int arg_recombination=0)
Definition JetClustering.cc:131
int _exclusive
flag for exclusive jet clustering. Possible choices are 0=inclusive clustering, 1=exclusive clusterin...
Definition JetClustering.h:109
Jet Clustering interface for genkt.
Definition JetClustering.h:144
clustering_genkt(float arg_radius=0.5, int arg_exclusive=0, float arg_cut=5., int arg_sorted=0, int arg_recombination=0, float arg_exponent=0.)
Definition JetClustering.cc:206
int _sorted
pT ordering=0, E ordering=1
Definition JetClustering.h:158
fastjet::JetAlgorithm _jetAlgorithm
anti-kT algorithm=-1, cambridge algorithm=0, kT algorithm=1
Definition JetClustering.h:161
float _radius
jet cone radius
Definition JetClustering.h:155
int _exclusive
flag for exclusive jet clustering. Possible choices are 0=inclusive clustering, 1=exclusive clusterin...
Definition JetClustering.h:156
fastjet::RecombinationScheme _recombScheme
internal recombination scheme
Definition JetClustering.h:162
fastjet::JetDefinition _def
internal jetdefinition sequence
Definition JetClustering.h:164
FCCAnalysesJet operator()(const std::vector< fastjet::PseudoJet > &jets)
Definition JetClustering.cc:228
float _cut
pT cut for m_exclusive=0, dcut for m_exclusive=1, N jets for m_exlusive=2, N jets for m_exclusive=3,...
Definition JetClustering.h:157
float _exponent
Definition JetClustering.h:160
int _recombination
E_scheme=0, pt_scheme=1, pt2_scheme=2, Et_scheme=3, Et2_scheme=4, BIpt_scheme=5, BIpt2_scheme=6,...
Definition JetClustering.h:159
fastjet::ClusterSequence _cs
internal clustering sequence
Definition JetClustering.h:163
Jet Clustering interface for jade.
Definition JetClustering.h:195
FCCAnalysesJet operator()(const std::vector< fastjet::PseudoJet > &jets)
Definition JetClustering.cc:312
clustering_jade(float arg_radius=0.5, int arg_exclusive=0, float arg_cut=5., int arg_sorted=0, int arg_recombination=0)
Definition JetClustering.cc:291
fastjet::JetDefinition _def
internal jetdefinition sequence
Definition JetClustering.h:214
int _recombination
E_scheme=0, pt_scheme=1, pt2_scheme=2, Et_scheme=3, Et2_scheme=4, BIpt_scheme=5, BIpt2_scheme=6,...
Definition JetClustering.h:209
fastjet::ClusterSequence _cs
internal clustering sequence
Definition JetClustering.h:213
float _radius
jet cone radius
Definition JetClustering.h:205
fastjet::JadePlugin * _jetAlgorithm
Definition JetClustering.h:211
float _cut
pT cut for m_exclusive=0, dcut for m_exclusive=1, N jets for m_exlusive=2, N jets for m_exclusive=3,...
Definition JetClustering.h:207
int _sorted
pT ordering=0, E ordering=1
Definition JetClustering.h:208
fastjet::RecombinationScheme _recombScheme
internal recombination scheme
Definition JetClustering.h:212
int _exclusive
flag for exclusive jet clustering. Possible choices are 0=inclusive clustering, 1=exclusive clusterin...
Definition JetClustering.h:206
Jet Clustering interface for kt.
Definition JetClustering.h:38
fastjet::JetDefinition _def
internal jetdefinition sequence
Definition JetClustering.h:56
int _recombination
E_scheme=0, pt_scheme=1, pt2_scheme=2, Et_scheme=3, Et2_scheme=4, BIpt_scheme=5, BIpt2_scheme=6.
Definition JetClustering.h:52
int _sorted
pT ordering=0, E ordering=1
Definition JetClustering.h:51
fastjet::ClusterSequence _cs
internal clustering sequence
Definition JetClustering.h:55
float _cut
pT cut for _exclusive=0, dcut for _exclusive=1, N jets for _exlusive=2, N jets for _exclusive=3,...
Definition JetClustering.h:50
fastjet::RecombinationScheme _recombScheme
internal recombination scheme
Definition JetClustering.h:54
FCCAnalysesJet operator()(const std::vector< fastjet::PseudoJet > &jets)
Definition JetClustering.cc:33
fastjet::JetAlgorithm _jetAlgorithm
internal jet algorithm
Definition JetClustering.h:53
clustering_kt(float arg_radius=0.5, int arg_exclusive=0, float arg_cut=5, int arg_sorted=0, int arg_recombination=0)
Definition JetClustering.cc:12
float _radius
jet cone radius
Definition JetClustering.h:48
int _exclusive
flag for exclusive jet clustering. Possible choices are 0=inclusive clustering, 1=exclusive clusterin...
Definition JetClustering.h:49
Jet Clustering interface for valencia.
Definition JetClustering.h:168
fastjet::ClusterSequence _cs
internal clustering sequence
Definition JetClustering.h:190
float _gamma
beta parameter
Definition JetClustering.h:186
FCCAnalysesJet operator()(const std::vector< fastjet::PseudoJet > &jets)
Definition JetClustering.cc:274
fastjet::JetDefinition _def
internal jetdefinition sequence
Definition JetClustering.h:191
float _beta
Definition JetClustering.h:185
float _radius
jet cone radius
Definition JetClustering.h:180
int _recombination
E_scheme=0, pt_scheme=1, pt2_scheme=2, Et_scheme=3, Et2_scheme=4, BIpt_scheme=5, BIpt2_scheme=6,...
Definition JetClustering.h:184
int _exclusive
flag for exclusive jet clustering. Possible choices are 0=inclusive clustering, 1=exclusive clusterin...
Definition JetClustering.h:181
clustering_valencia(float arg_radius=0.5, int arg_exclusive=0, float arg_cut=5., int arg_sorted=0, int arg_recombination=0, float arg_beta=1., float arg_gamma=1.)
Definition JetClustering.cc:245
float _cut
pT cut for m_exclusive=0, dcut for m_exclusive=1, N jets for m_exlusive=2, N jets for m_exclusive=3,...
Definition JetClustering.h:182
fastjet::contrib::ValenciaPlugin * _jetAlgorithm
gamma parameter
Definition JetClustering.h:188
int _sorted
pT ordering=0, E ordering=1
Definition JetClustering.h:183
fastjet::RecombinationScheme _recombScheme
internal recombination scheme
Definition JetClustering.h:189