Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
HS3Variates.cxx File Reference
#include "HS3Document.h"
#include <RooFit/Detail/JSONInterface.h>
#include <algorithm>
#include <functional>
#include <iterator>
#include <map>
#include <set>
#include <string>
#include <utility>
#include <variant>
#include <vector>
Include dependency graph for HS3Variates.cxx:

Namespaces

namespace  RooFit
 The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or other types of arguments).
 
namespace  RooFit::HS3
 Types that represent an HS3 document.
 

Functions

std::map< std::string, std::set< std::string > > RooFit::HS3::bookkeepingColumns (HS3Document const &doc)
 The bookkeeping columns by combined data set: the declared ones (RooFitInternal::bookkeepingColumns), except for those that are a variate of a distribution after all.
 
std::set< std::string > RooFit::HS3::componentsWithData (HS3Document const &doc)
 The distributions that are components of a combined distribution of a likelihood, with a component of the paired combined data set that has entries: measurements of their own.
 
AuxiliaryConstraints RooFit::HS3::readAuxiliaryChannelsAsConstraints (ValidatedHS3Document &doc, bool asChannels)
 RooFit writes an array of constraints with the data set of its observed values as a component of the combined distribution of the model (RooJSONFactoryWSTool::Config::exportConstraintData), and marks it in misc.ROOT_internal.auxiliary_channels.
 
std::vector< std::string > RooFit::HS3::resolvePointData (ValidatedHS3Document &doc)
 A number given in-line in the "data" of a likelihood, or a point data set without axes, is the value of the single variate of the paired distribution (HS3 0.3).
 
std::map< std::string, std::set< std::string > > RooFit::HS3::sharedAxes (HS3Document const &doc)
 The axes that several components of a combined data set have, by combined data set.
 
std::vector< std::string > RooFit::HS3::sharedVariates (HS3Document const &doc)
 Describes each variate that is shared although it must be distinct: by the terms of a likelihood, by the components of a combined distribution that no likelihood lists (the others are checked through the likelihood), or by the components of a combined data set, except for bookkeeping columns.
 
std::vector< std::string > RooFit::HS3::unlistedConstraints (HS3Document const &doc, std::vector< std::string > *warnings=nullptr)
 In HS3 0.3 (HS3 PR #154, decision on HS3 #156), the "constraints" of a HistFactory modifier add no term to a likelihood: every likelihood that contains the channel must list each named distribution exactly once, in "distributions" or "aux_distributions", or as a factor of a product_dist or a component of a combined_dist reached from them.
 
std::set< std::string > RooFit::HS3::variatesOf (HS3Document const &doc, Likelihood const &likelihood)
 The variates of the "distributions" of a likelihood, which it pairs with data, with the columns of its combined distributions.
 
std::set< std::string > RooFit::HS3::variatesOf (HS3Document const &doc, std::string const &distribution)
 The variates of the distribution distribution, without the columns of a combined distribution.
 
std::map< std::string, std::set< std::string > > RooFit::HS3::writeLikelihoodTermsOnce (HS3Document const &doc, Detail::JSONNode &root)
 Writes each term of the likelihoods once: a factor of a product that is a term of the likelihood as well would enter it twice, so it is removed from the "factors" of the product in root, the JSON tree that the document is written to.
 

Variable Documentation

◆ _byName

std::map<std::string, Distribution const *> _byName
private

Definition at line 267 of file HS3Variates.cxx.

◆ _doc

HS3Document const& _doc
private

Definition at line 266 of file HS3Variates.cxx.