16#ifndef ROO_CONSTRAINT_SUM
17#define ROO_CONSTRAINT_SUM
39 std::string
const&
name,
45 const char* globalObservablesTag,
46 bool takeGlobalObservablesFromData,
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
#define ClassDefOverride(name, id)
RooAbsArg is the common abstract base class for objects that represent a value and a "shape" in RooFi...
RooAbsData is the common abstract base class for binned and unbinned datasets.
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
RooArgList is a container object that can hold multiple RooAbsArg objects.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
RooConstraintSum calculates the sum of the -(log) likelihoods of a set of RooAbsPfs that represent co...
Double_t evaluate() const override
Return sum of -log of constraint p.d.f.s.
bool setData(RooAbsData &data, bool cloneData=true) override
Replace the variables in this RooConstraintSum with the global observables in the dataset if they mat...
bool setData(RooAbsData const &data, bool cloneData=true)
Replace the variables in this RooConstraintSum with the global observables in the dataset if they mat...
virtual TObject * clone(const char *newname) const override
RooListProxy _set1
Set of constraint terms.
void computeBatch(cudaStream_t *, double *output, size_t size, RooFit::Detail::DataMap const &) const override
Base function for computing multiple values of a RooAbsReal.
static std::unique_ptr< RooAbsReal > createConstraintTerm(std::string const &name, RooAbsPdf const &pdf, RooAbsData const &data, RooArgSet const *constrainedParameters, RooArgSet const *externalConstraints, RooArgSet const *globalObservables, const char *globalObservablesTag, bool takeGlobalObservablesFromData, RooWorkspace *workspace)
Create the parameter constraint sum to add to the negative log-likelihood.
RooArgSet _paramSet
Set of parameters to which constraints apply.
const RooArgList & list()
std::unique_ptr< RooArgSet > fillNormSetForServer(RooArgSet const &normSet, RooAbsArg const &server) const override
Fills a RooArgSet to be used as the normalization set for a server, given a normalization set for thi...
const bool _takeGlobalObservablesFromData
If the global observable values are taken from data.
RooListProxy is the concrete proxy for RooArgList objects.
RooRealVar represents a variable that can be changed from the outside.
The RooWorkspace is a persistable container for RooFit projects.
Mother of all ROOT objects.
static void output(int code)