/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
DetectorDescription/DDCMS/test/DDCompactView.cppunit.cc
40 строк
1001 B
Ianna Osborne
Use production geometry for tests
03 июн 2020, 12:57
03 июн 2020, 12:57
6a7ba31
Код
Авторство
О чём код?
#include <cppunit/extensions/HelperMacros.h> #include "DetectorDescription/DDCMS/interface/DDCompactView.h" #include "DetectorDescription/DDCMS/interface/DDDetector.h" #include "FWCore/ParameterSet/interface/FileInPath.h" #include "DD4hep/Detector.h" #include <string> #include <memory> #include "cppunit/TestAssert.h" #include "cppunit/TestFixture.h" using namespace cms; using namespace std; class testDDCompactView : public CppUnit::TestFixture { CPPUNIT_TEST_SUITE(testDDCompactView); CPPUNIT_TEST(checkCompactView); CPPUNIT_TEST_SUITE_END(); public: void setUp() override; void tearDown() override {} void checkCompactView(); private: string fileName_; }; CPPUNIT_TEST_SUITE_REGISTRATION(testDDCompactView); void testDDCompactView::setUp() { fileName_ = edm::FileInPath("Geometry/CMSCommonData/data/dd4hep/cmsExtendedGeometry2021.xml").fullPath(); } void testDDCompactView::checkCompactView() { const DDDetector det("DUMMY", fileName_); DDCompactView cpview(det); }