Skip to content

Commit

Permalink
Revert "Minuit2::FCNBase: fix for root 6.32"
Browse files Browse the repository at this point in the history
This reverts commit 20de7df.
  • Loading branch information
guitargeek committed Sep 20, 2024
1 parent a18ec53 commit 141d125
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion RecoVertex/BeamSpotProducer/interface/BSpdfsFcn.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ________________________________________________________________**/
#include <iostream>
#include <string>
#include <RVersion.h>
#if ROOT_VERSION_CODE >= ROOT_VERSION(6, 33, 1)
#if ROOT_VERSION_CODE >= ROOT_VERSION(6, 32, 4)
#include <span>
#endif

Expand Down
2 changes: 1 addition & 1 deletion RecoVertex/BeamSpotProducer/interface/FcnBeamSpotFitPV.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class FcnBeamSpotFitPV : public ROOT::Minuit2::FCNBase {
// deltaFcn for definition of the uncertainty
double Up() const override { return errorDef_; }
// -2lnL value based on vector of parameters
#if ROOT_VERSION_CODE >= ROOT_VERSION(6, 33, 1)
#if ROOT_VERSION_CODE >= ROOT_VERSION(6, 32, 4)
double operator()(std::span<const double>) const override;
#else
double operator()(const std::vector<double>&) const override;
Expand Down
8 changes: 4 additions & 4 deletions RecoVertex/BeamSpotProducer/src/BSpdfsFcn.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ ________________________________________________________________**/
#endif

//______________________________________________________________________
#if ROOT_VERSION_CODE >= ROOT_VERSION(6, 33, 1)
#if ROOT_VERSION_CODE >= ROOT_VERSION(6, 32, 4)
double BSpdfsFcn::PDFGauss_d(double z, double d, double sigmad, double phi, std::span<const double> parms) const {
#else
double BSpdfsFcn::PDFGauss_d(double z, double d, double sigmad, double phi, const std::vector<double>& parms) const {
Expand All @@ -42,7 +42,7 @@ double BSpdfsFcn::PDFGauss_d(double z, double d, double sigmad, double phi, cons
}

//______________________________________________________________________
#if ROOT_VERSION_CODE >= ROOT_VERSION(6, 33, 1)
#if ROOT_VERSION_CODE >= ROOT_VERSION(6, 32, 4)
double BSpdfsFcn::PDFGauss_d_resolution(double z, double d, double phi, double pt, std::span<const double> parms) const {
#else
double BSpdfsFcn::PDFGauss_d_resolution(
Expand All @@ -68,7 +68,7 @@ double BSpdfsFcn::PDFGauss_d_resolution(
}

//______________________________________________________________________
#if ROOT_VERSION_CODE >= ROOT_VERSION(6, 33, 1)
#if ROOT_VERSION_CODE >= ROOT_VERSION(6, 32, 4)
double BSpdfsFcn::PDFGauss_z(double z, double sigmaz, std::span<const double> parms) const {
#else
double BSpdfsFcn::PDFGauss_z(double z, double sigmaz, const std::vector<double>& parms) const {
Expand All @@ -89,7 +89,7 @@ double BSpdfsFcn::PDFGauss_z(double z, double sigmaz, const std::vector<double>&
}

//______________________________________________________________________
#if ROOT_VERSION_CODE >= ROOT_VERSION(6, 33, 1)
#if ROOT_VERSION_CODE >= ROOT_VERSION(6, 32, 4)
double BSpdfsFcn::operator()(const std::span<const double> params) const {
#else
double BSpdfsFcn::operator()(const std::vector<double>& params) const {
Expand Down

0 comments on commit 141d125

Please sign in to comment.