/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
SimG4CMS/Muon/src/MuonEndcapFrameRotation.cc
15 строк
694 B
Cms Build
Clang-Format
09 май 2019, 07:14
09 май 2019, 07:14
57cea53
Код
Авторство
О чём код?
#include "SimG4CMS/Muon/interface/MuonEndcapFrameRotation.h" #include "SimG4Core/SensitiveDetector/interface/FrameRotation.h" #include "G4Step.hh" #include "G4StepPoint.hh" #include "G4TouchableHistory.hh" Local3DPoint MuonEndcapFrameRotation::transformPoint(const Local3DPoint& point, const G4Step* step) const { const G4StepPoint* preStepPoint = step->GetPreStepPoint(); const G4TouchableHistory* theTouchable = (const G4TouchableHistory*)preStepPoint->GetTouchable(); const G4ThreeVector& trans = theTouchable->GetTranslation(); return (trans.z() < 0) ? Local3DPoint(-point.x(), -point.z(), -point.y()) : Local3DPoint(point.x(), point.z(), -point.y()); }