-
Notifications
You must be signed in to change notification settings - Fork 24
[SHAPE] 2D histogram support, new hadd, support nuisances of type weight_rms and weight_envelope #17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
#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
… for subsamples. New hadd
| else: | ||
| variations = (float(values), 2.0 - float(values)) | ||
| if float(values) < 1e-8: | ||
| print("lnN cannot be zero! Check nuisance", nuisacen, file=sys.stderr) |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 | ||
| """ |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
Main changes:
runner.py. Correct handling of folding (for both bin content and sumw2)weight_rmandweight_envelope. Taking the QCDscale as an example forweight_envelopevaried histograms will be created for eachLHEScaleWeightspecified (so 6 histograms).mkShapesRDF -o 2willhaddsingle histograms and the envelope will be computed right after that, storing only the final envelope up and downhadd2is included with this PR to support multithreaded hadd when using indirect files.hadd2 -j 10 @fileList.txtwill correctly work now.hadd2is compiled withinstall.sh. The path containing its binary will be added to the $PATH, namelyutils/bin.fnmatchedto subsamples keys (e.g.DY*will matchDY,DY_hardJetsandDY_PUJets)