comparePsdPoint.h 609 Bytes
Newer Older
1
2
3
4
#ifndef COMPAREPSDPOINT_H
#define COMPAREPSDPOINT_H 1

#include "compareFairMCPoint.h"
Administrator's avatar
Administrator committed
5
#include "gtest/gtest.h"
6

7
8
9
void comparePsdPointDataMembers(CbmPsdPoint& test, Int_t trackID, Int_t detID, TVector3 pos, TVector3 mom, Double_t tof,
                                Double_t length, Double_t eLoss, Int_t moduleid, Int_t eventid)
{
10
11

  FairMCPoint test1 = static_cast<FairMCPoint>(test);
12
  compareFairMCPointDataMembers(test1, trackID, detID, pos, mom, tof, length, eLoss, eventid);
13

Administrator's avatar
Administrator committed
14
  Int_t retValInt {-222};
15
16
17
18
19

  retValInt = test.GetModuleID();
  EXPECT_EQ(moduleid, retValInt);
}

Administrator's avatar
Administrator committed
20
#endif  // COMPAREPSDDIGI_H