Skip to content

Third release analyses examples #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 51 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
0fba9d7
The TTbarDilep, HWW and ZtauTau Analyses that uses the ROOT ntuples f…
Mar 12, 2025
2f9c382
Remove third release folder in order to organize better the new analyses
Mar 13, 2025
3270ee2
The list of ntuples of the new release to be considered in the analys…
Aug 28, 2024
9de7c94
The TProof lines are commented for one of the previous analyses, the …
Aug 28, 2024
03a71c3
The declaration of the branches we use in the analysis is done here
Aug 28, 2024
cf918a8
We define here the histograms we are going to save in the output file…
Aug 28, 2024
759cd63
The selection criteria is done in this file, we basically apply the d…
Aug 28, 2024
5de1000
We modify the run script to include the TTbarDilep analysis
Aug 28, 2024
3cd20a5
The welcome script is modified to create the otput folders in the ana…
Aug 28, 2024
bbc7af7
The list of histograms to be plotted for the distribution plots and t…
Aug 28, 2024
dbfe2cf
the plotme script is modified to include the TTBarDilep plots and the…
Aug 28, 2024
ebe21c5
This file contains only the information needed to plot the distributi…
Aug 28, 2024
b6fd323
The output root files for data and ttbar_dilep samples coming from th…
Aug 28, 2024
763e682
The addition of the other background processes for the TTbarDilepAnal…
Sep 3, 2024
105b056
The HWW Analysis part is modified to use new release of data (llumi36)
Sep 5, 2024
6c20bf0
The b-tag is applied to find the number of bjets, and some correction…
Sep 6, 2024
6ef4f1e
The addition of the samples for H->WW is done and some modifications …
Sep 8, 2024
e1c53e4
The plotting part is modified to include the plots for HWW
Sep 8, 2024
b03322e
The TTbarDilep analysis is modified to use the central ntuples
Sep 19, 2024
ed4db69
The plotting part is modified to include the changes needed to use th…
Sep 19, 2024
6341949
Some unneded lines were removed
Sep 19, 2024
33c18d9
The addition of the sample for ttbar all had is done
Sep 19, 2024
23533bf
Some commented lines were removed
Sep 20, 2024
45ddd52
The analysis for Ztautau is modified to use the thrid release of data…
Sep 23, 2024
c3588ae
The addition of the lepTrigger and the jet jvt is done for the TTbarD…
Oct 2, 2024
bd91199
The addition of the lepTrigger and the jet jvt is done for the HWWAna…
Oct 2, 2024
837feb0
The TTBarAnalysis is modified to use the new release of data for lumi 36
Oct 2, 2024
09f834d
The lepTrigger and jet jvt is added for ZtautauAnalysis
Oct 2, 2024
70a5118
The plotting tool includes now HWW, Ztautau analyses
Oct 2, 2024
2bbd829
The list of samples are updated for the Ztautau analysis
Oct 2, 2024
47ce4f5
The lepTrigger and the jvt is added, the list of samples is included …
Oct 2, 2024
b2f6000
The lep_isTight is ommited for HWW
Oct 2, 2024
5dff98b
The code is modified in order to use the new release of data
Oct 2, 2024
f70b444
The manual ID and Iso for leptons is removed since this information i…
Oct 5, 2024
0f0b85a
It is added the time of execution to be printed after the analysis pa…
Oct 5, 2024
c14f6fe
It is added the SF_lepTRIGGER and SF_JVT for TTbarDilep Analysis. Som…
Nov 28, 2024
c972c07
The trigMatched variables is added to the HWW analysis.
Feb 12, 2025
a75f03d
The trigMatched variables is added to the ttbardilep analysis
Feb 12, 2025
aa8453e
The trigMatched variables is added for the Ztautau analysis
Feb 12, 2025
567274d
Changes in plotting tool to add the Ztautau analysis
Feb 12, 2025
f147ac8
The files for data15 and data16 names are modified to include the sam…
Feb 12, 2025
2a1c95e
The paths and files to use Ntuples for feb2025 is modified, as well a…
Mar 13, 2025
e07e863
The FTag SacleFactor is added to correct the BTAG Scale factor in the…
Mar 29, 2025
266131c
The FTag SacleFactor is added to correct the BTAG Scale factor in the…
Mar 29, 2025
591fe49
The FTag SacleFactor is added to correct the BTAG Scale factor in the…
Mar 29, 2025
d6bc77b
TTbarAnalysis is modified in order to use the third release
Mar 30, 2025
731d17d
The plotting part is modified to include the samples for TTbarAnalysis
Mar 30, 2025
8d29c2f
The Scale Factor for JVT is included
Mar 31, 2025
a4cf05a
Some missing samples are included in the list of histograms
Mar 31, 2025
29e1785
The single top samples are completed and the mcWeight for those sampl…
Apr 2, 2025
1113232
The diboson scale 1.3 is omitted now because of the third release sam…
Apr 2, 2025
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
421 changes: 227 additions & 194 deletions Analysis/HWWAnalysis/HWWAnalysis.C

Large diffs are not rendered by default.

714 changes: 367 additions & 347 deletions Analysis/HWWAnalysis/HWWAnalysis.h

Large diffs are not rendered by default.

16 changes: 9 additions & 7 deletions Analysis/HWWAnalysis/HWWAnalysisHistograms.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ void HWWAnalysis::define_histograms()
hist_subleadlepz0 = new TH1F("hist_subleadlepz0", "Subleading Lepton z0 impact parameter; z_{0}^{traillep} [mm]; Events / bin", 40, -1, 1);
hist_subleadlepd0 = new TH1F("hist_subleadlepd0", "Trailing Lepton d0 impact parameter; d_{0}^{traillep} [mm]; Events / bin", 40, -1, 1);

// Scaling factors histogram
hist_scale_factors = new TH1F("hist_scale_factors", "Scale Factors; SF type; SF", 4, 0, 4);

}

////////////////////////////////////////////////////////////////////////////////
Expand All @@ -80,8 +83,6 @@ void HWWAnalysis::FillOutputList()
GetOutputList()->Add(histI_mt);




// Add Leading Lepton histograms
GetOutputList()->Add(hist_leadleptpt);
GetOutputList()->Add(hist_leadlepteta);
Expand Down Expand Up @@ -113,10 +114,12 @@ void HWWAnalysis::FillOutputList()
GetOutputList()->Add(histI_n_bjets);



GetOutputList()->Add(hist_leadjet_pt);
GetOutputList()->Add(hist_leadjet_eta);

// Scaling factors histogram
GetOutputList()->Add(hist_scale_factors);

}

////////////////////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -172,13 +175,12 @@ void HWWAnalysis::WriteHistograms()
histI_n_jets->Write();
histI_n_bjets->Write();





hist_leadjet_pt->Write();
hist_leadjet_eta->Write();

// Scaling factors histogram
hist_scale_factors->Write();

}

void HWWAnalysis::FillHistogramsGlobal( double m, float w , TString s)
Expand Down
439 changes: 263 additions & 176 deletions Analysis/HWWAnalysis/main_HWWAnalysis.C

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions Analysis/HWWAnalysis/run.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash

start_time=$(date +%s)

## small script to run the analysis
analysis="main_HWWAnalysis"

Expand Down Expand Up @@ -34,3 +37,13 @@ $analysis($parallel,$option)
EOF
##
echo "end of ROOT execution"

end_time=$(date +%s)
execution_time=$((end_time - start_time))

# Calculate hours, minutes, and seconds
hours=$((execution_time / 3600))
minutes=$(((execution_time % 3600) / 60))
seconds=$((execution_time % 60))

echo "Execution time: ${hours}h ${minutes}m ${seconds}s"
Loading