CbmRoot
comparePsdHit.h
Go to the documentation of this file.
1 #ifndef COMPAREPSDHIT_H
2 #define COMPAREPSDHIT_H 1
3 
4 void comparePsdHitDataMembers(CbmPsdHit& test, Int_t moduleid, Double_t edep) {
5  Int_t retValInt {-222};
6  Double_t retValDouble {-222.};
7 
8  retValInt = test.GetModuleID();
9  EXPECT_EQ(moduleid, retValInt);
10 
11  retValDouble = test.GetEdep();
12  EXPECT_FLOAT_EQ(edep, retValDouble);
13 }
14 
15 #endif // COMPAREPSDHIT_H
CbmPsdHit::GetModuleID
Int_t GetModuleID() const
Definition: CbmPsdHit.h:43
CbmPsdHit::GetEdep
Double_t GetEdep() const
Definition: CbmPsdHit.h:38
comparePsdHitDataMembers
void comparePsdHitDataMembers(CbmPsdHit &test, Int_t moduleid, Double_t edep)
Definition: comparePsdHit.h:4
CbmPsdHit
Definition: CbmPsdHit.h:20