ElectronTagAndProbeFrame general changes for low mu

W T&P Implementation

Adding a new Event Selection cut
  • Add cut in EventSelectionW.cxx
    • If based on a variable like pT or mTW, include it at the top of the code in addition to the main part of the code as a WCuts addition
    • If this is the case, also include the variable in EventSelectionW.h (an example is m_minMET)
  • Add the cut in EventSelectionBase.h inside the WCuts namespace
  • Add the cut in EventSelectionBase.cxx inside the WCuts namespace

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:

  • $ setupATLAS
  • $ localSetupRucioClients
  • $ voms-proxy-init -voms atlas
  • $ 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". Sum with "hadd outputfiles.root inputfile1.root inputfile2.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 . (For WIso, use $ ProjectWiso.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 < r10 < r9 < r8 < r7 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r11 - 2020-07-21 - BenjaminRichardDavisPurcell
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Sandbox All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2021 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback