CbmRoot
Loading...
Searching...
No Matches
compareStripHit.h
Go to the documentation of this file.
1/* Copyright (C) 2017-2021 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Florian Uhlig [committer] */
4
5#ifndef COMPARESTRIPHIT_H
6#define COMPARESTRIPHIT_H 1
7
8#include "CbmMatch.h"
9#include "CbmStripHit.h"
10
11#include "compareHit.h"
12#include "gtest/gtest.h"
13
14void compareStripHitDataMembers(CbmStripHit& test, HitType type, double z, double dz, int32_t refid, int32_t address,
15 CbmMatch* match, double time, double errortime, double u, double du, double phi,
16 double dphi)
17{
18
19 compareHitDataMembers(test, type, z, dz, refid, address, match, time, errortime);
20
21 float retValFloat {-111.};
22
23 retValFloat = test.GetU();
24 EXPECT_FLOAT_EQ(u, retValFloat);
25
26 retValFloat = test.GetDu();
27 EXPECT_FLOAT_EQ(du, retValFloat);
28
29 retValFloat = test.GetPhi();
30 EXPECT_FLOAT_EQ(phi, retValFloat);
31
32 retValFloat = test.GetDphi();
33 EXPECT_FLOAT_EQ(dphi, retValFloat);
34}
35
36#endif // COMPARESTRIPHIT_H
HitType
Definition CbmHit.h:21
double GetPhi() const
Definition CbmStripHit.h:74
double GetDu() const
Definition CbmStripHit.h:75
double GetDphi() const
Definition CbmStripHit.h:76
double GetU() const
Definition CbmStripHit.h:73
void compareHitDataMembers(CbmHit &test, HitType type, double z, double dz, int32_t refid, int32_t address, CbmMatch *match, double time, double errortime)
Definition compareHit.h:14
void compareStripHitDataMembers(CbmStripHit &test, HitType type, double z, double dz, int32_t refid, int32_t address, CbmMatch *match, double time, double errortime, double u, double du, double phi, double dphi)