forked from h2gglobe/h2gglobe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CounterContainer.h
35 lines (29 loc) · 870 Bytes
/
CounterContainer.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef COUNTERCONTAINER
#define COUNTERCONTAINER
#include <map>
#include <string>
#include <vector>
class CounterContainer {
public:
CounterContainer();
CounterContainer(int);
~CounterContainer();
std::vector<float> operator[](unsigned int);
void Add(std::string, int, std::string, std::string, std::string);
void Fill(std::string, int);
void Fill(std::string, int, float);
void Save();
unsigned int size() { return c.size(); }
unsigned int ncat(unsigned int);
std::string name(unsigned int);
std::string denomName(unsigned int, unsigned int);
float efficiency(unsigned int, unsigned int, unsigned int);
float efficiency(unsigned int, unsigned int);
float tot(unsigned int);
private:
int histVal;
std::vector<std::vector<std::string> > denoms_;
std::vector<std::string> names;
std::vector<std::vector<float> > c;
};
#endif