Skip to content

Commit

Permalink
Make MultiDimFit::GridType public
Browse files Browse the repository at this point in the history
This fixes compilation with more pedantinc compilers: even though the
`RandStartPtr` was declared as a friend class, it uses the
`MultiDimFit::GridType` in its public interface. This is not allowed.
  • Loading branch information
guitargeek committed Apr 18, 2024
1 parent e19a6fc commit 7ec9637
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions interface/MultiDimFit.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,14 @@ class MultiDimFit : public FitterAlgoBase {
}
virtual void applyOptions(const boost::program_options::variables_map &vm) ;

friend class RandStartPt;
enum GridType { G1x1, G3x3 };

protected:
virtual bool runSpecific(RooWorkspace *w, RooStats::ModelConfig *mc_s, RooStats::ModelConfig *mc_b, RooAbsData &data, double &limit, double &limitErr, const double *hint);

enum Algo { None, Singles, Cross, Grid, RandomPoints, Contour2D, Stitch2D, FixedPoint, Impact };
static Algo algo_;

enum GridType { G1x1, G3x3 };
static GridType gridType_;

static std::vector<std::string> poi_;
Expand Down

0 comments on commit 7ec9637

Please sign in to comment.