DUNE-DAQ
DUNE Trigger and Data Acquisition software
Toggle main menu visibility
Loading...
Searching...
No Matches
dunedaq
sourcecode
triggeralgs
include
triggeralgs
dbscan
TAMakerDBSCANAlgorithm.hpp
Go to the documentation of this file.
1
8
9
#ifndef TRIGGERALGS_DBSCAN_TRIGGERACTIVITYMAKERDBSCAN_HPP_
10
#define TRIGGERALGS_DBSCAN_TRIGGERACTIVITYMAKERDBSCAN_HPP_
11
12
#include "
triggeralgs/TriggerActivityFactory.hpp
"
13
#include "
triggeralgs/dbscan/dbscan.hpp
"
14
15
#include <memory>
16
#include <vector>
17
18
namespace
triggeralgs
{
19
class
TAMakerDBSCANAlgorithm
:
public
TriggerActivityMaker
20
{
21
22
public
:
23
void
process
(
const
TriggerPrimitive
& input_tp, std::vector<TriggerActivity>& output_ta);
24
25
void
configure
(
const
nlohmann::json &config);
26
27
private
:
28
int
m_eps
{10};
29
int
m_min_pts
{3};
// Minimum number of points to form a cluster
30
timestamp_t
m_first_timestamp
{0};
31
timestamp_t
m_prev_timestamp
{0};
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_
TriggerActivityFactory.hpp
triggeralgs::TAMakerDBSCANAlgorithm
Definition
TAMakerDBSCANAlgorithm.hpp:20
triggeralgs::TAMakerDBSCANAlgorithm::m_prev_timestamp
timestamp_t m_prev_timestamp
Definition
TAMakerDBSCANAlgorithm.hpp:31
triggeralgs::TAMakerDBSCANAlgorithm::m_min_pts
int m_min_pts
Definition
TAMakerDBSCANAlgorithm.hpp:29
triggeralgs::TAMakerDBSCANAlgorithm::m_first_timestamp
timestamp_t m_first_timestamp
Definition
TAMakerDBSCANAlgorithm.hpp:30
triggeralgs::TAMakerDBSCANAlgorithm::configure
void configure(const nlohmann::json &config)
Definition
TAMakerDBSCANAlgorithm.cpp:76
triggeralgs::TAMakerDBSCANAlgorithm::process
void process(const TriggerPrimitive &input_tp, std::vector< TriggerActivity > &output_ta)
TP processing function that creates & fills TAs.
Definition
TAMakerDBSCANAlgorithm.cpp:25
triggeralgs::TAMakerDBSCANAlgorithm::m_eps
int m_eps
Definition
TAMakerDBSCANAlgorithm.hpp:28
triggeralgs::TAMakerDBSCANAlgorithm::m_dbscan
std::unique_ptr< dbscan::IncrementalDBSCAN > m_dbscan
Definition
TAMakerDBSCANAlgorithm.hpp:33
triggeralgs::TAMakerDBSCANAlgorithm::m_dbscan_clusters
std::vector< dbscan::Cluster > m_dbscan_clusters
Definition
TAMakerDBSCANAlgorithm.hpp:32
triggeralgs::TriggerActivityMaker
Definition
TriggerActivityMaker.hpp:29
dbscan.hpp
triggeralgs
Definition
AbstractFactory.hpp:18
triggeralgs::timestamp_t
dunedaq::trgdataformats::timestamp_t timestamp_t
Definition
Types.hpp:16
triggeralgs::TriggerPrimitive
dunedaq::trgdataformats::TriggerPrimitive TriggerPrimitive
Definition
TriggerPrimitive.hpp:22
Generated on
for DUNE-DAQ by
1.17.0