CbmRoot
Loading...
Searching...
No Matches
comparePixelHit.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 COMPAREPIXELHIT_H
6#define COMPAREPIXELHIT_H 1
7
8#include "CbmMatch.h"
9#include "CbmPixelHit.h"
10
11#include "compareHit.h"
12#include "gtest/gtest.h"
13
14void comparePixelHitDataMembers(CbmPixelHit& test, HitType type, double z, double dz, int32_t refid, int32_t address,
15 CbmMatch* match, double time, double errortime, double x, double dx, double y,
16 double dy, double dxy)
17{
18
19 compareHitDataMembers(test, type, z, dz, refid, address, match, time, errortime);
20
21 float retValFloat {-111.};
22
23 retValFloat = test.GetX();
24 EXPECT_FLOAT_EQ(x, retValFloat);
25
26 retValFloat = test.GetDx();
27 EXPECT_FLOAT_EQ(dx, retValFloat);
28
29 retValFloat = test.GetY();
30 EXPECT_FLOAT_EQ(y, retValFloat);
31
32 retValFloat = test.GetDy();
33 EXPECT_FLOAT_EQ(dy, retValFloat);
34
35 retValFloat = test.GetDxy();
36 EXPECT_FLOAT_EQ(dxy, retValFloat);
37}
38
39
40#endif // COMPAREPIXELHIT_H
HitType
Definition CbmHit.h:21
double GetDy() const
Definition CbmPixelHit.h:76
double GetDx() const
Definition CbmPixelHit.h:75
double GetY() const
Definition CbmPixelHit.h:74
double GetX() const
Definition CbmPixelHit.h:73
double GetDxy() const
Definition CbmPixelHit.h:77
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 comparePixelHitDataMembers(CbmPixelHit &test, HitType type, double z, double dz, int32_t refid, int32_t address, CbmMatch *match, double time, double errortime, double x, double dx, double y, double dy, double dxy)