2#include <TRestDetectorGas.h>
3#include <gtest/gtest.h>
7namespace fs = std::filesystem;
11const auto filesPath = fs::path(__FILE__).parent_path().parent_path() /
"files";
12const auto gasDefaultRml = filesPath /
"TRestDetectorGasExample.rml";
15 cout <<
"FrameworkCore test files path: " << filesPath << endl;
18 EXPECT_TRUE(fs::is_directory(filesPath));
20 EXPECT_TRUE(!fs::is_empty(filesPath));
23 EXPECT_TRUE(fs::exists(gasDefaultRml));
32 EXPECT_TRUE(gas.GetPressure() == 1);
33 EXPECT_TRUE(gas.GetTemperature() == 300);
44 EXPECT_TRUE(gas.GetW() == 21.9);
45 EXPECT_TRUE(gas.GetTemperature() == 293.15);
virtual Double_t GetElectricField() const
Returns the electric field in V/mm.
TString GetGasComponentName(Int_t n)
Returns the gas component n.
Int_t GetNofGases() const
Returns the number of gas elements/compounds present in the gas mixture.
void PrintGasInfo()
Prints the metadata information from the gas.
Double_t GetGasComponentFraction(Int_t n)
Returns the gas fraction in volume for component n.