ElectronTagAndProbeFrame general changes for low mu

Steps to implement HistMaker MomentumCorrection

Low mu information

  • Main dataset: Data18_13TeV - Periods G4 and select runs in J. 146.6 pb^-1. See LowMuWZAnalyses
  • Important triggers:
    • HLT_e15_lhloose_nod0_L1EM12 (electron trigger)
    • HLT_xe35, HLT_xe35_tc_lcw (MET triggers)
    • HLT_e15_etcut_trkcut_xe30noL1 (WTP trigger, only in Data)

Grid commands

Running on grid:

python ZIsoRun.py --dir grid_Data18Zee_13TeV --datasetfile SFGridFiles --datasets Rel21_EGAM5_2018_lowmu_Zee --config-file ZIsoConfigs --configs Ben_data18_mc16_EGAM5 -c TagAndProbeFrame /config/lowMu.config --overwrite --selection --grid --gridSuffix ${date}_Zee_data18_13TeV

To rerun a failed job, rerun the grid command with the same grid suffix but with a different T&P submission directory

Rerunning/killing failed grid jobs with pBook:

>> pbook

>> retry(jobID)

>> kill(jobID)

Downloading from the grid: rucio download filename.gridsuffix_hist/ (in Output containters on bigpanda.cern.ch) --> downloads folder of same name containing all raw rootfiles from the job

Working with raw rootfiles

After downloading from the grid:

  1. Sum all the data files into "hist-data*.root". Do the same for all the mc files "hist-mc*.root".
  2. Rerun the same python ZIsoRun.py command (or WIsoRun.py) except remove all the grid flags and replace --selection with --calculate (& --ctlplots & --eff & --TemplateFit). This creates merged-hist*.root files from the hist*.root rootfiles, and also makes the scalefactors.root file inside the output/ directory.
  3. Get 1D projections from the 2D histograms in scalefactors.root by using Xiaowen's projection code: python ProjectZiso _Xiaowen.py -i /your/scalefactors.root -o projections.root
  4. Get Control Plots from scalefactors.root file, efficiencies and SFs from projections.root file.
  5. Use custom code inside WTP/Plotting to make nice CPs, SF plots and efficiency plots.
-- BenjaminRichardDavisPurcell - 2020-01-24
Edit | Attach | Watch | Print version | History: r11 | r9 < r8 < r7 < r6 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r7 - 2020-05-01 - BenjaminRichardDavisPurcell
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Sandbox All webs login

  • Edit
  • Attach
This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback