![]() |
Project
|
Benchmark clustering device for MID. More...
#include "benchmark/benchmark.h"
#include <random>
#include <gsl/gsl>
#include "MIDBase/Mapping.h"
#include "DataFormatsMID/ColumnData.h"
#include "MIDClustering/PreCluster.h"
#include "MIDClustering/PreClusterizer.h"
#include "MIDClustering/Clusterizer.h"
Go to the source code of this file.
Classes | |
class | BenchClustering |
Functions | |
o2::mid::ColumnData & | getColumn (std::vector< o2::mid::ColumnData > &patterns, uint8_t icolumn, uint8_t deId) |
bool | addStrip (o2::mid::ColumnData &column, int cathode, int line, int strip) |
void | addNeighbour (std::vector< o2::mid::ColumnData > &patterns, o2::mid::Mapping::MpStripIndex stripIndex, int cathode, int deId, const o2::mid::Mapping &midMapping, int &nAdded, int maxAdded) |
std::vector< o2::mid::ColumnData > | generateTestData (int deId, int nClusters, int clusterSize, const o2::mid::Mapping &midMapping) |
for (auto _ :state) | |
BENCHMARK_REGISTER_F (BenchClustering, clustering) -> Apply(CustomArguments) ->Unit(benchmark::kNanosecond) | |
BENCHMARK_MAIN () | |
Variables | |
benchmark::State & | state |
int | nClusters = state.range(1) |
int | clusterSize = state.range(2) |
double | num {0} |
std::vector< o2::mid::ColumnData > | inputData |
state | counters ["num"] = benchmark::Counter(num, benchmark::Counter::kIsRate) |
void addNeighbour | ( | std::vector< o2::mid::ColumnData > & | patterns, |
o2::mid::Mapping::MpStripIndex | stripIndex, | ||
int | cathode, | ||
int | deId, | ||
const o2::mid::Mapping & | midMapping, | ||
int & | nAdded, | ||
int | maxAdded | ||
) |
Definition at line 49 of file bench_Clusterizer.cxx.
bool addStrip | ( | o2::mid::ColumnData & | column, |
int | cathode, | ||
int | line, | ||
int | strip | ||
) |
Definition at line 38 of file bench_Clusterizer.cxx.
BENCHMARK_MAIN | ( | ) |
BENCHMARK_REGISTER_F | ( | BenchClustering | , |
clustering | |||
) | -> Apply(CustomArguments) ->Unit(benchmark::kNanosecond) |
for | ( | auto _ :state | ) |
Definition at line 126 of file bench_Clusterizer.cxx.
std::vector< o2::mid::ColumnData > generateTestData | ( | int | deId, |
int | nClusters, | ||
int | clusterSize, | ||
const o2::mid::Mapping & | midMapping | ||
) |
Definition at line 69 of file bench_Clusterizer.cxx.
o2::mid::ColumnData & getColumn | ( | std::vector< o2::mid::ColumnData > & | patterns, |
uint8_t | icolumn, | ||
uint8_t | deId | ||
) |
Definition at line 26 of file bench_Clusterizer.cxx.
int clusterSize = state.range(2) |
Definition at line 121 of file bench_Clusterizer.cxx.
Definition at line 136 of file bench_Clusterizer.cxx.
std::vector<o2::mid::ColumnData> inputData |
Definition at line 124 of file bench_Clusterizer.cxx.
int nClusters = state.range(1) |
Definition at line 120 of file bench_Clusterizer.cxx.
double num {0} |
Definition at line 122 of file bench_Clusterizer.cxx.
benchmark::State& state |
Definition at line 116 of file bench_Clusterizer.cxx.