CbmRoot
Loading...
Searching...
No Matches
CbmLitResultChecker.h
Go to the documentation of this file.
1/* Copyright (C) 2011-2012 GSI/JINR-LIT, Darmstadt/Dubna
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Andrey Lebedev [committer] */
4
11#ifndef CBMLITRESULTCHECKER_H_
12#define CBMLITRESULTCHECKER_H_
13
14#include "TObject.h"
15
16#include <boost/property_tree/ptree.hpp>
17
18#include <map>
19#include <string>
20using boost::property_tree::ptree;
21using std::map;
22using std::string;
23
40 public:
45
49 virtual ~CbmLitResultChecker();
50
57 void DoCheck(const string& qaFile, const string& idealFile, const string& checkFile);
58
65 void DoCheck(const ptree& qa, const ptree& ideal, ptree& out);
66
67 private:
74 void PropertyTreeToMap(const string& path, const ptree& pt, map<string, Double_t>& mymap) const;
75};
76
77#endif /* CBMLITRESULTCHECKER_H_ */
Automatic checker of QA results.
virtual ~CbmLitResultChecker()
Destructor.
void PropertyTreeToMap(const string &path, const ptree &pt, map< string, Double_t > &mymap) const
Build recursively map out of property tree.
void DoCheck(const string &qaFile, const string &idealFile, const string &checkFile)
Check QA results based on predefined values.
CbmLitResultChecker()
Constructor.