CbmRoot
|
Automatic checker of QA results. More...
#include <CbmLitResultChecker.h>
Public Member Functions | |
CbmLitResultChecker () | |
Constructor. More... | |
virtual | ~CbmLitResultChecker () |
Destructor. More... | |
void | DoCheck (const string &qaFile, const string &idealFile, const string &checkFile) |
Check QA results based on predefined values. More... | |
void | DoCheck (const ptree &qa, const ptree &ideal, ptree &out) |
Check reconstruction quality results. More... | |
Private Member Functions | |
void | PropertyTreeToMap (const string &path, const ptree &pt, map< string, Double_t > &mymap) const |
Build recursively map out of property tree. More... | |
Automatic checker of QA results.
Checking procedure compares two property trees: "quality" property tree obtained from QA procedure vs. "ideal" property tree containing predefined limits for each value. Results are stored in the third property tree as "0" - "1" if value was compared to ideal result or "-1" if value was not compared.
Definition at line 33 of file CbmLitResultChecker.h.
CbmLitResultChecker::CbmLitResultChecker | ( | ) |
Constructor.
Definition at line 13 of file CbmLitResultChecker.cxx.
|
virtual |
Destructor.
Definition at line 15 of file CbmLitResultChecker.cxx.
void CbmLitResultChecker::DoCheck | ( | const ptree & | qa, |
const ptree & | ideal, | ||
ptree & | out | ||
) |
Check reconstruction quality results.
[in] | qa | Reconstruction quality results stored as property tree. |
[in] | ideal | Ideal reconstruction quality results as property tree. |
[out] | out | Output property tree. |
Definition at line 37 of file CbmLitResultChecker.cxx.
References PropertyTreeToMap(), and v.
void CbmLitResultChecker::DoCheck | ( | const string & | qaFile, |
const string & | idealFile, | ||
const string & | checkFile | ||
) |
Check QA results based on predefined values.
[in] | qaFile | File name of QA results. |
[in] | idealFile | File name of predefined values. |
[out] | checkFile | File name for output results. |
Definition at line 17 of file CbmLitResultChecker.cxx.
|
private |
Build recursively map out of property tree.
[in] | path | Initial path. Must be "". |
[in] | pt | Input property tree. |
[out] | mymap | Output map<"property name", "value">. |
Definition at line 74 of file CbmLitResultChecker.cxx.
References v.
Referenced by DoCheck().