CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10/src/FastSimulation/Utilities/interface/Looses.h

Go to the documentation of this file.
00001 #ifndef LOOSES_H
00002 #define LOOSES_H
00003 
00004 //C++ headers
00005 #include <string>
00006 #include <map>
00007 #include <vector>
00008 
00009 class Looses {
00010 public:
00012   static Looses* instance();
00013 
00015   virtual ~Looses();
00016 
00018   void count(const std::string& name, unsigned cut);
00019 
00021   void summary();
00022 
00023  private:
00024   // The constructor is hidden as we do not want to construct
00025   // more than one instance.
00026   Looses();
00027 
00028   // The instance
00029   static Looses* myself;
00030 
00031   // The table of losses
00032   std::map< std::string, std::vector<unsigned> > theLosses;
00033 };
00034 #endif