CbmRoot
compareMatch.h
Go to the documentation of this file.
1 #ifndef COMPAREMATCH_H
2 #define COMPAREMATCH_H 1
3 
4 #include "CbmLink.h"
5 #include "CbmMatch.h"
6 
8  Int_t noflinks,
9  Double_t weight) {
10  Int_t linkLength {-111};
11  Double_t totalWeight {-111.};
12 
13  std::vector<CbmLink> link = testMatch.GetLinks();
14  linkLength = link.size();
15  EXPECT_EQ(noflinks, linkLength);
16 
17  linkLength = testMatch.GetNofLinks();
18  EXPECT_EQ(noflinks, linkLength);
19 
20  totalWeight = testMatch.GetTotalWeight();
21  EXPECT_FLOAT_EQ(weight, totalWeight);
22 }
23 
24 #endif // COMPAREMATCH_H
CbmMatch
Definition: CbmMatch.h:22
CbmMatch::GetNofLinks
Int_t GetNofLinks() const
Definition: CbmMatch.h:38
CbmMatch.h
CbmMatch::GetTotalWeight
Double_t GetTotalWeight() const
Definition: CbmMatch.h:39
compareMatchDataMembers
void compareMatchDataMembers(CbmMatch &testMatch, Int_t noflinks, Double_t weight)
Definition: compareMatch.h:7
CbmMatch::GetLinks
const std::vector< CbmLink > & GetLinks() const
Definition: CbmMatch.h:36