CbmRoot
Loading...
Searching...
No Matches
comparePsdHit.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 COMPAREPSDHIT_H
6#define COMPAREPSDHIT_H 1
7
8#include "gtest/gtest.h"
9
10void comparePsdHitDataMembers(CbmPsdHit& test, int32_t moduleid, double edep)
11{
12 int32_t retValInt {-222};
13 double retValDouble {-222.};
14
15 retValInt = test.GetModuleID();
16 EXPECT_EQ(moduleid, retValInt);
17
18 retValDouble = test.GetEdep();
19 EXPECT_FLOAT_EQ(edep, retValDouble);
20}
21
22#endif // COMPAREPSDHIT_H
int32_t GetModuleID() const
Definition CbmPsdHit.h:46
double GetEdep() const
Definition CbmPsdHit.h:43
void comparePsdHitDataMembers(CbmPsdHit &test, int32_t moduleid, double edep)