CbmRoot
comparePsdAddress.h
Go to the documentation of this file.
1
#ifndef COMPAREPSDDIGI_H
2
#define COMPAREPSDDIGI_H 1
3
4
void
comparePsdAddressDataMembers
(Int_t address,
5
ECbmModuleId
systemid,
6
Int_t moduleid,
7
Int_t sectionid) {
8
Int_t retValInt {-222};
9
10
retValInt =
CbmPsdAddress::GetSystemId
(address);
11
EXPECT_EQ(
ToIntegralType
(systemid), retValInt);
12
13
retValInt =
CbmPsdAddress::GetModuleId
(address);
14
EXPECT_EQ(moduleid, retValInt);
15
16
retValInt =
CbmPsdAddress::GetSectionId
(address);
17
EXPECT_EQ(sectionid, retValInt);
18
}
19
20
#endif // COMPAREPSDDIGI_H
CbmPsdAddress::GetSystemId
static UInt_t GetSystemId(UInt_t address)
Return System identifier from address.
Definition:
CbmPsdAddress.h:50
ECbmModuleId
ECbmModuleId
Definition:
CbmDefs.h:33
comparePsdAddressDataMembers
void comparePsdAddressDataMembers(Int_t address, ECbmModuleId systemid, Int_t moduleid, Int_t sectionid)
Definition:
comparePsdAddress.h:4
CbmPsdAddress::GetModuleId
static UInt_t GetModuleId(UInt_t address)
Return module ID from address.
Definition:
CbmPsdAddress.h:60
ToIntegralType
constexpr auto ToIntegralType(T enumerator) -> typename std::underlying_type< T >::type
Definition:
CbmDefs.h:24
CbmPsdAddress::GetSectionId
static UInt_t GetSectionId(UInt_t address)
Return sector ID from address.
Definition:
CbmPsdAddress.h:70
core
data
test
psd
comparePsdAddress.h
Generated on Wed Oct 28 2020 15:11:49 for CbmRoot by
1.8.18