/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
FastSimulation/Utilities/interface/Looses.h
34 строки
618 B
Cms Build
Clang-Format
24 май 2019, 00:14
24 май 2019, 00:14
740c44a
Код
Авторство
О чём код?
#ifndef LOOSES_H #define LOOSES_H //C++ headers #include <string> #include <map> #include <vector> class Looses { public: ///Constructor is not public (only one instance needed) static Looses* instance(); ///Virtual destructor (empty) virtual ~Looses(); ///Counting void count(const std::string& name, unsigned cut); ///Printing void summary(); private: // The constructor is hidden as we do not want to construct // more than one instance. Looses(); // The instance static Looses* myself; // The table of losses std::map<std::string, std::vector<unsigned> > theLosses; }; #endif