File indexing completed on 2024-04-06 12:05:30
0001 #include <cppunit/extensions/HelperMacros.h>
0002
0003 #include "DetectorDescription/DDCMS/interface/DDCompactView.h"
0004 #include "DetectorDescription/DDCMS/interface/DDDetector.h"
0005 #include "FWCore/ParameterSet/interface/FileInPath.h"
0006 #include "DD4hep/Detector.h"
0007
0008 #include <string>
0009 #include <memory>
0010
0011 #include "cppunit/TestAssert.h"
0012 #include "cppunit/TestFixture.h"
0013
0014 using namespace cms;
0015 using namespace std;
0016
0017 class testDDCompactView : public CppUnit::TestFixture {
0018 CPPUNIT_TEST_SUITE(testDDCompactView);
0019 CPPUNIT_TEST(checkCompactView);
0020 CPPUNIT_TEST_SUITE_END();
0021
0022 public:
0023 void setUp() override;
0024 void tearDown() override {}
0025 void checkCompactView();
0026
0027 private:
0028 string fileName_;
0029 };
0030
0031 CPPUNIT_TEST_SUITE_REGISTRATION(testDDCompactView);
0032
0033 void testDDCompactView::setUp() {
0034 fileName_ = edm::FileInPath("Geometry/CMSCommonData/data/dd4hep/cmsExtendedGeometry2021.xml").fullPath();
0035 }
0036
0037 void testDDCompactView::checkCompactView() {
0038 const DDDetector det("DUMMY", fileName_);
0039 DDCompactView cpview(det);
0040 }