diff --git a/sbncode/OpT0Finder/flashmatch/Algorithms/ChargeAnalytical.cxx b/sbncode/OpT0Finder/flashmatch/Algorithms/ChargeAnalytical.cxx index 2fcc5a0d5..8d4cc75c4 100644 --- a/sbncode/OpT0Finder/flashmatch/Algorithms/ChargeAnalytical.cxx +++ b/sbncode/OpT0Finder/flashmatch/Algorithms/ChargeAnalytical.cxx @@ -3,8 +3,6 @@ #include "ChargeAnalytical.h" -#pragma GCC diagnostic ignored "-Wdangling-reference" - namespace flashmatch { static ChargeAnalyticalFactory __global_ChargeAnalyticalFactory__; diff --git a/sbncode/OpT0Finder/flashmatch/Algorithms/LightPath.cxx b/sbncode/OpT0Finder/flashmatch/Algorithms/LightPath.cxx index 959183e8b..af03469d8 100644 --- a/sbncode/OpT0Finder/flashmatch/Algorithms/LightPath.cxx +++ b/sbncode/OpT0Finder/flashmatch/Algorithms/LightPath.cxx @@ -3,8 +3,6 @@ #include "LightPath.h" -#pragma GCC diagnostic ignored "-Wdangling-reference" - namespace flashmatch { static LightPathFactory __global_LightPathFactory__; diff --git a/sbncode/OpT0Finder/flashmatch/Algorithms/QLLMatch.cxx b/sbncode/OpT0Finder/flashmatch/Algorithms/QLLMatch.cxx index 76c5533fc..87e7fa494 100644 --- a/sbncode/OpT0Finder/flashmatch/Algorithms/QLLMatch.cxx +++ b/sbncode/OpT0Finder/flashmatch/Algorithms/QLLMatch.cxx @@ -3,8 +3,6 @@ #include "QLLMatch.h" -#pragma GCC diagnostic ignored "-Wdangling-reference" - using namespace std::chrono; namespace flashmatch { diff --git a/sbncode/OpT0Finder/flashmatch/Base/FMWKInterface.h b/sbncode/OpT0Finder/flashmatch/Base/FMWKInterface.h index 5d7a97958..53cde65d6 100644 --- a/sbncode/OpT0Finder/flashmatch/Base/FMWKInterface.h +++ b/sbncode/OpT0Finder/flashmatch/Base/FMWKInterface.h @@ -38,15 +38,18 @@ namespace flashmatch { class DetectorSpecs { public: - DetectorSpecs(std::string filename="specs.cfg"); + DetectorSpecs() = delete; + DetectorSpecs(std::string filename); ~DetectorSpecs(){} - inline static DetectorSpecs& GetME(std::string filename="detector_specs.cfg") + inline static DetectorSpecs& GetME(std::string filename) { if(!_me) _me = new DetectorSpecs(filename); return *_me; } + inline static DetectorSpecs& GetME() { return GetME("detector_specs.cfg"); } + /// PMT XYZ position filler inline const geoalgo::Point_t& PMTPosition(size_t opch) { return _pmt_v.at(opch); }