Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions sbncode/OpT0Finder/flashmatch/Algorithms/ChargeAnalytical.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

#include "ChargeAnalytical.h"

#pragma GCC diagnostic ignored "-Wdangling-reference"

namespace flashmatch {

static ChargeAnalyticalFactory __global_ChargeAnalyticalFactory__;
Expand Down
2 changes: 0 additions & 2 deletions sbncode/OpT0Finder/flashmatch/Algorithms/LightPath.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

#include "LightPath.h"

#pragma GCC diagnostic ignored "-Wdangling-reference"

namespace flashmatch {

static LightPathFactory __global_LightPathFactory__;
Expand Down
2 changes: 0 additions & 2 deletions sbncode/OpT0Finder/flashmatch/Algorithms/QLLMatch.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

#include "QLLMatch.h"

#pragma GCC diagnostic ignored "-Wdangling-reference"

using namespace std::chrono;
namespace flashmatch {

Expand Down
7 changes: 5 additions & 2 deletions sbncode/OpT0Finder/flashmatch/Base/FMWKInterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -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); }

Expand Down