ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/UHHAnalysis/SFrameTools/include/HypothesisStatistics.h
Revision: 1.1
Committed: Thu Nov 1 08:21:25 2012 UTC (12 years, 6 months ago) by peiffer
Content type: text/plain
Branch: MAIN
CVS Tags: Makefile, v1-00, Feb-15-2013-v1, Feb-14-2013, Feb-07-2013-v1, Jan-17-2013-v2, Jan-17-2013-v1, Jan-16-2012-v1, Jan-09-2012-v2, Jan-09-2012-v1, Dec-26-2012-v1, Dec-20-2012-v1, Dec-17-2012-v1, Nov-30-2012-v2, Nov-30-2012-v1
Log Message:
new reconstruction things

File Contents

# User Rev Content
1 peiffer 1.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