-
Notifications
You must be signed in to change notification settings - Fork 254
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
mcFlavour NTupleVariable is the same as partonFlavour #204
Comments
emanueledimarco
pushed a commit
to emanueledimarco/cmgtools-lite
that referenced
this issue
May 28, 2018
…r tools (CERN-PH-CMG#204) * fixes to cope with unusual situation when settign Y range * fixes, avoid unnecessary warnings when wrong lepton flavour is evaluated * fix typo * use dedicated histogram name to avoid clashes in some tests * fix * removing comments * polishing * add function to multiply FR weight by a correction factor (was for some tests, but the function could come in handy) * add option to open file in update mode (useful to add one or more distributions (the txt files copied in output directory will still be overwritten in same output flder is given) * add option to make --max-entries affect only MC (for tests one might want to run on few events, but data is not easily scaled to a given luminosity if running on N events) * updates on macros and personal txt files * load functions to apply json to data * updates in the fr function * adding options, fixing again the y axis range, modidfy settings of legend (semitransparent) * updates and improvements * several improvements to manage fine binning in FR * adding optional parameters to select some samples with grep and in case change the name assigned to the link * improvements: make finely binned FR * use adequate FR file * updates * ultimate FR file with granular eta binning (+/- side separate): inside there are the smoothed and unsmoothed FR, the former with fit up to 60 or 50 (*NarrowerRange) * json from Top PAG to have L1 threshold below HLT_Ele27_WPTight_Gsf * it has the functions to filter data with json * formatted json made with myFormatJson.py and used by jsonManager.cc for electron channel * script to format a json file to be used inside jsonManager.cc * uncommenting * commit before merging from central * test to developing xsec measurement * new: W+ and W- (no helicity) for xsec * new: mca for xsec * updating FR variation files (only FR is varied, PR is kept constant) * adding electron scale and fakes systematics * adding options, adapting it to run differential cross-section as well * save template binning in same folder as for cards * adding options, generalization to allow to run with TH2 * add 2D histograms for diffXsec (mainly for efficiency) * developing datacards production for differential cross section * updates * rewriting as the original, put diff xsec related things in another script * new, was meant to substitute make_cards_el.py letting user choose between helicity and diffXsec, now it is standalone * new script to create shapes.root file from an existing one, summing all the signal templates * new script to merge datacards for diff.xsec (to be completed) * fix to add Up and Down variations * for diffXsec: used to create datacards from shape in root file, it says the shape variations and which process they apply to * fixes and checks * new script to make datacards from histograms in shape.root file * fix datacard * add groups and other fixes * plotting relative uncertainty on FR parameters for data * new script to manage fit for diffXsec * new script to make likelihood scan for diffXsec * skip datacards with 0 observed events * improve function to get eta/pt bins given global bin * improving the scripts with additional outputs for diagnostics and options * adding scripts with functions used for plots * updates, improvements and fixes * moving files to new dedicated folder * fixes * fixes * fixes * improve fit to scan and other fixes * fixes and updates * simple script to dump content of root file * small fixes * small fixes * setup for diffXsec measurement: fixes and updates
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mcFlavour NTupleVariable is the same as partonFlavour in ntupleTypes.py:
https://github.com/CERN-PH-CMG/cmgtools-lite/blob/80X/TTHAnalysis/python/analyzers/ntupleTypes.py#L180
Similarly in CMSSW Heppy PhysicsTools in autophobj.py:
https://github.com/cms-sw/cmssw/blob/master/PhysicsTools/Heppy/python/analyzers/objects/autophobj.py#L186
as well as several other 'NTupleTypes' files.
The text was updated successfully, but these errors were encountered: