1 |
// Dear emacs, this is -*- c++ -*-
|
2 |
#ifndef HypothesisStatistics_H
|
3 |
#define HypothesisStatistics_H
|
4 |
|
5 |
#include <TString.h>
|
6 |
#include "BaseCycleContainer.h"
|
7 |
#include "ObjectHandler.h"
|
8 |
#include "../../core/include/SLogger.h"
|
9 |
#include "include/ReconstructionHypothesis.h"
|
10 |
|
11 |
|
12 |
/**
|
13 |
* @short calculate statistics for the comparison of two different reconstruction hypotheses
|
14 |
*
|
15 |
*
|
16 |
*
|
17 |
* @author Thomas Peiffer
|
18 |
*/
|
19 |
|
20 |
class HypothesisStatistics{
|
21 |
public:
|
22 |
///Default constructor
|
23 |
HypothesisStatistics(std::string name);
|
24 |
///Default destructor
|
25 |
~HypothesisStatistics(){};
|
26 |
|
27 |
///set all hypothesis counters to 0
|
28 |
void Reset();
|
29 |
|
30 |
/// add two chosen hypotheses of the actual event; to be called in ExecuteEvent of a cycle
|
31 |
void FillHyps(ReconstructionHypothesis *hyp1, ReconstructionHypothesis *hyp2);
|
32 |
|
33 |
/// print the statistics for the comparison of the two hypothesis, to be called in EndInputData of a cycle
|
34 |
void PrintStatistics();
|
35 |
|
36 |
private:
|
37 |
unsigned int m_ntotal;
|
38 |
unsigned int m_identical;
|
39 |
unsigned int m_toplep_identical;
|
40 |
unsigned int m_tophad_identical;
|
41 |
|
42 |
mutable SLogger m_logger;
|
43 |
|
44 |
};
|
45 |
|
46 |
|
47 |
#endif
|