CbmRoot
compareLink.h
Go to the documentation of this file.
1
#ifndef COMPARELINK_H
2
#define COMPARELINK_H 1
3
4
#include "
CbmLink.h
"
5
6
void
compareLinkDataMembers
(
CbmLink
& test,
7
Int_t file,
8
Int_t entry,
9
Int_t index,
10
Double_t weight) {
11
Int_t intRetVal {-111};
12
Float_t floatRetVal {-111};
13
14
intRetVal = test.
GetFile
();
15
EXPECT_EQ(file, intRetVal);
16
17
intRetVal = test.
GetEntry
();
18
EXPECT_EQ(entry, intRetVal);
19
20
intRetVal = test.
GetIndex
();
21
EXPECT_EQ(index, intRetVal);
22
23
floatRetVal = test.
GetWeight
();
24
EXPECT_FLOAT_EQ(weight, floatRetVal);
25
}
26
27
#endif //COMPARELINK_H
CbmLink::GetIndex
Int_t GetIndex() const
Definition:
CbmLink.h:38
CbmLink::GetEntry
Int_t GetEntry() const
Definition:
CbmLink.h:37
CbmLink.h
CbmLink::GetFile
Int_t GetFile() const
Definition:
CbmLink.h:36
compareLinkDataMembers
void compareLinkDataMembers(CbmLink &test, Int_t file, Int_t entry, Int_t index, Double_t weight)
Definition:
compareLink.h:6
CbmLink::GetWeight
Float_t GetWeight() const
Definition:
CbmLink.h:39
CbmLink
Definition:
CbmLink.h:18
core
data
test
compareLink.h
Generated on Wed Oct 28 2020 15:11:49 for CbmRoot by
1.8.18