--
JavierBrochero - 2015-09-23
Inclusive ttbar Cross Section in the Single Lepton Channel (Korean Group)
This twiki contains all the information about this analysis.
Manpower:
- Tae Jeong Kim (Profesor)
- Javier Brochero (Post-Doc)
- Dooyeon Gyun (Phd student)
- Ari Lee (Master student)
On this page:
- Workflow
- Code
- Tasks
- Additional material
1. Workflow
- Flat-ntuple production: It is done using CATTools. the codes are located at:
- CATTools/CatAnalyzer/plugins/TtbarSingleLeptonAnalyzer.cc: It contains the basic selection of the objects as electrons, muons, jets, b-tagged jets, etc.
- CATTools/CatAnalyzer/prod/ttbarSingleLeptonAnalyzer_cfg.py: Python config file.
- CATTools/CatAnalyzer/prod/create-batch: It sends the jobs to condor (tested only in KISTI).
- Flat-ntuple analyzer: After make the first object selection and save the output in a flat-Trees, the histograms are produced with a code wrote in C++. The code is located in:
- https://github.com/brochero/TopCodeljets/blob/master/TreeReader.C
- The output of TreeReader.C is divided in two files:
- Root file with all the RAW histograms (fully normalized), and
- *.h file with all the yields.
- Final histograms production: In this step the final plots with all the style requirements are produced. Code is located at
- https://github.com/brochero/TopCodeljets/blob/master/Plot.*
- Yield tables, systematic variations and cross section (C&C): (Work in progress) Using the output from TreeReader.C, a root macro produces the tables of yields and systematic variations in LaTeX format. Code in:
- https://github.com/brochero/TopCodeljets/blob/master/*******
2. Code
In this section you will find some general comments about the code. More details can be found in README of each package.
1. Flat-ntuples production
- Check the TtbarSingleLeptonAnalyzer.cc code. Here you can modify/include basic cuts. The output of this step includes all the events that contain only one lepton passing the selection requirements.
- Compile with:
% scram b -j 20
- Test the code using only one sample. Go to prod directory and run ttbarSingleLeptonAnalyzer_cfg.py
cmsRun ttbarSingleLeptonAnalyzer_cfg.py
In this config file you should specify if you are running over DATA or MC:
#------------------------------------------------------------------
#------------------------------------------------------------------
# Data or MC Sample
runOnMC = True
# runOnTTbarMC = 0, No ttbar
# runOnTTbarMC = 1, ttbar Signal
# runOnTTbarMC == 2, ttbar Background
runOnTTbarMC = 1
#------------------------------------------------------------------
#------------------------------------------------------------------
-
- runOnMC: True if the sample is MC; False if it is DATA.
- runOnTTbarMC: 0 to run all MC except ttbar; 1 ttbar signal; 2 ttbar background.
Comment this part when you are running over MC.
# json file
#import FWCore.PythonUtilities.LumiList as LumiList
#process.source.lumisToProcess = LumiList (filename = 'Cert_246908-251883_13TeV_PromptReco_Collisions15_JSON_v2.txt').getVLuminosityBlockRange()
2. Histograms production
- Download the git repository:
% git clone https://github.com/brochero/TopCodeljets.git
- Check the correct path of all input/output directories.
- To compile:
% make
- It creates a TreeReader.run. You can check the how to use it with
% ./TreeReader.run -h
- To run, the most recommended way is
% ./TreeReader.run -i Tree_LepJets_v7-3-6_Spring15-bx50_40pb-1_WJets -o NewPlots _v0
Where:
- -i: Input file. remove the ".root"
- -o: additional name to the output
- The file name in this part of the code is the main axis. You mos be careful with the structure name. To avoid any inconvenient, I suggest to use the follow structure:
-
Tree_LepJets_
"additional info of the sample"_
"Luminosity in pb-1"_
"SAMPLE".root
- Example:
=Tree_LepJets_v7-3-6_Spring15-bx50_40pb-1_ttbar-PowhegPythia.root
-
Tree_LepJets_v7-3-6_Spring15-bx50_40pb-1_DataSingleEG.root
-
Tree_LepJets_v7-3-6_Spring15-bx50_40pb-1_WW.root=
- Where
- v7-3-6 is the CATTools version.
- Spring15-bx50 is the MC info.
- 40pb-1 Luminosity to use in the MC normalization.
3. Task
Here you will find some of the most urgent task which must be performed for the analysis. Please, feel free to put your name in those in which you can contribute and/or add another tasks.
- b-tagging code: Implementation of SF_b-tag. (Javier Brochero)
- b-tag efficiencies for each MC process. (Javier Brochero and ????)
- Comparison between METPF, METnoHF and PuppiMET (Should we add all of them to our ntuples?). (Dooyeon Gyun ????)
- Optimization of the event selection cuts. (Ari Lee)
- Production of the file list for every CATNtuple production. (Ari Lee)
- Tag & Pro package to estimate SF_ID_ISO and SF_Trigger. (Dooyeon Gyun ????)
- QCD Daata-Driven method. (Javier Brochero and ????)
- Analysis note. (????)
- Code to produce yields (C&C). (Javier Brochero)
- CMS Fireworks (to display some interesting events. Link HERE). (Ari Lee ????)
- PUPPI isolation studies. (Javier Brochero)
- Code to normalize MC to the available Luminosity (automatization). (Dooyeon Gyun and Ari Lee????)
- Check Br on MADGRAPH ttbar sample. (????)
- .....