DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
TAMakerDBSCANAlgorithm.hpp
Go to the documentation of this file.
1
9#ifndef TRIGGERALGS_DBSCAN_TRIGGERACTIVITYMAKERDBSCAN_HPP_
10#define TRIGGERALGS_DBSCAN_TRIGGERACTIVITYMAKERDBSCAN_HPP_
11
14
15#include <memory>
16#include <vector>
17
18namespace triggeralgs {
20{
21
22public:
23 void process(const TriggerPrimitive& input_tp, std::vector<TriggerActivity>& output_ta);
24
25 void configure(const nlohmann::json &config);
26
27private:
28 int m_eps{10};
29 int m_min_pts{3}; // Minimum number of points to form a cluster
32 std::vector<dbscan::Cluster> m_dbscan_clusters;
33 std::unique_ptr<dbscan::IncrementalDBSCAN> m_dbscan;
34};
35} // namespace triggeralgs
36
37#endif // TRIGGERALGS_PRESCALE_TRIGGERACTIVITYMAKERPRESCALE_HPP_
void configure(const nlohmann::json &config)
void process(const TriggerPrimitive &input_tp, std::vector< TriggerActivity > &output_ta)
TP processing function that creates & fills TAs.
std::unique_ptr< dbscan::IncrementalDBSCAN > m_dbscan
std::vector< dbscan::Cluster > m_dbscan_clusters
dunedaq::trgdataformats::timestamp_t timestamp_t
Definition Types.hpp:16
A single energy deposition on a TPC or PDS channel.