/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
SimDataFormats/RPCDigiSimLink/interface/RPCDigiSimLink.h
67 строк
2 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 RPCOBJECTS_RPCDIGISIMLINK_H #define RPCOBJECTS_RPCDIGISIMLINK_H #include <map> #include "DataFormats/GeometryVector/interface/LocalPoint.h" #include "DataFormats/GeometryVector/interface/LocalVector.h" #include "SimDataFormats/EncodedEventId/interface/EncodedEventId.h" namespace io_v1 { class RPCDigiSimLink { public: RPCDigiSimLink(std::pair<unsigned int, int> digi, Local3DPoint entryPoint, LocalVector momentumAtEntry, float timeOfFlight, float energyLoss, int particleType, unsigned int detUnitId, unsigned int trackId, EncodedEventId eventId, unsigned short processType) { _entryPoint = entryPoint; _momentumAtEntry = momentumAtEntry; _timeOfFlight = timeOfFlight; _energyLoss = energyLoss; _particleType = particleType; _detUnitId = detUnitId; _trackId = trackId; _eventId = eventId; _processType = processType; _digi = digi; } RPCDigiSimLink() { ; } ~RPCDigiSimLink() { ; } unsigned int getStrip() const { return _digi.first; } unsigned int getBx() const { return _digi.second; } Local3DPoint getEntryPoint() const { return _entryPoint; } LocalVector getMomentumAtEntry() const { return _momentumAtEntry; } float getTimeOfFlight() const { return _timeOfFlight; } float getEnergyLoss() const { return _energyLoss; } int getParticleType() const { return _particleType; } unsigned int getDetUnitId() const { return _detUnitId; } unsigned int getTrackId() const { return _trackId; } EncodedEventId getEventId() const { return _eventId; } unsigned short getProcessType() const { return _processType; } inline bool operator<(const RPCDigiSimLink& other) const { return getStrip() < other.getStrip(); } private: std::pair<unsigned int, int> _digi; Local3DPoint _entryPoint; LocalVector _momentumAtEntry; float _timeOfFlight; float _energyLoss; int _particleType; unsigned int _detUnitId; unsigned int _trackId; EncodedEventId _eventId; unsigned short _processType; }; } // namespace io_v1 using RPCDigiSimLink = io_v1::RPCDigiSimLink; #endif