Skip to content

Conversation

@giorgiopizz
Copy link
Owner

Main changes:

  • support for 2D histogram that will be automatically unrolled by runner.py. Correct handling of folding (for both bin content and sumw2)
  • support for nuisances of type weight_rm and weight_envelope. Taking the QCDscale as an example for weight_envelope varied histograms will be created for each LHEScaleWeight specified (so 6 histograms). mkShapesRDF -o 2 will hadd single histograms and the envelope will be computed right after that, storing only the final envelope up and down
  • hadd2 is included with this PR to support multithreaded hadd when using indirect files. hadd2 -j 10 @fileList.txt will correctly work now. hadd2 is compiled with install.sh. The path containing its binary will be added to the $PATH, namely utils/bin.
  • now nuisances that specify the samples dictionary can have keys that will be fnmatched to subsamples keys (e.g. DY* will match DY, DY_hardJets and DY_PUJets)
  • Including @mlizzo PR

mlizzo and others added 2 commits November 10, 2023 10:41
#9)

* added condor queue selection and normalErrs, fixed hadd multithreading

* removed submodule dependency and implemented work-around to arg_max bash limit

* hadd reads directly from .txt file

* fixing bash limit for real this time

* forgot to add queue option to submit command, otherwise it takes the default value
else:
variations = (float(values), 2.0 - float(values))
if float(values) < 1e-8:
print("lnN cannot be zero! Check nuisance", nuisacen, file=sys.stderr)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess it's a typo: nuisacen -> nuisance

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank for spotting that!

cling::DynamicLibraryManager::loadLibrary(): libGLU.so.1: cannot open shared object file: No such file or directory
Error in <TNetXNGFile::Close>:
Warning in <TChain::AddFile>: Adding tree with no entries from file
"""
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we can also add the warning below among strings that are classified as "normal errors"
Info in <ACLiC>: unmodified script has already been compiled and loaded

elif isinstance(h, ROOT.TH1I):
dtype = np.int
else:
print("Histogram of type", h, "is not supperted", file=sys.stderr)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

supperted -> supported (ignore this if you don't have time to update it and sorry if I am too nitpicking)

+ _h.GetBinContent(lastBin + 1),

_h2 = ROOT.TH1D(
new_name, _h.GetName(), nx * ny, 1, nx * ny
Copy link

@mlizzo mlizzo Nov 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't the unrolled TH1D histogram have nx * ny bins from 1 to nx * ny + 1 ? I think there's one bin less because of the missing + 1 in the last argument, but please correct me if I misunderstood

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants