CbmRoot
compareTofDigi.h
Go to the documentation of this file.
1 #ifndef COMPARETOFDIGI_H
2 #define COMPARETOFDIGI_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 // COMPARETOFDIGI_H
compareTofDigiDataMembers
void compareTofDigiDataMembers(CbmTofDigi &test, Int_t address, ECbmModuleId systemid, Double_t time, Double_t tot)
Definition: compareTofDigi.h:4
ECbmModuleId
ECbmModuleId
Definition: CbmDefs.h:33
CbmTofDigi::GetTime
Double_t GetTime() const
Inherited from CbmDigi.
Definition: CbmTofDigi.h:111
CbmTofDigi
Data class for expanded digital TOF information.
Definition: CbmTofDigi.h:38
CbmTofDigi::GetSystem
static ECbmModuleId GetSystem()
Definition: CbmTofDigi.h:106
CbmTofDigi::GetTot
Double_t GetTot() const
Alias for GetCharge.
Definition: CbmTofDigi.h:120
ECbmModuleId::kNotExist
@ kNotExist
If not found.
CbmTofDigi::GetAddress
Int_t GetAddress() const
Inherited from CbmDigi.
Definition: CbmTofDigi.h:98
CbmTofDigi::GetCharge
Double_t GetCharge() const
Inherited from CbmDigi.
Definition: CbmTofDigi.h:116