CbmRoot
compareStsDigi.h
Go to the documentation of this file.
1
#ifndef COMPARESTSDIGI_H
2
#define COMPARESTSDIGI_H 1
3
4
void
compareStsDigiDataMembers
(
CbmStsDigi
& test,
5
Int_t address,
6
UShort_t charge,
7
UShort_t channel,
8
ECbmModuleId
systemid,
9
Long64_t time) {
10
Int_t retValInt {-222};
11
Double_t retValDouble {-222.};
12
ECbmModuleId
retVal {
ECbmModuleId::kNotExist
};
13
14
retValInt = test.
GetAddress
();
15
EXPECT_EQ(address, retValInt);
16
17
retValDouble = test.
GetCharge
();
18
EXPECT_FLOAT_EQ(
static_cast<
Double_t
>
(charge), retValDouble);
19
20
retValInt = test.
GetChannel
();
21
EXPECT_EQ(channel, retValInt);
22
23
retVal = test.
GetSystem
();
24
EXPECT_EQ(systemid, retVal);
25
26
retValDouble = test.
GetTime
();
27
EXPECT_FLOAT_EQ(
static_cast<
Double_t
>
(time), retValDouble);
28
}
29
30
#endif // COMPARESTSDIGI_H
ECbmModuleId
ECbmModuleId
Definition:
CbmDefs.h:33
compareStsDigiDataMembers
void compareStsDigiDataMembers(CbmStsDigi &test, Int_t address, UShort_t charge, UShort_t channel, ECbmModuleId systemid, Long64_t time)
Definition:
compareStsDigi.h:4
CbmStsDigi::GetTime
Double_t GetTime() const
Definition:
CbmStsDigi.h:83
CbmStsDigi
Data class for a single-channel message in the STS.
Definition:
CbmStsDigi.h:29
CbmStsDigi::GetSystem
static ECbmModuleId GetSystem()
Definition:
CbmStsDigi.h:77
CbmStsDigi::GetCharge
Double_t GetCharge() const
Definition:
CbmStsDigi.h:71
CbmStsDigi::GetAddress
Int_t GetAddress() const
Definition:
CbmStsDigi.h:53
ECbmModuleId::kNotExist
@ kNotExist
If not found.
CbmStsDigi::GetChannel
UShort_t GetChannel() const
Channel number in module @value Channel number.
Definition:
CbmStsDigi.h:59
core
data
test
sts
compareStsDigi.h
Generated on Wed Oct 28 2020 15:11:49 for CbmRoot by
1.8.18