Skip to content

Conversation

@guitargeek
Copy link
Contributor

@guitargeek guitargeek commented Jan 25, 2023

This is a backport of all the relevant RooFit PRs that were recently merged to master to v6-28-00-patches (in the right order, to not have the commit history diverge too much).

  1. [RF] Increase version number of RooRealVar #12114
  2. [graf] Additional options for TPad::PlaceBox() method #12066
  3. [RF] Added offsetting to RooAbsPdf::fitTo #12001

Related to #11856.

guitargeek and others added 3 commits January 25, 2023 16:49
In ecd9863, the class version of the `RooAbsArg` class was
incremented.

As explained in root-project#8791, there are sometimes warnings in the IO of derived
classes if their version number is not increased as well.

Increasing the class version of RooRealVar indeed fixes this warning
that one gets right now when reading old workspaces:

```
Warning in <TStreamerInfo::BuildCheck>:
   The StreamerInfo of class RooRealVar read from file toyws/WS-VHbb-STXS_mu_toy_new.root
   has the same version (=8) as the active class but a different checksum.
   You should update the version to ClassDef(RooRealVar,9).
   Do not try to write objects with the current class definition,
   the files will not be readable.

Warning in <TStreamerInfo::CompareContent>: The following data member of
the on-file layout version 8 of class 'RooRealVar' differs from
the in-memory layout version 8:
   RooAbsBinning _binning; //
vs
   unique_ptr<RooAbsBinning,default_delete<RooAbsBinning> > _binning;
```
This is needed so that the new RooBrowser doesn't need to access the
private collision grid of the TPad. These additional options allow the
placement of the box with choice of priority over directions as well as
option to place within the margins of the pad.

Wanted for 6.28 release too!
The offsetting named argument to `RooAbsPdf::fitTo()`, is now also
considered when using the new modular test statistics.
@phsft-bot
Copy link

Starting build on ROOT-debian10-i386/soversion, ROOT-performance-centos8-multicore/cxx17, ROOT-ubuntu18.04/nortcxxmod, ROOT-ubuntu2004/python3, mac12/noimt, mac11/cxx14, windows10/cxx14
How to customize builds

@phsft-bot
Copy link

@guitargeek guitargeek changed the title V6 28 00 patches roofit backports 8 [v628][RF] Backports of RooFit PRs to v6-28-00-patches: Part 8 Jan 25, 2023
@guitargeek guitargeek merged commit 776667b into root-project:v6-28-00-patches Jan 26, 2023
@guitargeek guitargeek deleted the v6-28-00-patches_roofit_backports_8 branch January 26, 2023 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants