36 #include "fastjet/internal/ClusterSequence_N2.icc" 40 FASTJET_BEGIN_NAMESPACE
54 template<>
inline void ClusterSequence::_bj_set_jetinfo(
55 EEBriefJet *
const jetA,
const int _jets_index)
const {
57 double E = _jets[_jets_index].E();
59 double p = jet_def().extra_param();
60 switch (_jet_algorithm) {
62 assert(_Rparam > 2.0);
68 if (p <= 0 && scale < 1e-300) scale = 1e-300;
72 throw Error(
"Unrecognised jet algorithm");
76 double norm = _jets[_jets_index].modp2();
78 norm = 1.0/sqrt(norm);
79 jetA->nx = norm * _jets[_jets_index].px();
80 jetA->ny = norm * _jets[_jets_index].py();
81 jetA->nz = norm * _jets[_jets_index].pz();
87 jetA->_jets_index = _jets_index;
95 template<>
double ClusterSequence::_bj_dist(
96 const EEBriefJet *
const jeta,
97 const EEBriefJet *
const jetb)
const {
110 void ClusterSequence::_simple_N2_cluster_BriefJet() {
111 _simple_N2_cluster<BriefJet>();
116 void ClusterSequence::_simple_N2_cluster_EEBriefJet() {
117 _simple_N2_cluster<EEBriefJet>();
129 FASTJET_END_NAMESPACE
double norm(const VPoint p)
norm of a vector
the e+e- genkt algorithm (R > 2 and p=1 gives ee_kt)