CbmRoot
CbmLitResultChecker Class Reference

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...
 

Detailed Description

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.

Author
Andrey Lebedev andre.nosp@m.y.le.nosp@m.bedev.nosp@m.@gsi.nosp@m..de
Date
2011

Definition at line 33 of file CbmLitResultChecker.h.

Constructor & Destructor Documentation

◆ CbmLitResultChecker()

CbmLitResultChecker::CbmLitResultChecker ( )

Constructor.

Definition at line 13 of file CbmLitResultChecker.cxx.

◆ ~CbmLitResultChecker()

CbmLitResultChecker::~CbmLitResultChecker ( )
virtual

Destructor.

Definition at line 15 of file CbmLitResultChecker.cxx.

Member Function Documentation

◆ DoCheck() [1/2]

void CbmLitResultChecker::DoCheck ( const ptree &  qa,
const ptree &  ideal,
ptree &  out 
)

Check reconstruction quality results.

Parameters
[in]qaReconstruction quality results stored as property tree.
[in]idealIdeal reconstruction quality results as property tree.
[out]outOutput property tree.

Definition at line 37 of file CbmLitResultChecker.cxx.

References PropertyTreeToMap(), and v.

◆ DoCheck() [2/2]

void CbmLitResultChecker::DoCheck ( const string &  qaFile,
const string &  idealFile,
const string &  checkFile 
)

Check QA results based on predefined values.

Parameters
[in]qaFileFile name of QA results.
[in]idealFileFile name of predefined values.
[out]checkFileFile name for output results.

Definition at line 17 of file CbmLitResultChecker.cxx.

◆ PropertyTreeToMap()

void CbmLitResultChecker::PropertyTreeToMap ( const string &  path,
const ptree &  pt,
map< string, Double_t > &  mymap 
) const
private

Build recursively map out of property tree.

Parameters
[in]pathInitial path. Must be "".
[in]ptInput property tree.
[out]mymapOutput map<"property name", "value">.

Definition at line 74 of file CbmLitResultChecker.cxx.

References v.

Referenced by DoCheck().


The documentation for this class was generated from the following files: