diff --git a/test/HcalDigiPipelineTest.cxx b/test/HcalDigiPipelineTest.cxx index 515b034..451cbf6 100644 --- a/test/HcalDigiPipelineTest.cxx +++ b/test/HcalDigiPipelineTest.cxx @@ -1,3 +1,8 @@ +#include +#include +#include + +using Catch::Approx; #include "DetDescr/HcalID.h" //creating unique hcal IDs #include "Framework/ConfigurePython.h" @@ -6,7 +11,6 @@ #include "Hcal/Event/HcalHit.h" #include "Recon/Event/HgcrocDigiCollection.h" #include "SimCore/Event/SimCalorimeterHit.h" -#include "catch.hpp" //for TEST_CASE, REQUIRE, and other Catch2 macros namespace hcal { namespace test { @@ -71,7 +75,7 @@ static const int NUM_TEST_SIM_HITS = 1000; * the input energy/position is "close enough" to the truth * energy/position. */ -class isCloseEnough : public Catch::MatcherBase { +class isCloseEnough : public Catch::Matchers::MatcherBase { private: /// correct (sim-level) double truth_; diff --git a/test/HcalGeometryTest.cxx b/test/HcalGeometryTest.cxx index e6d52ef..c4b87f1 100644 --- a/test/HcalGeometryTest.cxx +++ b/test/HcalGeometryTest.cxx @@ -1,3 +1,7 @@ +#include +#include + +using Catch::Approx; #include "DetDescr/HcalGeometry.h" #include "DetDescr/HcalID.h" //creating unique cell IDs @@ -5,7 +9,6 @@ #include "Framework/EventProcessor.h" #include "Framework/Process.h" #include "SimCore/Event/SimCalorimeterHit.h" -#include "catch.hpp" //for TEST_CASE, REQUIRE, and other Catch2 macros namespace hcal { namespace test {