File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -560,7 +560,16 @@ RooCmdArg EventRange(Int_t nStart, Int_t nStop)
560560
561561// RooAbsPdf::fitTo arguments
562562
563- EvalBackend::EvalBackend (EvalBackend::Value value) : RooCmdArg{" EvalBackend" , static_cast <int >(value)} {}
563+ EvalBackend::EvalBackend (EvalBackend::Value value) : RooCmdArg{" EvalBackend" , static_cast <int >(value)}
564+ {
565+ #ifndef ROOFIT_CLAD
566+ if (value == Value::Codegen || value == Value::CodegenNoGrad) {
567+ oocoutE (nullptr , InputArguments)
568+ << " RooFit was built without clad. Codegen backends are unavailable. Falling back to default.\n " ;
569+ setInt (0 , static_cast <int >(defaultValue ()));
570+ }
571+ #endif
572+ }
564573EvalBackend::EvalBackend (std::string const &name) : EvalBackend{toValue (name)} {}
565574EvalBackend::Value EvalBackend::toValue (std::string const &name)
566575{
You can’t perform that action at this time.
0 commit comments