Skip to content
Snippets Groups Projects

QA: CbmSoft/cbmroot_qa repository linkage and histogram benchmarking

Merged Sergei Zharko requested to merge s.zharko/cbmroot:qa-repo-connect-2 into master
All threads resolved!
Files
9
+ 17
17
@@ -56,17 +56,17 @@ void CbmQaManager::Finish()
}
}
// Process histogram checking
if (fpCrossCheckFile.get()) {
// Process histogram benchmarking
if (fpBenchmarkInput.get()) {
for (auto* task : *(this->GetListOfTasks())) {
auto* pQaTask = dynamic_cast<CbmQaTask*>(task);
if (pQaTask) {
LOG(info) << "Histograms check for the task " << pQaTask->GetName();
LOG(info) << "Histograms benchmark for the task " << pQaTask->GetName();
pQaTask->CompareQaObjects();
}
}
if (fpCompareOutput.get()) {
fpCompareOutput->Close();
if (fpBenchmarkOutput.get()) {
fpBenchmarkOutput->Close();
}
}
}
@@ -84,11 +84,11 @@ InitStatus CbmQaManager::Init()
pQaTask->SetConfigName(fsConfigName.Data());
pQaTask->SetVersionTag(fsVersionTag);
pQaTask->SetDefaultTag(fsDefaultTag);
if (fpCrossCheckFile.get() != nullptr) {
pQaTask->SetCheckFile(fpCrossCheckFile);
if (fpBenchmarkInput.get() != nullptr) {
pQaTask->SetCheckFile(fpBenchmarkInput);
}
if (fpCompareOutput.get() != nullptr) {
pQaTask->SetCompareOutput(fpCompareOutput);
if (fpBenchmarkOutput.get() != nullptr) {
pQaTask->SetCompareOutput(fpBenchmarkOutput);
}
}
}
@@ -98,32 +98,32 @@ InitStatus CbmQaManager::Init()
// ---------------------------------------------------------------------------------------------------------------------
//
void CbmQaManager::OpenCrossCheckFile(const TString& path)
void CbmQaManager::OpenBenchmarkInput(const TString& path)
{
if (path.Length()) {
auto pFile = std::make_shared<TFile>(path, "READONLY");
if (pFile->IsOpen()) {
fpCrossCheckFile = std::move(pFile);
LOG(info) << fName << ": opening cross-check file " << fpCrossCheckFile->GetName();
fpBenchmarkInput = std::move(pFile);
LOG(info) << fName << ": opening benchmark input file " << fpBenchmarkInput->GetName();
}
else {
LOG(error) << fName << ": cross-check file " << path << " was not open";
LOG(error) << fName << ": benchmark input file " << path << " was not opened";
}
}
}
// ---------------------------------------------------------------------------------------------------------------------
//
void CbmQaManager::OpenCompareOutput(const TString& path)
void CbmQaManager::OpenBenchmarkOutput(const TString& path)
{
if (path.Length()) {
auto pFile = std::make_shared<TFile>(path, "RECREATE");
if (pFile->IsOpen()) {
fpCompareOutput = std::move(pFile);
LOG(info) << fName << ": opening comparison output file " << fpCompareOutput->GetName();
fpBenchmarkOutput = std::move(pFile);
LOG(info) << fName << ": opening benchmark output file " << fpBenchmarkOutput->GetName();
}
else {
LOG(error) << fName << ": comparison output file " << path << " was not open";
LOG(error) << fName << ": benchmark output file " << path << " was not opened";
}
}
}
Loading