Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooHistConstraint.h
Go to the documentation of this file.
1/*
2 * Project: RooFit
3 *
4 * Copyright (c) 2023, CERN
5 *
6 * Redistribution and use in source and binary forms,
7 * with or without modification, are permitted according to the terms
8 * listed in LICENSE (http://roofit.sourceforge.net/license.txt)
9 */
10
11#ifndef ROOHISTCONSTRAINT
12#define ROOHISTCONSTRAINT
13
14#include <RooAbsPdf.h>
15#include <RooListProxy.h>
16
18public:
20 RooHistConstraint(const char *name, const char *title, const RooArgSet& phfSet, int threshold=1000000);
21 RooHistConstraint(const RooHistConstraint& other, const char* name=nullptr) ;
22 TObject* clone(const char* newname) const override { return new RooHistConstraint(*this,newname); }
23
24 double getLogVal(const RooArgSet* set=nullptr) const override ;
25
26 /// It makes only sense to use the RooHistConstraint when normalized over the
27 /// set of all gammas, in which case it is self-normalized because the used
28 /// TMath::Poisson function is normalized.
29 bool selfNormalized() const override { return true; }
30
31protected:
32
35 bool _relParam ;
36
37 double evaluate() const override ;
38
39private:
40
42};
43
44#endif
#define ClassDefOverride(name, id)
Definition Rtypes.h:346
char name[80]
Definition TGX11.cxx:110
Abstract interface for all probability density functions.
Definition RooAbsPdf.h:40
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition RooArgSet.h:24
The RooHistConstraint implements constraint terms for a binned PDF with statistical uncertainties.
TObject * clone(const char *newname) const override
double getLogVal(const RooArgSet *set=nullptr) const override
Return the log of the current value with given normalization An error message is printed if the argum...
bool selfNormalized() const override
It makes only sense to use the RooHistConstraint when normalized over the set of all gammas,...
double evaluate() const override
Evaluate this PDF / function / constant. Needs to be overridden by all derived classes.
Mother of all ROOT objects.
Definition TObject.h:41