Skip to content

Commit

Permalink
Change test since numeric SpecPars with eval=true are now always eval…
Browse files Browse the repository at this point in the history
…uated
  • Loading branch information
cvuosalo committed Jan 22, 2021
1 parent 1bf53b8 commit 2466f9e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions DetectorDescription/DDCMS/test/DDFilteredView.cppunit.cc
Expand Up @@ -111,12 +111,13 @@ void testDDFilteredView::checkFilteredView() {
count++;
}

std::cout << "Get LongFL from hf as string values:\n";
std::cout << "Get LongFL from hf as numerically evaluated string values:\n";
count = 0;
std::vector<std::string> sLongFL = fview.get<std::vector<std::string>>("hf", "LongFL");
for (auto const& i : sLongFL) {
std::cout << "LongFL " << i << " == " << refsLongFL_[count] << "\n";
CPPUNIT_ASSERT(abs(std::stod(i) - std::stod(refsLongFL_[count])) < 10e-6);
double dblVal = std::stod(i) / dd4hep::cm; // Convert DD4hep units to cm
std::cout << "LongFL " << dblVal << " == " << refsLongFL_[count] << "\n";
CPPUNIT_ASSERT(abs(dblVal - std::stod(refsLongFL_[count])) < 10e-6);
count++;
}

Expand Down

0 comments on commit 2466f9e

Please sign in to comment.