2#include <TRestRawSignalShapingProcess.h>
3#include <gtest/gtest.h>
7namespace fs = std::filesystem;
11const auto filesPath = fs::path(__FILE__).parent_path().parent_path() /
"files";
12const auto restRawSignalShapingProcessRml = filesPath /
"TRestRawSignalShapingProcess.rml";
15 cout <<
"Test files path: " << filesPath << endl;
18 EXPECT_TRUE(fs::is_directory(filesPath));
20 EXPECT_TRUE(!fs::is_empty(filesPath));
21 EXPECT_TRUE(fs::exists(restRawSignalShapingProcessRml));
26 EXPECT_TRUE(process.
GetProcessName() == (std::string)
"rawSignalShaping");
28 EXPECT_TRUE(process.GetShapingType() == (std::string)
"shaperSin");
29 EXPECT_TRUE(process.GetShapingTime() == 10.0);
30 EXPECT_TRUE(process.GetShapingGain() == 1.0);
36 process.PrintMetadata();
38 EXPECT_TRUE(process.GetShapingType() == (std::string)
"responseFile");
39 EXPECT_TRUE(process.GetShapingTime() == 5.0);
40 EXPECT_TRUE(process.GetShapingGain() == 20.0);
const char * GetProcessName() const override
Returns the name of this process.