CbmRoot
compareRichDigi.h
Go to the documentation of this file.
1 #ifndef COMPARERICHDIGI_H
2 #define COMPARERICHDIGI_H 1
3 
5  Int_t address,
6  ECbmModuleId systemid,
7  Double_t time,
8  Double_t tot) {
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(time, retValDouble);
21 
22  retValDouble = test.GetCharge();
23  EXPECT_FLOAT_EQ(tot, retValDouble);
24 
25  retValDouble = test.GetToT();
26  EXPECT_FLOAT_EQ(tot, retValDouble);
27 }
28 
29 #endif // COMPARERICHDIGI_H
CbmRichDigi
Definition: CbmRichDigi.h:25
compareRichDigiDataMembers
void compareRichDigiDataMembers(CbmRichDigi &test, Int_t address, ECbmModuleId systemid, Double_t time, Double_t tot)
Definition: compareRichDigi.h:4
ECbmModuleId
ECbmModuleId
Definition: CbmDefs.h:33
CbmRichDigi::GetTime
Double_t GetTime() const
Definition: CbmRichDigi.h:61
CbmRichDigi::GetSystem
static ECbmModuleId GetSystem()
System identifier.
Definition: CbmRichDigi.h:55
CbmRichDigi::GetAddress
Int_t GetAddress() const
Definition: CbmRichDigi.h:37
CbmRichDigi::GetCharge
Double_t GetCharge() const
Charge.
Definition: CbmRichDigi.h:45
CbmRichDigi::GetToT
Double_t GetToT() const
Definition: CbmRichDigi.h:67
ECbmModuleId::kNotExist
@ kNotExist
If not found.