CbmRoot
comparePsdDigi.h
Go to the documentation of this file.
1 #ifndef COMPAREPSDDIGI_H
2 #define COMPAREPSDDIGI_H 1
3 
5  Int_t address,
6  ECbmModuleId systemid,
7  Double_t time,
8  Double_t edep) {
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(edep, retValDouble);
24 
25  retValDouble = test.GetEdep();
26  EXPECT_FLOAT_EQ(edep, retValDouble);
27 }
28 
29 #endif // COMPAREPSDDIGI_H
CbmPsdDigi::GetSystem
static ECbmModuleId GetSystem()
System identifier.
Definition: CbmPsdDigi.h:121
ECbmModuleId
ECbmModuleId
Definition: CbmDefs.h:33
CbmPsdDigi::GetAddress
Int_t GetAddress() const
Address.
Definition: CbmPsdDigi.h:79
comparePsdDigiDataMembers
void comparePsdDigiDataMembers(CbmPsdDigi &test, Int_t address, ECbmModuleId systemid, Double_t time, Double_t edep)
Definition: comparePsdDigi.h:4
CbmPsdDigi::GetTime
Double_t GetTime() const
Time.
Definition: CbmPsdDigi.h:127
CbmPsdDigi::GetCharge
Double_t GetCharge() const
Charge.
Definition: CbmPsdDigi.h:87
CbmPsdDigi
Data class for PSD digital information.
Definition: CbmPsdDigi.h:31
ECbmModuleId::kNotExist
@ kNotExist
If not found.
CbmPsdDigi::GetEdep
Double_t GetEdep() const
Energy deposit.
Definition: CbmPsdDigi.h:99