5#ifndef COMPARETRDDIGI_H
6#define COMPARETRDDIGI_H 1
8#include "gtest/gtest.h"
12 int32_t retValInt {-222};
13 double retValDouble {-222.};
17 EXPECT_EQ(padChNr, retValInt);
20 EXPECT_EQ((int32_t) systemid, retValInt);
24 EXPECT_EQ(padChNr, retValInt);
27 EXPECT_EQ(systemid, retVal);
30 EXPECT_FLOAT_EQ(
static_cast<double>(time), retValDouble);
33 EXPECT_FLOAT_EQ(
static_cast<double>(charge), retValDouble);
39 int32_t retValInt {-222};
40 double retValDouble {-222.};
44 EXPECT_EQ(padChNr, retValInt);
47 EXPECT_EQ((int32_t) systemid, retValInt);
51 EXPECT_EQ(padChNr, retValInt);
54 EXPECT_EQ(systemid, retVal);
57 EXPECT_FLOAT_EQ(
static_cast<double>(time), retValDouble);
60 EXPECT_FLOAT_EQ(
static_cast<double>(charge), retValDouble);
63 EXPECT_EQ(
static_cast<int32_t
>(triggerType), retValInt);
int32_t GetAddressModule() const
Getter module address in the experiment.
int32_t GetAddress() const
Address getter for module in the format defined by CbmTrdDigi (format of CbmTrdAddress can be accesse...
int32_t GetTriggerType() const
Channel trigger type. SPADIC specific see CbmTrdTriggerType.
int32_t GetAddressChannel() const
Getter read-out id.
static ECbmModuleId GetSystem()
double GetTime() const
Getter for physical time [ns]. Accounts for clock representation of each ASIC. In SPADIC case physica...
double GetCharge() const
Common purpose charge getter.
void compareTrdDigiDataMembers(CbmTrdDigi &test, int32_t padChNr, ECbmModuleId systemid, uint64_t time, double charge)