CbmRoot
Loading...
Searching...
No Matches
_GTestCbmConstants.cxx
Go to the documentation of this file.
1
/* Copyright (C) 2016-2020 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2
SPDX-License-Identifier: GPL-3.0-only
3
Authors: Florian Uhlig [committer] */
4
5
#include "
CbmDefs.h
"
6
7
#include <Rtypes.h>
8
9
#include <gtest/gtest-spi.h>
10
#include <gtest/gtest.h>
11
12
TEST
(_GTestCbmConstants, CheckParticleMasses)
13
{
14
double
protonMass = 0.938272046;
15
double
neutronMass = 0.939565379;
16
double
electronMass = 0.000510998928;
17
18
EXPECT_EQ(protonMass,
CbmProtonMass
());
19
EXPECT_EQ(neutronMass,
CbmNeutronMass
());
20
EXPECT_EQ(electronMass,
CbmElectronMass
());
21
}
CbmDefs.h
CbmProtonMass
double CbmProtonMass()
Definition
CbmDefs.h:197
CbmNeutronMass
double CbmNeutronMass()
Definition
CbmDefs.h:198
CbmElectronMass
double CbmElectronMass()
Definition
CbmDefs.h:199
TEST
TEST(_GTestCbmConstants, CheckParticleMasses)
Definition
_GTestCbmConstants.cxx:12
core
data
test
_GTestCbmConstants.cxx
Generated on Sun Dec 22 2024 23:04:08 for CbmRoot by
1.12.0