CbmRoot
compareDigi.h
Go to the documentation of this file.
1 #ifndef COMPAREDIGI_H
2 #define COMPAREDIGI_H 1
3 
5  Int_t address,
6  Double_t charge,
7  Int_t systemid,
8  Double_t time) {
9  Int_t retValInt {-222};
10  Double_t retValDouble {-222.};
11 
12  retValInt = test.GetAddress();
13  EXPECT_EQ(address, retValInt);
14 
15  retValDouble = test.GetCharge();
16  EXPECT_FLOAT_EQ(charge, retValDouble);
17 
18  retValInt = test.GetSystemId();
19  EXPECT_EQ(systemid, retValInt);
20 
21  retValDouble = test.GetTime();
22  EXPECT_FLOAT_EQ(time, retValDouble);
23 }
24 
25 #endif // COMPAREDIGI_H
CbmTestDigi::GetAddress
Int_t GetAddress() const
Definition: _GTestCbmDigi.cxx:45
CbmTestDigi::GetTime
Double_t GetTime() const
Definition: _GTestCbmDigi.cxx:53
CbmTestDigi
Definition: _GTestCbmDigi.cxx:14
compareDigiDataMembers
void compareDigiDataMembers(CbmTestDigi &test, Int_t address, Double_t charge, Int_t systemid, Double_t time)
Definition: compareDigi.h:4
CbmTestDigi::GetSystemId
Int_t GetSystemId() const
Definition: _GTestCbmDigi.cxx:49