CbmRoot
compareMuchDigi.h
Go to the documentation of this file.
1 #ifndef COMPAREMUCHDIGI_H
2 #define COMPAREMUCHDIGI_H 1
3 
5  Int_t address,
6  ECbmModuleId systemid,
7  ULong64_t time,
8  Int_t charge) {
9  Int_t retValInt {-222};
10  Double_t retValDouble {-222.};
12 
13  retValInt = test.GetAddress();
14  EXPECT_EQ(address, retValInt);
15 
16  retVal = test.GetSystem();
17  EXPECT_EQ(systemid, retVal);
18 
19  retValDouble = test.GetTime();
20  EXPECT_FLOAT_EQ(static_cast<Double_t>(time), retValDouble);
21 
22  retValDouble = test.GetCharge();
23  EXPECT_EQ(static_cast<Double_t>(charge), retValDouble);
24 
25  retValInt = test.GetAdc();
26  EXPECT_EQ(charge, retValInt);
27 }
28 
29 #endif // COMPAREMUCHDIGI_H
CbmMuchDigi::GetTime
virtual Double_t GetTime() const
Definition: CbmMuchDigi.h:78
CbmMuchDigi::GetCharge
Double_t GetCharge() const
Charge.
Definition: CbmMuchDigi.h:59
CbmMuchDigi::GetAdc
UShort_t GetAdc() const
Definition: CbmMuchDigi.h:74
ECbmModuleId
ECbmModuleId
Definition: CbmDefs.h:33
CbmMuchDigi::GetAddress
virtual Int_t GetAddress() const
Definition: CbmMuchDigi.h:77
compareMuchDigiDataMembers
void compareMuchDigiDataMembers(CbmMuchDigi &test, Int_t address, ECbmModuleId systemid, ULong64_t time, Int_t charge)
Definition: compareMuchDigi.h:4
CbmMuchDigi
Definition: CbmMuchDigi.h:31
ECbmModuleId::kNotExist
@ kNotExist
If not found.
CbmMuchDigi::GetSystem
static ECbmModuleId GetSystem()
Definition: CbmMuchDigi.h:65