CbmRoot
Loading...
Searching...
No Matches
compareMuchBeamTimeDigi.h
Go to the documentation of this file.
1/* Copyright (C) 2020 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Florian Uhlig [committer] */
4
5#ifndef COMPAREMUCHBEAMTIMEDIGI_H
6#define COMPAREMUCHBEAMTIMEDIGI_H 1
7
8#include "compareMuchDigi.h"
9#include "gtest/gtest.h"
10
12 uint64_t time, int32_t charge, int32_t padx, int32_t pady, int32_t rocid,
13 int32_t nxid, int32_t nxch, int32_t elink)
14{
15 CbmMuchDigi bla = static_cast<CbmMuchDigi>(test);
16 compareMuchDigiDataMembers(bla, address, systemid, time, charge);
17
18 int32_t retValInt {-222};
19
20 retValInt = test.GetPadX();
21 EXPECT_EQ(padx, retValInt);
22
23 retValInt = test.GetPadY();
24 EXPECT_EQ(pady, retValInt);
25
26 retValInt = test.GetRocId();
27 EXPECT_EQ(rocid, retValInt);
28
29 retValInt = test.GetNxId();
30 EXPECT_EQ(nxid, retValInt);
31
32 retValInt = test.GetNxCh();
33 EXPECT_EQ(nxch, retValInt);
34
35 retValInt = test.GetElink();
36 EXPECT_EQ(elink, retValInt);
37}
38
39#endif // COMPAREMUCHBEAMTIMEDIGI_H
ECbmModuleId
Definition CbmDefs.h:39
void compareMuchBeamTimeDigiDataMembers(CbmMuchBeamTimeDigi &test, int32_t address, ECbmModuleId systemid, uint64_t time, int32_t charge, int32_t padx, int32_t pady, int32_t rocid, int32_t nxid, int32_t nxch, int32_t elink)
void compareMuchDigiDataMembers(CbmMuchDigi &test, int32_t address, ECbmModuleId systemid, uint64_t time, int32_t charge)