5#ifndef COMPARECLUSTER_H
6#define COMPARECLUSTER_H 1
12#include "gtest/gtest.h"
17 int32_t retValInt {-111};
20 EXPECT_EQ(vectorsize, retValInt);
25 EXPECT_EQ(indices[
counter], retValInt);
27 std::vector<int32_t> compare = test.
GetDigis();
28 EXPECT_TRUE(std::equal(indices.begin(), indices.end(), compare.begin()));
32 EXPECT_EQ(address, retValInt);
Base class for cluster objects.
Base class for cluster objects.
CbmMatch * GetMatch() const
const std::vector< int32_t > & GetDigis() const
Get array of digi indices.
int32_t GetAddress() const
int32_t GetDigi(int32_t index) const
Get digi at position index.
int32_t GetNofDigis() const
Number of digis in cluster.
int32_t GetNofLinks() const
double GetTotalWeight() const
void compareClusterDataMembers(CbmCluster &test, int32_t vectorsize, std::vector< int32_t > indices, int32_t address, CbmMatch *match)
void compareMatchDataMembers(CbmMatch &testMatch, int32_t noflinks, double weight)