ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/HbbAnalysis/interface/YieldStats.hh
Revision: 1.1
Committed: Mon Oct 10 08:54:09 2011 UTC (13 years, 6 months ago) by agilbert
Content type: text/plain
Branch: MAIN
Log Message:
Add YieldStats class, add b-tag skim to fillZbbHistosFromTree, Trigger testing code in hbbTreeMaker(commented out)

File Contents

# User Rev Content
1 agilbert 1.1 #ifndef HbbAnalysis_YieldStats_hh
2     #define HbbAnalysis_YieldStats_hh
3    
4     #include <stdarg.h>
5     #include <vector>
6     #include <string>
7     #include <map>
8    
9     namespace HbbAnalysis {//namespace
10    
11    
12     class YieldStats {
13    
14    
15     public:
16     typedef std::vector<std::vector<double> > YieldMap;
17    
18     YieldStats(std::string yieldName);
19     ~YieldStats(){;}
20     YieldStats(){;}
21     void InitialiseStepNames(std::vector<std::string> const& stepNames);
22     void InitialiseStepNames(unsigned, ... );
23     void InitialiseSplitNames(std::vector<std::string> const& splitNames);
24     void InitialiseSplitNames(unsigned numArgs, ... );
25     void IncrementCount(unsigned run, std::string stepName, std::string splitName, double value);
26     void IncrementCount(unsigned run, unsigned stepIndex, unsigned splitIndex, double value);
27    
28     void PrintMap();
29    
30    
31    
32     private:
33     std::string yieldName_;
34     YieldMap runMap_;
35     std::vector<std::string> stepNames_;
36     std::vector<std::string> splitNames_;
37     std::map<std::string,unsigned> stepIndexMap_;
38     std::map<std::string,unsigned> splitIndexMap_;
39     std::map<unsigned, unsigned> runIndexMap_;
40     void BuildStepIndexMap();
41     void BuildSplitIndexMap();
42    
43     };
44    
45     }//namespace
46    
47     #endif //HbbAnalysis_YieldStats_hh