CbmRoot
Loading...
Searching...
No Matches
_GTestCbmTrdDigi.cxx
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], Pascal Raisig */
4
5#include "CbmTrdDigi.h"
6
7#include "compareTrdDigi.h"
8#include "gtest/gtest-spi.h"
9#include "gtest/gtest.h"
10
11TEST(_GTestCbmTrdDigi, CheckDefaultConstructor)
12{
13 // Create object
14 CbmTrdDigi test;
16
17 CbmTrdDigi* test1 = new CbmTrdDigi();
18
20}
21
22TEST(_GTestCbmTrdDigi, CheckStandardConstructor)
23{
24 // Create object
25 // This creates a Spadic standard digi, fasp test to be added here
26 int32_t padChNr = 42;
27 int32_t uniqueModuleId = (int32_t) ECbmModuleId::kTrd; // Unique ModuleId of first module
28 double charge = 42.42;
29 uint64_t digiTime = 42001;
30 int32_t errClass = 0;
31 CbmTrdDigi test(padChNr, uniqueModuleId, charge, digiTime, CbmTrdDigi::eTriggerType::kSelf, errClass);
33
34 CbmTrdDigi* test1 =
35 new CbmTrdDigi(padChNr, uniqueModuleId, charge, digiTime, CbmTrdDigi::eTriggerType::kSelf, errClass);
36
38}
39
40
41TEST(_GTestCbmTrdDigi, CheckGetClassName)
42{
43 // Create object
44 CbmTrdDigi test;
45
47
48 EXPECT_STREQ("CbmTrdDigi", test.GetClassName());
49}
@ kTrd
Transition Radiation Detector.
TEST(_GTestCbmTrdDigi, CheckDefaultConstructor)
static const char * GetClassName()
Class name (static)
Definition CbmTrdDigi.h:144
void compareTrdDigiDataMembers(CbmTrdDigi &test, int32_t padChNr, ECbmModuleId systemid, uint64_t time, double charge)