File indexing completed on 2025-08-03 08:17:10
0001 #ifndef JETBACKGROUND_FASTJETALGOSUB_H
0002 #define JETBACKGROUND_FASTJETALGOSUB_H
0003
0004 #include <jetbase/FastJetOptions.h>
0005 #include <jetbase/Jet.h>
0006 #include <jetbase/JetAlgo.h>
0007
0008 #include <iostream>
0009 #include <vector>
0010
0011 class FastJetAlgoSub : public JetAlgo
0012 {
0013 public:
0014 FastJetAlgoSub(const FastJetOptions& options);
0015 ~FastJetAlgoSub() override = default;
0016
0017
0018
0019
0020
0021 FastJetAlgoSub(Jet::ALGO algo, float par, int verbosity = 0)
0022 : FastJetAlgoSub({{algo, JET_R, par, VERBOSITY, static_cast<float>(verbosity)}})
0023 {
0024 }
0025
0026
0027 void identify(std::ostream& os = std::cout) override;
0028 Jet::ALGO get_algo() override { return m_opt.algo; }
0029 float get_par() override { return m_opt.jet_R; }
0030
0031
0032 void cluster_and_fill(std::vector<Jet*>& particles, JetContainer* jetcont) override;
0033
0034 private:
0035 FastJetOptions m_opt{};
0036 };
0037
0038 #endif