/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
SimG4Core/Application/interface/CustomUIsessionThreadPrefix.h
25 строк
871 B
Vladimir
exteded geometry test
24 июл 2019, 12:08
24 июл 2019, 12:08
3e57ba7
Код
Авторство
О чём код?
#ifndef SimG4Core_CustomUIsessionThreadPrefix_H #define SimG4Core_CustomUIsessionThreadPrefix_H #include "SimG4Core/Geometry/interface/CustomUIsession.h" /** * This class is intended for debugging of multithreaded simulation * when the amount of output is small to moderate. The output of * Geant4 is forwarded to MessageLogger as in CustomUIsession, but a * thread-specific prefix is added before each line of output. This * makes it easier to grab the output of a specific thread. */ class CustomUIsessionThreadPrefix : public CustomUIsession { public: explicit CustomUIsessionThreadPrefix(const std::string& threadPrefix, int threadId); ~CustomUIsessionThreadPrefix() override; G4int ReceiveG4cout(const G4String& coutString) override; G4int ReceiveG4cerr(const G4String& cerrString) override; private: const std::string m_threadPrefix; }; #endif