TWiki> Main Web>ArizonaPhysicsAnalysis (revision 72)EditAttachPDF

Introduction

DPDAnalysis is a simple analysis framework based on ROOT. It can be used to analyze ATLAS D3PD data (ROOT TTree data format).

Package Organization

Package is lightweight. Consists of a core module which forms the basis on which users can develop and maintain their package(s). core provides a way of interfacing multiple TTree objects (found in the D3PD's) and accessing the data. core also provides analysis skeleton. All user modules are derived from DPDAnalysis base class. The user module typically consists of a Begin, ProcessEvent, and End methods. Typically the user may want to book histograms, configure the analysis in Begin. Begin is called once per user-module before event-loop execution.

Event Loop

Event loop is implemented in Process method and called for every event. Since arbitrary number of TTrees are supported, the event loop usually runs over a TTree (or TChain) that has the most number of entries. For all the other TTrees, the event access is synchronized until they run out of entries. Once they do, the last entry is returned for the remainder of the event-loop until processing TTree with most number of entries completes.

Data Preparation

  • TOP_NTUP (D3PD's) produced using TopInputsD3PDMaker are slimmed using the slimmer.
  • slimmer.py.txt: script to slim D3PD's and write out a smaller ROOT-tuple
  • More info about slimming can be found here.
  • A list of branches required for top analysis is in PhysicsBranches.txt
  • Here's an example script to run the slimmer on grid. Modify according to requirements.
prun --athenaTag=16.0.1 --exec "./slimmer.py %IN -f PhysicsBranches.txt -o myTopD4PD.root" \
--inDS user.wbell.mc09_7TeV.108343.st_schan_enu_McAtNlo_Jimmy.merge.NTUP_TOP.e534_s765_s767_r1302_r1306_tp15_6_13_3_2_0001/ \
--outDS user.venkat.mc09_7TeV.108343.st_schan_enu_McAtNlo_Jimmy.D4PD.2010.11.16.v01 --nGBPerJob=6 \
--outputs "my*.root*"
  • Note: test locally before submitting the jobs. I have a sample file to test (on pcazNN @ CERN)
/raid01/venkat/dataset/user.wbell.mc09_7TeV.108346.st_Wt_McAtNlo_Jimmy.merge.NTUP_TOP.e624_s765_s767_r1302_r1306_tp15_6_13_3_2_0001.101028222214/user.wbell.003248.EXT0._00003.NTUP_TOP.root
  • To run on this file, use the following commands ln -s /raid01/venkat/dataset/user.wbell.mc09_7TeV.108346.st_Wt_McAtNlo_Jimmy.merge.NTUP_TOP.e624_s765_s767_r1302_r1306_tp15_6_13_3_2_0001.101028222214/user.wbell.003248.EXT0._00003.NTUP_TOP.root ./slimmer.py user.wbell.003248.EXT0._00003.NTUP_TOP.root -f PhysicsBranches.txt -o output.root

Getting Started

Checkout packages from SVN repository

  • You can either setup CMT or a suitable ATLAS software release/cache (on a SLC5, x64 machine)
  • setup ATLAS release in the usual way
    cd ~/cmthome/
    source setup -tag=15.6.12.4,AtlasProduction,slc5,gcc43,mydpd
    Sample requirements file for setting up and compiling DPDAnalysis
  • Check out packages from SVN repository
    export SVNROOT= $SVNGRP
    cmt co Institutes/Arizona/DPDAnalysis/core
    cmt co Institutes/Arizona/DPDAnalysis/util
    cmt co Institutes/Arizona/DPDAnalysis/topuser
    export SVNROOT= $SVNOFF
    cmt co DataQuality/GoodRunsLists
    cmt co Reconstruction/Jet/JetUncertainties
    Sample log-file of SVN checkout using CMT.

Red led Make sure you have SVN access to checkout the packages. You must have an AFS account for this step.
Red led If your afs username doesn't match your login name then you have to follow these additional steps
export SVNGRP=svn+ssh://yourafsusername@svn.cern.ch/reps/atlasgrp
export SVNOFF=svn+ssh://yourafsusername@svn.cern.ch/reps/atlasoff
Green led If you find it tedious to enter your password when prompted (multiple times) afsuser@svn.cern.ch's password you may want to obtain and cache your credentials using kinit $USER@CERN.CH and then checkout the above packages.
Tip, idea Green led One may use the checkout.sh script to checkout packages from SVN

Compile all packages

  • if you are using ATLAS setup, its easy to compile. Just cd into cmt directory in user package and compile
    cd $TestArea/Institutes/Arizona/DPDAnalysis/topuser/cmt/ ; cmt bro make; cd -

Sample log-file of compiling using CMT

Before running the program

  • Create a link to JESUncertainty.root Warning, important Not required if you are using topuser-00-02-02 or later. Refer to the list tags below
    cd $TestArea; ln -s Reconstruction/Jet/JetUncertainties/share/JESUncertainty.root
    See JESUncertaintyProvider for details

  • If running on data edit
    =$TestArea/Institutes/Arizona/DPDAnalysis/topuser/config/grl.config= and modify the following line and specify a full path to the XML good runs list file. This step is not necessary if running on MC. You can find predefined grl's here GRL Lists
         grl.GoodRunsXML: Institutes/Arizona/DPDAnalysis/topuser/config/mygoodruns.xml
        
  • If running on data edit
    =$TestArea/Institutes/Arizona/DPDAnalysis/topuser/config/topanalysis.config= and modify the following Set false for data, and true for MC
         top.IsSimulation: true
        
  • Make a file list
    ls /afs/cern.ch/user/v/venkat/public/TOP/D3PD/TopInputs.D3PD.root > $TestArea/mytopd3pd.mc.list

Running the program

Locally

cd $TestArea
runDPD.py -f  mytopd3pd.mc.list -c Institutes/Arizona/DPDAnalysis/topuser/config/topuser.config
For help on command line options runDPD.py --help

On the grid using PANDA run

for prun (Version: 0.2.96 or higher)

  • setup your testarea. same area you are using to test topuser locally will suffice for grid submission
  • setup panda. see here for for setup
  • check to make sure you are using a recent prun version using: prun --version
  • create a link to runDPD.py in your testarea
    ln -s Institutes/Arizona/DPDAnalysis/core/share/runDPD.py runDPD.py
  • compile all packages using cmt (must do before job submission)
    cd Institutes/Arizona/DPDAnalysis/topuser/cmt; cmt bro make; cd -;
  • submit job using prun (modify your user name and --inDS and --outDS accordingy)
       prun --useAthenaPackages \
       --match "*D3PD*root*" --exec "echo %IN | runDPD.py -g -c ./Institutes/Arizona/DPDAnalysis/topuser/config/topuser.config" \
       --inDS your.input.dataset.container.here/ \
       --outDS user.username.output.dataset.container.here \
       --outputs "my*.root"
       
  • for a list of all available options for prun you can do prun --help and use them with the above shown above.

instructions for prun (< 0.2.96)

You need to setup PANDA. You also need to clean the $TESTAREA

cd $TestArea
find -name $CMTCONFIG | awk '{print "rm -rf " $1}'
this removes the i686 directories

rm -rf InstallArea
this removes the InstallArea

to submit to the grid

cp /raid/johns/testarea/DPDAnalysis/15.6.10.4/runGrid.sh .
cp /raid/johns/testarea/DPDAnalysis/15.6.10.4/gridsetup.sh .
at some point, these files should be placed in the core/share area in SVN

edit runGrid.sh as you wish

./runGrid.sh 21 ANALY_BNL_ATLAS_1
the 21 gets appended to your job name and the ANALY_BNL_ATLAS_1 is the site

Output

A ROOT file containing histograms and ntuple of topological variables. See output file contents.

Merging output

Merge functionality is provided. Merging histograms and ntuples is accomplished using the following commands. Assuming one wants to merge myoutput.1.root and myoutput.2.root, the following commands are equivalent and yield a merged_output.root. Merging works for arbitrary number of input files. By default, only histograms are merged. See merge.config for options.

Locally

echo myoutput.1.root myoutput.2.root | runDPD.py -m
ls myoutput*.root | runDPD.py -m
ls -c1 myoutput*.root > files.list; runDPD.py -m -f files.list

On the grid using PANDA run

for prun (Version: 0.2.96 or higher)

   prun --useAthenaPackages \
   --match "*D3PD*root*" --exec "echo %IN | runDPD.py -m -c ./Institutes/Arizona/DPDAnalysis/core/ROOT/merge.config" \
   --inDS your.input.dataset.container.here/ \
   --outDS user.username.output.dataset.container.here \
   --outputs "merged*.root"
   

Dataset

Data

$ Period F $ $ Period F $
user.Mario.group.phys-top.D2PD_rel15.6.11.3.1_data10_7TeV.periodF.physics_Egamma.D2AODM_TOPEL.D3PD.2010.10.18.v05/
user.Mario.group.phys-top.D2PD_rel15.6.11.3.1_data10_7TeV.periodF.physics_JetTauEtmiss.D2AODM_TOPEL.D3PD.2010.10.18.v05/

$ Period E $ $ Period E $

$ Period D $ $ Period D $

$ Period C $ $ Period C $

$ Period B $ $ Period B $

$ Period A $ $ Period A $

Monte Carlo

$ validation $ $ validation $
/raid/venkat/dataset/data/top/TopInputs.D3PD.v5.root

$ Z^{\prime}\rightarrow t\bar{t} $ $ Z^{\prime}\rightarrow t\bar{t} $
user.venkat.mc09_7TeV.105590.Pythia_Zprime_tt500.merge.AOD.e534_s765_s767_r1302_r1306.D3PD.2010.10.14.v05/
user.venkat.mc09_7TeV.105591.Pythia_Zprime_tt700.merge.AOD.e534_s765_s767_r1302_r1306.D3PD.2010.10.14.v05/
user.venkat.mc09_7TeV.105592.Pythia_Zprime_tt1000.merge.AOD.e534_s765_s767_r1302_r1306.D3PD.2010.10.14.v05/
user.venkat.mc09_7TeV.105594.Pythia_Zprime_tt1600.merge.AOD.e534_s765_s767_r1302_r1306.D3PD.2010.10.14.v05/
user.venkat.mc09_7TeV.105595.Pythia_Zprime_tt2000.merge.AOD.e534_s765_s767_r1302_r1306.D3PD.2010.10.14.v05/
user.venkat.mc09_7TeV.105597.Pythia_Zprime_tt3000.merge.AOD.e534_s765_s767_r1302_r1306.D3PD.2010.10.14.v05/

$ ISR / FSR $ $ ISR / FSR $
user.Mario.mc09_7TeV.117255.AcerMCttbar_isr_down.merge.AOD.e552_s765_s767_r1302_r1306.D3PD.2010.10.27.v05/
user.Mario.mc09_7TeV.117256.AcerMCttbar_isr_up.merge.AOD.e552_s765_s767_r1302_r1306.D3PD.2010.10.27.v05/
user.Mario.mc09_7TeV.117257.AcerMCttbar_fsr_down.merge.AOD.e552_s765_s767_r1302_r1306.D3PD.2010.10.27.v05/
user.Mario.mc09_7TeV.117258.AcerMCttbar_fsr_up.merge.AOD.e552_s765_s767_r1302_r1306.D3PD.2010.10.27.v05/
user.Mario.mc09_7TeV.117260.AcerMCttbar_isr_up_fsr_up.merge.AOD.e590_s765_s767_r1302_r1306.D3PD.2010.10.27.v05/
user.Mario.mc09_7TeV.117259.AcerMCttbar_isr_down_fsr_down.merge.AOD.e590_s765_s767_r1302_r1306.D3PD.2010.10.27.v05/

$ QCD $ $ QCD $

$ t\bar{t} $ $ t\bar{t} $

$W(\ell \nu) + jets $ $W(\ell \nu) + jets $
user.kjohns.mc09_7TeV.107680.AlpgenJimmyWenuNp0_pt20.merge.AOD.e511_s765_s767_r1302_r1306.D3PD.2010.10.17.v05/
user.kjohns.mc09_7TeV.107681.AlpgenJimmyWenuNp1_pt20.merge.AOD.e511_s765_s767_r1302_r1306.D3PD.2010.10.17.v05/
user.kjohns.mc09_7TeV.107682.AlpgenJimmyWenuNp2_pt20.merge.AOD.e511_s765_s767_r1302_r1306.D3PD.2010.10.17.v05/
user.venkat.mc09_7TeV.107683.AlpgenJimmyWenuNp3_pt20.merge.AOD.e511_s765_s767_r1302_r1306.D3PD.2010.10.17.v05/
user.kjohns.mc09_7TeV.107684.AlpgenJimmyWenuNp4_pt20.merge.AOD.e511_s765_s767_r1302_r1306.D3PD.2010.10.17.v05/
user.kjohns.mc09_7TeV.107685.AlpgenJimmyWenuNp5_pt20.merge.AOD.e511_s765_s767_r1302_r1306.D3PD.2010.10.17.v05/
user.kjohns.mc09_7TeV.107690.AlpgenJimmyWmunuNp0_pt20.merge.AOD.e511_s765_s767_r1302_r1306.D3PD.2010.10.17.v05/
user.kjohns.mc09_7TeV.107691.AlpgenJimmyWmunuNp1_pt20.merge.AOD.e511_s765_s767_r1302_r1306.D3PD.2010.10.17.v05/
user.kjohns.mc09_7TeV.107692.AlpgenJimmyWmunuNp2_pt20.merge.AOD.e511_s765_s767_r1302_r1306.D3PD.2010.10.17.v05/
user.kjohns.mc09_7TeV.107693.AlpgenJimmyWmunuNp3_pt20.merge.AOD.e511_s765_s767_r1302_r1306.D3PD.2010.10.17.v05/
user.kjohns.mc09_7TeV.107694.AlpgenJimmyWmunuNp4_pt20.merge.AOD.e511_s765_s767_r1302_r1306.D3PD.2010.10.17.v05/
user.kjohns.mc09_7TeV.107695.AlpgenJimmyWmunuNp5_pt20.merge.AOD.e511_s765_s767_r1302_r1306.D3PD.2010.10.17.v05/
user.kjohns.mc09_7TeV.107700.AlpgenJimmyWtaunuNp0_pt20.merge.AOD.e511_s765_s767_r1302_r1306.D3PD.2010.10.17.v05/
user.kjohns.mc09_7TeV.107701.AlpgenJimmyWtaunuNp1_pt20.merge.AOD.e511_s765_s767_r1302_r1306.D3PD.2010.10.17.v05/
user.venkat.mc09_7TeV.107702.AlpgenJimmyWtaunuNp2_pt20.merge.AOD.e511_s765_s767_r1302_r1306.D3PD.2010.10.17.v05/
user.kjohns.mc09_7TeV.107703.AlpgenJimmyWtaunuNp3_pt20.merge.AOD.e511_s765_s767_r1302_r1306.D3PD.2010.10.17.v05/
user.kjohns.mc09_7TeV.107704.AlpgenJimmyWtaunuNp4_pt20.merge.AOD.e511_s765_s767_r1302_r1306.D3PD.2010.10.17.v05/
user.kjohns.mc09_7TeV.107705.AlpgenJimmyWtaunuNp5_pt20.merge.AOD.e511_s765_s767_r1302_r1306.D3PD.2010.10.17.v05/

$Z(\ell \ell) + jets $ $Z(\ell \ell) + jets $
user.venkat.mc09_7TeV.107650.AlpgenJimmyZeeNp0_pt20.merge.AOD.e529_s765_s767_r1302_r1306.D3PD.2010.10.17.v05/
user.venkat.mc09_7TeV.107651.AlpgenJimmyZeeNp1_pt20.merge.AOD.e529_s765_s767_r1302_r1306.D3PD.2010.10.17.v05/
user.venkat.mc09_7TeV.107652.AlpgenJimmyZeeNp2_pt20.merge.AOD.e529_s765_s767_r1302_r1306.D3PD.2010.10.17.v05/
user.venkat.mc09_7TeV.107653.AlpgenJimmyZeeNp3_pt20.merge.AOD.e529_s765_s767_r1302_r1306.D3PD.2010.10.17.v05/
user.venkat.mc09_7TeV.107654.AlpgenJimmyZeeNp4_pt20.merge.AOD.e529_s765_s767_r1302_r1306.D3PD.2010.10.17.v05/
user.venkat.mc09_7TeV.107655.AlpgenJimmyZeeNp5_pt20.merge.AOD.e529_s765_s767_r1302_r1306.D3PD.2010.10.17.v05/
user.venkat.mc09_7TeV.107660.AlpgenJimmyZmumuNp0_pt20.merge.AOD.e529_s765_s767_r1302_r1306.D3PD.2010.10.17.v05/
user.kjohns.mc09_7TeV.107661.AlpgenJimmyZmumuNp1_pt20.merge.AOD.e529_s765_s767_r1302_r1306.D3PD.2010.10.17.v05/
user.venkat.mc09_7TeV.107662.AlpgenJimmyZmumuNp2_pt20.merge.AOD.e529_s765_s767_r1302_r1306.D3PD.2010.10.17.v05/
user.venkat.mc09_7TeV.107663.AlpgenJimmyZmumuNp3_pt20.merge.AOD.e529_s765_s767_r1302_r1306.D3PD.2010.10.17.v05/
user.venkat.mc09_7TeV.107664.AlpgenJimmyZmumuNp4_pt20.merge.AOD.e529_s765_s767_r1302_r1306.D3PD.2010.10.17.v05/
user.venkat.mc09_7TeV.107665.AlpgenJimmyZmumuNp5_pt20.merge.AOD.e529_s765_s767_r1302_r1306.D3PD.2010.10.17.v05/
user.kjohns.mc09_7TeV.107670.AlpgenJimmyZtautauNp0_pt20.merge.AOD.e529_s765_s767_r1302_r1306.D3PD.2010.10.17.v05/
user.kjohns.mc09_7TeV.107671.AlpgenJimmyZtautauNp1_pt20.merge.AOD.e529_s765_s767_r1302_r1306.D3PD.2010.10.17.v05/
user.kjohns.mc09_7TeV.107672.AlpgenJimmyZtautauNp2_pt20.merge.AOD.e529_s765_s767_r1302_r1306.D3PD.2010.10.17.v05/
user.kjohns.mc09_7TeV.107673.AlpgenJimmyZtautauNp3_pt20.merge.AOD.e529_s765_s767_r1302_r1306.D3PD.2010.10.17.v05/
user.kjohns.mc09_7TeV.107674.AlpgenJimmyZtautauNp4_pt20.merge.AOD.e529_s765_s767_r1302_r1306.D3PD.2010.10.17.v05/
user.kjohns.mc09_7TeV.107675.AlpgenJimmyZtautauNp5_pt20.merge.AOD.e529_s765_s767_r1302_r1306.D3PD.2010.10.17.v05/

$single\,\,top$ $single\,\,top$
user.venkat.mc09_7TeV.108340.st_tchan_enu_McAtNlo_Jimmy.merge.AOD.e508_s765_s767_r1302_r1306.D3PD.2010.10.16.v05/
user.venkat.mc09_7TeV.108341.st_tchan_munu_McAtNlo_Jimmy.merge.AOD.e508_s765_s767_r1302_r1306.D3PD.2010.10.16.v05/
user.venkat.mc09_7TeV.108342.st_tchan_taunu_McAtNlo_Jimmy.merge.AOD.e508_s765_s767_r1302_r1306.D3PD.2010.10.16.v05/
user.venkat.mc09_7TeV.108343.st_schan_enu_McAtNlo_Jimmy.merge.AOD.e534_s765_s767_r1302_r1306.D3PD.2010.10.16.v05/
user.venkat.mc09_7TeV.108344.st_schan_munu_McAtNlo_Jimmy.merge.AOD.e534_s765_s767_r1302_r1306.D3PD.2010.10.16.v05/
user.venkat.mc09_7TeV.108345.st_schan_taunu_McAtNlo_Jimmy.merge.AOD.e534_s765_s767_r1302_r1306.D3PD.2010.10.16.v05/
user.venkat.mc09_7TeV.108346.st_Wt_McAtNlo_Jimmy.merge.AOD.e508_s765_s767_r1302_r1306.D3PD.2010.10.16.v05/

$diboson$ $diboson$
user.venkat.mc09_7TeV.107100.AlpgenJimmyWWlnulnuNp0.merge.AOD.e536_s765_s767_r1302_r1306.D3PD.2010.10.16.v05/
user.venkat.mc09_7TeV.107101.AlpgenJimmyWWlnulnuNp1.merge.AOD.e536_s765_s767_r1302_r1306.D3PD.2010.10.16.v05/
user.venkat.mc09_7TeV.107102.AlpgenJimmyWWlnulnuNp2.merge.AOD.e536_s765_s767_r1302_r1306.D3PD.2010.10.16.v05/
user.venkat.mc09_7TeV.107103.AlpgenJimmyWWlnulnuNp3.merge.AOD.e536_s765_s767_r1302_r1306.D3PD.2010.10.16.v05/
user.venkat.mc09_7TeV.107104.AlpgenJimmyWZincllNp0.merge.AOD.e536_s765_s767_r1302_r1306.D3PD.2010.10.16.v05/
user.venkat.mc09_7TeV.107105.AlpgenJimmyWZincllNp1.merge.AOD.e536_s765_s767_r1302_r1306.D3PD.2010.10.16.v05/
user.venkat.mc09_7TeV.107106.AlpgenJimmyWZincllNp2.merge.AOD.e536_s765_s767_r1302_r1306.D3PD.2010.10.16.v05/
user.venkat.mc09_7TeV.107107.AlpgenJimmyWZincllNp3.merge.AOD.e536_s765_s767_r1302_r1306.D3PD.2010.10.16.v05/
user.venkat.mc09_7TeV.107108.AlpgenJimmyZZincllNp0.merge.AOD.e536_s765_s767_r1302_r1306.D3PD.2010.10.16.v05/
user.venkat.mc09_7TeV.107109.AlpgenJimmyZZincllNp1.merge.AOD.e536_s765_s767_r1302_r1306.D3PD.2010.10.16.v05/
user.venkat.mc09_7TeV.107110.AlpgenJimmyZZincllNp2.merge.AOD.e536_s765_s767_r1302_r1306.D3PD.2010.10.16.v05/
user.venkat.mc09_7TeV.107111.AlpgenJimmyZZincllNp3.merge.AOD.e536_s765_s767_r1302_r1306.D3PD.2010.10.16.v05/

Previous Datasets

List of Tags

Newest tag always contains latest updates. Please use those unless otherwise specified. The code is in SVN repository. Links below: A list of tags for specific Athena releases is tabulated:

Athena core util topuser Comment
16.0.3.3.3 00-00-11 00-00-04 00-04-03 added useful scripts
15.6.12.4 00-00-10 00-00-04 00-01-00 use these tags together
15.6.12.7 00-00-11 00-00-04 00-01-03 fix for grid issue on DE, IT sites. Pileup histograms/tables for note III, and fixed highestPtSum
15.6.12.7 00-00-11 00-00-04 00-02-00 QCD tool update with e/mu. Full sample validated for v5 D3PD tag only for D3PD's with new branches and branch names
15.6.13.1 00-00-11 00-00-04 00-02-01 Split histograms into pre/post b-tag
15.6.13.3 00-00-11 00-00-04 00-02-03 run analysis with nominal, jesplus, jesminus settings
16.0.1 00-00-11 00-00-04 00-02-05 macros to make data v. mc comparison and topological likelihood
16.0.1 00-00-11 00-00-04 00-02-08 build likelihood discriminant, extract signal fraction using fitter and estimate sys/stat uncertainties
16.0.1 00-00-11 00-00-04 00-02-13 added hitfit, included topxsec cuts
16.0.1 00-00-11 00-00-04 00-03-00 new ttres cuts
16.0.3.3 00-00-11 00-00-04 00-03-02 fixed and storing truth info, added additional variables to topotree
16.0.3.3.1 00-00-11 00-00-04 00-04-00 rel 16. mc challenge updates, updated reading of branches from new tree, JERProvider tool
16.0.3.3.3 00-00-11 00-00-04 00-04-01 rel 16. lepton sf, multijetJES, MMQCD, scripts & share dirs, new lhood fitter
16.0.3.3.3 00-00-11 00-00-04 00-04-02 rel 16. bug-fix in jes


Backward compatibility for older ( < v5) D3PD

  • With topuser tags >= 00-02-00, it is possible to use older D3PD's by enabling a switch in the topanalysis.config. By default (top.D3PDVersion: 5). Set it equal to a version number (>=2) as shown below.
        top.D3PDVersion: 2
        

HowTo

Extras

  • D0 Color Scheme
  • Binning for basic plots
  • Alternate scheme used in ICHEP 2010
        color_index=5;  // diboson
        color_index=92;   // W+j
        color_index=95;  // Z+j
        color_index=62;   // sigle top
        color_index=619;   // other
        ttbar is empty with a black line.
        
  • JES calculation
          Method to scale jets and correct MET
          pxJetsBefore = Sum(jet_px_before)
          Scale the jet 4vec (keep the sign of px,py,pz components same)
          pxJetsAfter = Sum(jet_px_after)
          DeltaPx = pxJetsAfter - pxJetsBefore
          Old_MEx = -Sum(px_allobjs) = -Sum(jet_px_before) - Sum(px_all_other_objs)
          New_MEx = -Sum(jet_px_after) - Sum(px_all_other_objs)
                  = -pxJetsAfter - Sum(px_all_other_objs)
                  = -(DeltaPx + pxJetsBefore) - Sum(px_all_other_objs)
                  = -DeltaPx + Old_MEx
              
          Similarly find New_MEy; New_MET = sqrt(New_MEx^2 + New_MEy^2)
      
          Old_SumET = Sum(abs(pt_all_objects)) = Sum(abs(jets_pt)) + Sum(abs(pt_of_other_objs))
          New_SumET = Sum(abs(jets_pt_new)) + Sum(abs(pt_of_other_objs))
                    = Sum(scaleF *abs(jets_pt)) + Sum(abs(pt_of_other_objs))
                    = [scaleF * Sum(abs(jets_pt))] + Sum(abs(pt_of_other_objs))
                    = [(1 +- delta) * Sum(abs(jets_pt))] + Sum(abs(pt_of_other_objs))
                    = Old_SumET +- [delta * Sum(abs(jets_pt))]
        

-- VenkateshKaushik - 24-Jun-2010

Edit | Attach | Watch | Print version | History: r75 < r74 < r73 < r72 < r71 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r72 - 2011-03-08 - VenkateshKaushik
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

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