Skip to content

bartokm/ggAnalysis

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

Current production tag : V08_00_11_01

Newest tag for testing :

Note that the current head version can be run with CMSSW_8_0_11

To work with CMSSW_8_0_11 and V08_00_11_01, you do :

cd CMSSW_8_0_11/src
cmsenv
setenv CMSSW_GIT_REFERENCE /cvmfs/cms.cern.ch/cmssw.git.daily
git cms-init
git remote add btv-cmssw https://github.com/cms-btv-pog/cmssw.git
git fetch --tags btv-cmssw
git cms-merge-topic cms-btv-pog:BoostedDoubleSVTaggerV3-WithWeightFiles-v1_from-CMSSW_8_0_8_patch1
git remote add -f -t ecal_smear_fix_80X emanueledimarco https://github.com/emanueledimarco/cmssw.git
git cms-addpkg EgammaAnalysis/ElectronTools
git checkout -b from-52f192a 52f192a
cd EgammaAnalysis/ElectronTools/data
git clone -b ICHEP2016_v2 https://github.com/ECALELFS/ScalesSmearings.git
cd ../../../
git cms-merge-topic -u cms-met:CMSSW_8_0_X-METFilterUpdate
git clone https://github.com/cmkuo/HiggsAnalysis.git
git clone -b V08_00_11_01 https://github.com/cmkuo/ggAnalysis.git
scram b -j 10

To work with CMSSW_8_0_11 and V08_00_11_00, you do :

cd CMSSW_8_0_11/src
cmsenv
setenv CMSSW_GIT_REFERENCE /cvmfs/cms.cern.ch/cmssw.git.daily
git cms-init
git remote add btv-cmssw https://github.com/cms-btv-pog/cmssw.git
git fetch --tags btv-cmssw
git cms-merge-topic cms-btv-pog:BoostedDoubleSVTaggerV3-WithWeightFiles-v1_from-CMSSW_8_0_8_patch1
git remote add -f -t ecal_smear_fix_80X emanueledimarco https://github.com/emanueledimarco/cmssw.git
git cms-addpkg EgammaAnalysis/ElectronTools
git checkout -b from-277de3c 277de3c
cd EgammaAnalysis/ElectronTools/data
git clone -b ICHEP2016_approval_7p65fb https://github.com/emanueledimarco/ScalesSmearings.git
cd ../../../
git cms-merge-topic -u cms-met:CMSSW_8_0_X-METFilterUpdate
git clone https://github.com/cmkuo/HiggsAnalysis.git
git clone -b V08_00_11_00 https://github.com/cmkuo/ggAnalysis.git
scram b -j 10

To work with CMSSW_8_0_10, you do:

cd CMSSW_8_0_10/src
cmsenv
setenv CMSSW_GIT_REFERENCE /cvmfs/cms.cern.ch/cmssw.git.daily
git cms-init
git remote add btv-cmssw https://github.com/cms-btv-pog/cmssw.git
git fetch --tags btv-cmssw
git cms-merge-topic cms-btv-pog:BoostedDoubleSVTaggerV3-WithWeightFiles-v1_from-CMSSW_8_0_8_patch1
git cms-merge-topic -u matteosan1:smearer_76X
git clone https://github.com/cmkuo/HiggsAnalysis.git
git clone -b V08_00_10_00 https://github.com/cmkuo/ggAnalysis.git
scram b -j 10

To work with CMSSW_7_6_3_patch2, you do:

cd CMSSW_7_6_3_patch2/src
cmsenv
git cms-merge-topic -u matteosan1:smearer_76X
git clone https://github.com/cmkuo/HiggsAnalysis.git
git clone -b V07_06_03_01 https://github.com/cmkuo/ggAnalysis.git
scram b -j 10

To work with CMSSW_7_4_16, you do:

cd CMSSW_7_4_16/src
cmsenv
setenv CMSSW_GIT_REFERENCE /cvmfs/cms.cern.ch/cmssw.git.daily
git cms-init
git cms-merge-topic matteosan1:smearer
git clone https://github.com/cms-jet/JetToolbox JMEAnalysis/JetToolbox
git clone https://github.com/cmkuo/HiggsAnalysis.git
git clone -b V07-04-16-02 https://github.com/cmkuo/ggAnalysis.git
scram b -j 10

The above code stores the decision in 64 integer. Each bit represents a decision
for ELECRON ID: 5 IDs (Veto, Loose, Medium, Tight and HEEP) so only 5 bits are imp for us (59 bits of this integer we are not using so may be we can change that to 16 bit integer later)
Representing that integer in 5 bits: b4 b3 b2 b1 b0
b0: Veto; b1: Loose; b2: Medium; b3: Tight and b4: HEEP
To access the decision for
(a) veto: eleIDbit[]>>0&1 ---> gives 0 or 1. if 0--> this eID is failed. if 1--> this eID is passed
(b) Loose: eleIDbit[]>>1&1
(c) Medium: eleIDbit[]>>2&1
(d) Tight: eleIDbit[]>>3&1
(e) HEEP: eleIDbit[]>>4&1

for photons it is done the same way: it has 3 IDs
so 3 bits represent the decision
Representing that integer in 3 bits: b2 b1 b0
b0: Loose; b1: Medium; b2: Tight
To access the decision for
(a) Loose: phoIDbit[]>>0&1 ---> gives 0 or 1. if 0--> this phoID is failed. if 1--> this phoID is passed
(b) Medium: phoIDbit[]>>1&1
(c) Tight: phoIDbit[]>>2&1

to access the MC status flag with GEN particles
(a) fromHardProcessFinalState : mcStatusFlag[]>>0&1 ---> gives 0 (no) or 1 (yes).
(b) isPromptFinalState : mcStatusFlag[]>>1&1 ---> gives 0 (no) or 1 (yes).
(c) fromHardProcessBeforeFSR : mcStatusFlag[]>>2&1 ---> gives 0 (no) or 1 (yes).

Packages

No packages published

Languages

  • C++ 78.6%
  • Python 21.4%