/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
SimDataFormats/ValidationFormats/src/MaterialAccountingTrack.cc
17 строк
595 B
David
code checks
28 авг 2020, 09:57
28 авг 2020, 09:57
ebe9b72
Код
Авторство
О чём код?
#include <iostream> #include "DataFormats/GeometryVector/interface/GlobalPoint.h" #include "SimDataFormats/ValidationFormats/interface/MaterialAccountingTrack.h" void MaterialAccountingTrack::enterDetector(const GlobalPoint& position, double cosTheta) { m_detector.m_position = position; m_detector.m_curvilinearIn = m_total.length(); m_detector.m_cosThetaIn = cosTheta; } void MaterialAccountingTrack::leaveDetector(double cosTheta) { m_detector.m_curvilinearOut = m_total.length(); m_detector.m_cosThetaOut = cosTheta; m_detectors.push_back(m_detector); m_detector.clear(); }