/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
SimG4Core/Notification/interface/TmpSimVertex.h
26 строк
725 B
Vladimir
code format
10 июл 2023, 16:43
10 июл 2023, 16:43
591a0f6
Код
Авторство
О чём код?
#ifndef SimG4Core_TmpSimVertex_H #define SimG4Core_TmpSimVertex_H #include "DataFormats/Math/interface/Vector3D.h" #include "DataFormats/Math/interface/LorentzVector.h" #include <cmath> class TmpSimVertex { public: TmpSimVertex(const math::XYZVectorD& ip, double it, int iv, int typ = 0) : ilv_(ip), itime_(it), itrack_(iv), ptype_(typ) {} ~TmpSimVertex() = default; /// index of the parent (-1 if no parent) const math::XYZVectorD& vertexPosition() const { return ilv_; } double vertexGlobalTime() const { return itime_; } int parentIndex() const { return itrack_; } int processType() const { return ptype_; } private: math::XYZVectorD ilv_; double itime_; int itrack_; int ptype_; }; #endif