/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
SimDataFormats/TrackingHit/test/testPSimHit.cc
24 строки
785 B
Fabio Cossutti
Squashed commit of the following:
08 апр 2026, 18:03
08 апр 2026, 18:03
5b2960f
Код
Авторство
О чём код?
#include "SimDataFormats/TrackingHit/interface/PSimHit.h" #include <iostream> #include <iomanip> #include <cassert> int main() { Local3DPoint dummy(0, 0, 0); for (int procId = 1; procId < 404; procId++) { for (unsigned short itype = 0; itype < 8; itype++) { PSimHit testHit(dummy, dummy, 0., 0., 0., 11, 0, 0, 0., 0., procId); testHit.setHitProdType(itype); std::cout << " hit procId = " << std::fixed << std::setw(8) << procId << " sim procId = " << std::setw(8) << testHit.processType() << " hit type = " << std::setw(8) << itype << " sim type = " << std::setw(8) << testHit.hitProdType() << std::endl; assert(procId == testHit.processType()); assert(itype == testHit.hitProdType()); } } return 0; }