/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
SimG4Core/Physics/interface/CMSG4TrackInterface.h
44 строки
945 B
Vladimir
moved file from Application to Physics
17 мар 2025, 22:49
17 мар 2025, 22:49
3a904b3
Код
Авторство
О чём код?
#ifndef SimG4Core_CMSG4TrackInterface_h #define SimG4Core_CMSG4TrackInterface_h 1 // // Package: SimG4Core/Physics // Class : SimTrackInterface // // 10.03.2025 V.Ivantchenko // // An interface between Geant4 and CMSSW #include "G4ThreadLocalSingleton.hh" class G4Track; class CMSG4TrackInterface { friend class G4ThreadLocalSingleton<CMSG4TrackInterface>; public: static CMSG4TrackInterface* instance(); ~CMSG4TrackInterface(); const G4Track* getCurrentTrack() { return track_; } void setCurrentTrack(const G4Track* p) { track_ = p; } int getThreadID() { return threadID_; } void setThreadID(int n) { threadID_ = n; } CMSG4TrackInterface(CMSG4TrackInterface&) = delete; CMSG4TrackInterface& operator=(const CMSG4TrackInterface& right) = delete; private: CMSG4TrackInterface(); static G4ThreadLocal CMSG4TrackInterface* interface_; const G4Track* track_{nullptr}; int threadID_{-1}; }; #endif