CbmRoot
compareTrdDigi.h
Go to the documentation of this file.
1 #ifndef COMPARETRDDIGI_H
2 #define COMPARETRDDIGI_H 1
3 
5  Int_t padChNr,
6  ECbmModuleId systemid,
7  ULong64_t time,
8  Double_t charge) {
9  Int_t retValInt {-222};
10  Double_t retValDouble {-222.};
12 
13  retValInt = test.GetAddressChannel();
14  EXPECT_EQ(padChNr, retValInt);
15 
16  retValInt = test.GetAddressModule();
17  EXPECT_EQ((Int_t) systemid, retValInt);
18 
19  // GetAddress() returns the full Address part of the fInfo data member. However, since Module-5 translated via CbmTrdAddress corresponds to the value 0 it should return the setted channel number.
20  retValInt = test.GetAddress();
21  EXPECT_EQ(padChNr, 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  retValDouble = test.GetCharge();
30  EXPECT_FLOAT_EQ(static_cast<Double_t>(charge), retValDouble);
31 }
32 
33 #endif // COMPARETRDDIGI_H
CbmTrdDigi::GetAddress
Int_t GetAddress() const
Address getter for module in the format defined by CbmTrdDigi (format of CbmTrdAddress can be accesse...
Definition: CbmTrdDigi.h:92
CbmTrdDigi::GetAddressChannel
Int_t GetAddressChannel() const
Getter read-out id.
Definition: CbmTrdDigi.cxx:119
ECbmModuleId
ECbmModuleId
Definition: CbmDefs.h:33
compareTrdDigiDataMembers
void compareTrdDigiDataMembers(CbmTrdDigi &test, Int_t padChNr, ECbmModuleId systemid, ULong64_t time, Double_t charge)
Definition: compareTrdDigi.h:4
CbmTrdDigi::GetSystem
static ECbmModuleId GetSystem()
Definition: CbmTrdDigi.h:117
CbmTrdDigi
Definition: CbmTrdDigi.h:14
CbmTrdDigi::GetTime
Double_t GetTime() const
Getter for physical time [ns]. Accounts for clock representation of each ASIC. In SPADIC case physica...
Definition: CbmTrdDigi.h:127
ECbmModuleId::kNotExist
@ kNotExist
If not found.
CbmTrdDigi::GetCharge
Double_t GetCharge() const
Charge getter for SPADIC.
Definition: CbmTrdDigi.cxx:133
CbmTrdDigi::GetAddressModule
Int_t GetAddressModule() const
Getter module address in the experiment.
Definition: CbmTrdDigi.cxx:126