test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Looses.h
Go to the documentation of this file.
1 #ifndef LOOSES_H
2 #define LOOSES_H
3 
4 //C++ headers
5 #include <string>
6 #include <map>
7 #include <vector>
8 
9 class Looses {
10 public:
12  static Looses* instance();
13 
15  virtual ~Looses();
16 
18  void count(const std::string& name, unsigned cut);
19 
21  void summary();
22 
23  private:
24  // The constructor is hidden as we do not want to construct
25  // more than one instance.
26  Looses();
27 
28  // The instance
29  static Looses* myself;
30 
31  // The table of losses
32  std::map< std::string, std::vector<unsigned> > theLosses;
33 };
34 #endif
static Looses * instance()
Constructor is not public (only one instance needed)
Definition: Looses.cc:11
Looses()
Definition: Looses.cc:9
void summary()
Printing.
Definition: Looses.cc:34
Definition: Looses.h:9
void count(const std::string &name, unsigned cut)
Counting.
Definition: Looses.cc:19
std::map< std::string, std::vector< unsigned > > theLosses
Definition: Looses.h:32
virtual ~Looses()
Virtual destructor (empty)
Definition: Looses.cc:16
static Looses * myself
Definition: Looses.h:29