/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
SimDataFormats/Vertex/interface/SimVertex.h
51 строка
1 KB
Matti Kortelainen
Move stored types in io_v1 namespace, reset class versions to 3
22 май 2026, 18:18
22 май 2026, 18:18
909f324
Код
Авторство
О чём код?
#ifndef SimVertex_H #define SimVertex_H #include "SimDataFormats/Vertex/interface/CoreSimVertex.h" #include <iosfwd> namespace io_v1 { class SimVertex : public CoreSimVertex { public: typedef CoreSimVertex Core; /// constructor SimVertex(); /// constructor from transient SimVertex(const CoreSimVertex& t, int it); SimVertex(const math::XYZVectorD& v, float tof); /// full constructor (position, time, index of parent in final vector) SimVertex(const math::XYZVectorD& v, float tof, int it); /// constructor from transient SimVertex(const CoreSimVertex& t, int it, unsigned int vId); SimVertex(const math::XYZVectorD& v, float tof, unsigned int vId); /// full constructor (position, time, index of parent in final vector) SimVertex(const math::XYZVectorD& v, float tof, int it, unsigned int vId); /// G4 TrackId of the parent in the Event SimTrack container (-1 if no parent) /// BE CAREFUL this is not a vector index int parentIndex() const { return itrack; } bool noParent() const { return itrack == -1; } void setVertexId(unsigned int n) { vtxId = n; } unsigned int vertexId() const { return vtxId; } void setProcessType(unsigned int ty) { procType = ty; } unsigned int processType() const { return procType; } private: int itrack; unsigned int vtxId; unsigned int procType; }; std::ostream& operator<<(std::ostream& o, const SimVertex& v); } // namespace io_v1 using SimVertex = io_v1::SimVertex; #endif