CbmRoot
Loading...
Searching...
No Matches
comparePsdPoint.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 COMPAREPSDPOINT_H
6#define COMPAREPSDPOINT_H 1
7
9#include "gtest/gtest.h"
10
11void comparePsdPointDataMembers(CbmPsdPoint& test, int32_t trackID, int32_t detID, TVector3 pos, TVector3 mom,
12 double tof, double length, double eLoss, int32_t moduleid, int32_t eventid)
13{
14
15 FairMCPoint test1 = static_cast<FairMCPoint>(test);
16 compareFairMCPointDataMembers(test1, trackID, detID, pos, mom, tof, length, eLoss, eventid);
17
18 int32_t retValInt {-222};
19
20 retValInt = test.GetModuleID();
21 EXPECT_EQ(moduleid, retValInt);
22}
23
24#endif // COMPAREPSDDIGI_H
int32_t GetModuleID() const
Definition CbmPsdPoint.h:61
void compareFairMCPointDataMembers(FairMCPoint &test, int32_t trackID, int32_t detID, TVector3 pos, TVector3 mom, double tof, double length, double eloss, int32_t eventid)
void comparePsdPointDataMembers(CbmPsdPoint &test, int32_t trackID, int32_t detID, TVector3 pos, TVector3 mom, double tof, double length, double eLoss, int32_t moduleid, int32_t eventid)