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
10
void
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
CbmPsdHit
Definition
CbmPsdHit.h:25
CbmPsdHit::GetModuleID
int32_t GetModuleID() const
Definition
CbmPsdHit.h:46
CbmPsdHit::GetEdep
double GetEdep() const
Definition
CbmPsdHit.h:43
comparePsdHitDataMembers
void comparePsdHitDataMembers(CbmPsdHit &test, int32_t moduleid, double edep)
Definition
comparePsdHit.h:10
core
data
test
psd
comparePsdHit.h
Generated on Sun Dec 22 2024 23:04:09 for CbmRoot by
1.12.0