2#include <TRestGeant4Metadata.h>
3#include <gtest/gtest.h>
7namespace fs = std::filesystem;
11const auto filesPath = fs::path(__FILE__).parent_path().parent_path() /
"files";
12const auto geant4MetadataRml = filesPath /
"TRestGeant4Example.rml";
15 cout <<
"Test files path: " << filesPath << endl;
18 EXPECT_TRUE(fs::is_directory(filesPath));
20 EXPECT_TRUE(!fs::is_empty(filesPath));
23 EXPECT_TRUE(fs::exists(geant4MetadataRml));
31 EXPECT_TRUE(restGeant4Metadata.
GetSeed() == 0);
35 cout <<
"Path: " << geant4MetadataRml << endl;
39 GTEST_SKIP_(
"TODO: fix this");
44 EXPECT_TRUE(restGeant4Metadata.
GetSeed() == 17021981);
49 EXPECT_TRUE(particleSource->GetParticleName() ==
"geantino");
50 EXPECT_TRUE(particleSource->GetEnergyDistributionType() ==
"mono");