Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
3e7ffd8
Run3 style
Feb 2, 2024
5e38595
2022 datafile & NanoAOD changes
Feb 2, 2024
0f5f699
2022 datafile added
Feb 2, 2024
156d6a0
nano_changes.patch added
Feb 2, 2024
cfddb9b
lep*info added
Feb 2, 2024
2976f96
keep passtrig evts
Feb 4, 2024
941d0e8
Update post_proc.py
YujiLee301 Feb 4, 2024
ad9011c
- Added file "Input_2022.yml" and linked with post-proc.py
ram1123 Feb 5, 2024
a23d287
Indentation update in "H4LTools.cc"
ram1123 Feb 5, 2024
369a0be
Added keep and drop for data
ram1123 Feb 5, 2024
da714e3
mass4l initalization fixed
Feb 6, 2024
6d1f889
add gen cutflow
Feb 7, 2024
30a82a8
Update GenAnalysis.cc
YujiLee301 Feb 13, 2024
e31782b
fix njet initializing
Feb 16, 2024
cdcb835
PU weight implemented
Feb 16, 2024
b9410e6
Update README
Feb 26, 2024
e20f2d1
Fix conflict
ram1123 Mar 1, 2024
dbe1dc2
Fix conflict
ram1123 Mar 1, 2024
7cca538
add finalState flag and optimized evt keeping
Mar 5, 2024
48243e6
- Updated how condor job identifies data and MC
ram1123 Mar 9, 2024
35c98bb
Merge branch 'HZZ_Analysis_Run3' of github.com:ram1123/nanoAOD_skim i…
ram1123 Mar 9, 2024
050ee4a
Fix: Size of output root file
ram1123 Mar 1, 2024
706d991
Fix merge conflict
ram1123 Feb 28, 2024
04802ce
Fix cherry-pick conflict
ram1123 Feb 28, 2024
a2bd5af
Updated directory structure for condor jobs
ram1123 Mar 10, 2024
d597e5c
Set KeepIt True
YujiLee301 Mar 25, 2024
5ed1ca7
GENlep fixed
May 30, 2024
0e286d0
add puppiMET
May 30, 2024
15bc4d0
add EvtNum branch
May 30, 2024
4817789
add Weight
May 30, 2024
5acf386
Update BDT cut in Input_2022.yml
YujiLee301 Jun 3, 2024
e318533
PUID fixed
Jun 7, 2024
143e51e
Merge branch 'HZZ_Analysis_Run3' of github.com:ram1123/nanoAOD_skim i…
Jun 7, 2024
0903204
Update Input_2022.yml
YujiLee301 Jun 12, 2024
ee51045
Merge branch 'HZZ_Analysis_Run3' into HZZ_Analysis_Merge
ram1123 Dec 3, 2024
ac051d0
Fix bug
ram1123 Dec 3, 2024
1d69028
Removed json file, where we were saving cut-flow information
ram1123 Dec 3, 2024
a8852ae
Updated indentation
ram1123 Dec 3, 2024
ad700ea
Removed unwanted lines
ram1123 Dec 3, 2024
9860511
Fix some bugs
ram1123 Dec 3, 2024
27160b1
some updates to fix seg fault. Still when I run multiple times on sam…
ram1123 Dec 4, 2024
cbe318e
Added missing info from Run-3 branch: Will clean in next commit
ram1123 Dec 4, 2024
3f98a41
Fixed some seg fault
ram1123 Dec 4, 2024
9338864
Updated cut-flow
ram1123 Dec 4, 2024
c08e898
Updated the branch names
ram1123 Dec 4, 2024
e1fb785
bugg fix
Anusreevijay769 Dec 4, 2024
453113b
Running fine for 2018, but not with 2022
ram1123 Dec 4, 2024
3ed9abd
- GEN and FSR bug fix
ram1123 Dec 5, 2024
33091bf
Added text file that contains run-3 4l sample and updated name of 2l2…
ram1123 Dec 5, 2024
c0b9272
added if condition for the MC
ram1123 Dec 5, 2024
1e08208
updated keep and drop
ram1123 Dec 5, 2024
9715fde
Updated missing branches
ram1123 Dec 5, 2024
ff55cea
added more missing branch
ram1123 Dec 5, 2024
a6c5024
Update docs
ram1123 Dec 5, 2024
df63d3b
Update docs
ram1123 Dec 5, 2024
85f0ae7
Added some of missing branch and readjust the position of branches
ram1123 Dec 5, 2024
50efc92
Updated argument and python path for the condor job
ram1123 Dec 6, 2024
067f821
updated README
ram1123 Dec 6, 2024
954b034
update the title of branch and the inspectNanoFile.py from https://gi…
ram1123 Dec 6, 2024
ae9700f
- Fixed the missing var bug
ram1123 Dec 6, 2024
e989e13
- Bug-fix: cut-flow histogram for 2l2nu
ram1123 Dec 9, 2024
1a1aaea
Added example condor config files
ram1123 Dec 9, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -173,3 +173,4 @@ cutFlow.json
yaml-cpp/
nanoAOD_skim.wiki/
*.bak
.__afs*
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ nanoAOD skiming code for H->ZZ->4l/2l2Q/2l2nu studies.
To setup the code, download the setup script and run it. As it will download four GitHub repository using ssh link, so it will ask for the password. The details of the `setup.sh` script is given in this [README.md](docs/README.md) file.

```bash
wget https://raw.githubusercontent.com/ram1123/nanoAOD_skim/refs/heads/HZZ_Analysis/setup.sh
wget https://raw.githubusercontent.com/ram1123/nanoAOD_skim/refs/heads/HZZ_Analysis_Merge/setup.sh
source setup.sh
```

Expand All @@ -26,7 +26,8 @@ In the file [condor_setup_lxplus.py](scripts/condor/condor_setup_lxplus.py), spe
```bash
cd $CMSSW_BASE/src/PhysicsTools/NanoAODTools/python/postprocessing/analysis/nanoAOD_skim
# Use the arguments that you need.
python3 scripts/condor/condor_setup_lxplus.py --input_file sample_list_v9_2018.dat
python3 scripts/condor/condor_setup_lxplus.py --input_file input_data_files/sample_list_v9_2018.dat --submission_name test --condor_queue tomorrow --WithSyst --condor_file_name 'test_job' --channel "2l2v" --debug

# Set proxy before submitting the condor jobs.
voms-proxy-init -voms cms --valid 200:00
condor_submit <Files-created-from-above-command>.jdl
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions config/ExampleInputFileList_4l_run3.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/store/mc/Run3Summer22NanoAODv12/GluGluHtoZZto4L_M-125_TuneCP5_13p6TeV_powheg2-JHUGenV752-pythia8/NANOAODSIM/130X_mcRun3_2022_realistic_v5-v2/2520000/dcae7632-2ea5-4832-80f0-de7d45837a7f.root
4 changes: 2 additions & 2 deletions config/Input_2018.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ Higgscut:
Electron:
pTcut: 25 #7
Etacut: 2.1 #2.5
#Sip3dcut: 4
Sip3dcut: 4
Loosedxycut: 0.045 #0.5
Loosedzcut: 0.2 #1
ttH:
Expand All @@ -128,7 +128,7 @@ Muon:
pTcut: 25 #5

Etacut: 2.4
#Sip3dcut: 4
Sip3dcut: 4
Loosedxycut: 0.045 #0.5
Loosedzcut: 0.2 #1
Tightdxycut: 0.045 #0.2
Expand Down
30 changes: 30 additions & 0 deletions config/Input_2022.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,33 @@ Jet:
Medium: 0.2770
Tight: 0.7264


HZZ2l2q:
Leading_Lep_pT: 40
SubLeading_Lep_pT: 24
Lep_eta: 2.4
MZLepcut:
down: 60
up: 120

HZZ2l2nu:
Leading_Lep_pT: 25.0
SubLeading_Lep_pT: 25.0
Lep_eta: 2.5
Pt_ll: 10.0
M_ll_Window: 15.0
dPhi_jetMET: 0.0
MZLepcut:
down: 60.0
up: 120.0


inputdataNPV: "data/pileupHistogram-Cert_Collisions2022_355100_362760_GoldenJson-13p6TeV-69200ub-99bins.root"
inputdataNPVup: "data/pileupHistogram-Cert_Collisions2022_355100_362760_GoldenJson-13p6TeV-72400ub-99bins.root"
inputdataNPVdown: "data/pileupHistogram-Cert_Collisions2022_355100_362760_GoldenJson-13p6TeV-66000ub-99bins.root"

"outputdataNPV": "data/pileupHistogram_2022.root"
outputdataNPVup: "data/pileupHistogram_2022up.root"
outputdataNPVdown: "data/pileupHistogram_2022down.root"

PUweightHistoName: "pileupWeight"
248 changes: 248 additions & 0 deletions config/branch_config.py

Large diffs are not rendered by default.

46 changes: 46 additions & 0 deletions data/Run3_2022_LHC_Simulation_10h_2h_cfi.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
probFunctionVariable = [
0, 1, 2, 3,
4, 5, 6, 7, 8,
9, 10, 11, 12, 13,
14, 15, 16, 17, 18,
19, 20, 21, 22, 23,
24, 25, 26, 27, 28,
29, 30, 31, 32, 33,
34, 35, 36, 37, 38,
39, 40, 41, 42, 43,
44, 45, 46, 47, 48,
49, 50, 51, 52, 53,
54, 55, 56, 57, 58,
59, 60, 61, 62, 63,
64, 65, 66, 67, 68,
69, 70, 71, 72, 73,
74, 75, 76, 77, 78,
79, 80, 81, 82, 83,
84, 85, 86, 87, 88,
89, 90, 91, 92, 93,
94, 95, 96, 97, 98,
99]


probValue = [
7.075550618391933e-8, 1.8432226484975646e-7, 4.6156514471969593e-7, 0.0000011111611991838491,
0.0000025719752161798103, 0.000005724865812608344, 0.000012255841383374045, 0.000025239403069596116, 0.00005001054998201597,
0.00009536530158990567, 0.00017505633393457624, 0.00030942214916825035, 0.0005268123536229287, 0.0008642843968521786,
0.0013669182280399903, 0.0020851167548246985, 0.0030695148409245446, 0.004363635945105083, 0.005995143197404548,
0.007967247822222358, 0.010252302872826594, 0.01278957659177177, 0.015488544412469806, 0.01823784978331645,
0.020918669702105028, 0.023420019399650906, 0.025652949149203495, 0.027560835627835043, 0.02912397347687914,
0.030358091266301533, 0.03130778480604892, 0.03203676872496023, 0.0326170853351521, 0.03311902652393314,
0.033602777248239, 0.0341120235754556, 0.03466927947785801, 0.03527261707506484, 0.035893786618889145,
0.03647817900850185, 0.036947435730750315, 0.03720550450678737, 0.037148460727673235, 0.03667753703450604,
0.03571377296329832, 0.034211859754226276, 0.032170439241889726, 0.029636506070368274, 0.02670262519076345,
0.023497154911314072, 0.020169158697337236, 0.016870783471647905, 0.013740289679427057, 0.010888563843704815,
0.008390977574442656, 0.006285186751143873, 0.004574246293656772, 0.003233538335807419, 0.002219622271900557,
0.0014792038980537092, 0.0009568560481315006, 0.0006007171037926386, 0.00036596934105178995, 0.0002163349104153549,
0.00012407362512604619, 0.0000690356949524181, 0.000037263645547231494, 0.00001951170588910065, 0.000009910336118978026,
0.0000048826244075428666, 0.0000023333596885075797, 0.0000010816029570543702, 4.863048449289416e-7, 2.1208148308081624e-7,
8.97121135679932e-8, 3.6809172420519874e-8, 1.4649459937201982e-8, 5.655267024863598e-9, 2.117664468591336e-9,
7.692038404370259e-10, 2.7102837405697987e-10, 9.263749466613295e-11, 3.071624552355945e-11, 9.880298997379985e-12,
3.0832214331312204e-12, 9.33436314183754e-13, 2.7417209623761203e-13, 7.813293248960901e-14, 2.1603865264197903e-14,
5.796018523167997e-15, 1.5088422256459697e-15, 3.811436255838504e-16, 9.342850737730402e-17, 2.2224464483477953e-17,
5.130498608124184e-18, 1.1494216669980747e-18, 2.499227229379666e-19, 5.2741621866055994e-20, 1.080281961755894e-20,
2.1476863811171814e-21]
Loading