ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/UHHAnalysis/SFrameTools/include/HypothesisStatistics.h
Revision: 1.2
Committed: Wed Jun 12 12:33:42 2013 UTC (11 years, 10 months ago) by peiffer
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -1 lines
Log Message:
removed ObjectHandler

File Contents

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