16#ifndef RooFit_RooNLLVarNew_h
17#define RooFit_RooNLLVarNew_h
34 static constexpr const char *weightVarName =
"_weight";
60 double defaultErrorLevel()
const override {
return _statistic == Statistic::Chi2 ? 1.0 : 0.5; }
63 bool canComputeBatchWithCuda()
const override {
return _statistic == Statistic::NLL && !
_binnedL; }
64 bool isReducerNode()
const override {
return true; }
66 void setPrefix(std::string
const &prefix);
68 void applyWeightSquared(
bool flag)
override;
70 void enableOffsetting(
bool)
override;
82 RooAbsReal const &func()
const {
return *_func; }
90 RooAbsReal const *expectedEvents()
const {
return _expectedEvents ? &**_expectedEvents :
nullptr; }
96 double evaluate()
const override {
return _value; }
107 std::unique_ptr<RooTemplateProxy<RooAbsReal>> _expectedEvents;
108 std::unique_ptr<RooTemplateProxy<RooAbsPdf>>
_offsetPdf;
109 std::unique_ptr<RooTemplateProxy<RooAbsReal>>
_binVolumes;
110 std::unique_ptr<RooTemplateProxy<RooAbsReal>>
_weightErrLo;
111 std::unique_ptr<RooTemplateProxy<RooAbsReal>>
_weightErrHi;
121 std::vector<double> _binw;
#define ClassDefOverride(name, id)
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t result
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void on
Double_t(* Function)(Double_t)
The Kahan summation is a compensated summation algorithm, which significantly reduces numerical error...
Abstract base class for objects that represent a real value and implements functionality common to al...
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Mother of all ROOT objects.
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...
OffsetMode
For setting the offset mode with the Offset() command argument to RooAbsPdf::fitTo()
void evaluate(typename Architecture_t::Tensor_t &A, EActivationFunction f)
Apply the given activation function to each value in the given tensor A.