Skip to content

Commit

Permalink
fixing events number for preBPix
Browse files Browse the repository at this point in the history
  • Loading branch information
Aliya Nigamova committed Jan 22, 2025
1 parent 91f9104 commit 804fd74
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 26 deletions.
12 changes: 6 additions & 6 deletions cmsdb/campaigns/run3_2023_preBPix_nano_tau_skim_v2/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
processes=[procs.data_e],
keys=['/EGamma0_Run2023C_v1', '/EGamma0_Run2023C_v2', '/EGamma0_Run2023C_v3', '/EGamma1_Run2023C_v1', '/EGamma1_Run2023C_v2', '/EGamma1_Run2023C_v3'],
n_files=38 + 11 + 13 + 38 + 11 + 13,
n_events=30038670 + 7890231 + 9817005 + 30010181 + 7891642 + 9818391,
n_events= 67598081 + 17233307 + 21993048 + 67530273 + 17230822 + 21987586,
aux={
'era': 'C',
'jec_era': 'Cv123'
Expand All @@ -32,7 +32,7 @@
processes=[procs.data_e],
keys=['/EGamma0_Run2023C_v4', '/EGamma1_Run2023C_v4'],
n_files=94 + 94,
n_events= 72118251 + 72080022,
n_events= 160108119 + 159997174,
aux={
'era': 'C',
'jec_era': 'Cv4'
Expand All @@ -46,7 +46,7 @@
processes=[procs.data_mu],
keys=['/Muon0_Run2023C_v1', '/Muon0_Run2023C_v2', '/Muon0_Run2023C_v3', '/Muon1_Run2023C_v1', '/Muon1_Run2023C_v2', '/Muon1_Run2023C_v3'],
n_files=27 + 9 + 11 + 27 + 9 + 11,
n_events= 25754131 + 8049224 + 9788396 + 25717768 + 8050781 + 9787601 ,
n_events= 54715896 + 17063451 + 20015377 + 54621922 + 17059895 + 20010429,
aux={
'era': 'C',
'jec_era': 'Cv123'
Expand All @@ -61,7 +61,7 @@
processes=[procs.data_mu],
keys=['/Muon0_Run2023C_v4', '/Muon1_Run2023C_v4'],
n_files= 75 + 75,
n_events= 71162252 + 71111717,
n_events= 138943783 + 138834244,
aux={
'era': 'C',
'jec_era': 'Cv4'
Expand All @@ -76,7 +76,7 @@
processes=[procs.data_tau],
keys=['/Tau_Run2023C_v1', '/Tau_Run2023C_v2', '/Tau_Run2023C_v3'],
n_files=15 + 5 + 7,
n_events=10255817 + 3607056 + 4585815,
n_events= 14484171 + 5178955 + 6470602,
aux={
'era': 'C',
'jec_era': 'Cv123'
Expand All @@ -92,7 +92,7 @@
processes=[procs.data_tau],
keys=['/Tau_Run2023C_v4'],
n_files= 45,
n_events= 32314548,
n_events= 45176805,
aux={
'era': 'C',
'jec_era': 'Cv4'
Expand Down
10 changes: 5 additions & 5 deletions cmsdb/campaigns/run3_2023_preBPix_nano_tau_skim_v2/ewk.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
processes=[procs.dy_lep],
keys=['/DYto2L_M_50_madgraphMLM'],
n_files=128,
n_events=69079056,
n_events=130559088,
aux=None
)

Expand All @@ -33,7 +33,7 @@
processes=[procs.wj],
keys=['/WtoLNu_madgraphMLM'],
n_files=104,
n_events=38471437,
n_events=191075090,
aux=None,
)

Expand All @@ -43,7 +43,7 @@
processes=[procs.ww],
keys=['/WW'],
n_files=24,
n_events=13287890,
n_events=33507000,
aux=None
)

Expand All @@ -53,7 +53,7 @@
processes=[procs.wz],
keys=['/WZ'],
n_files=12,
n_events=5903382,
n_events=16770000,
aux=None
)

Expand All @@ -63,7 +63,7 @@
processes=[procs.zz],
keys=['/ZZ'],
n_files=2,
n_events=799062,
n_events=2517000,
aux=None
)

Expand Down
26 changes: 13 additions & 13 deletions cmsdb/campaigns/run3_2023_preBPix_nano_tau_skim_v2/top.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
processes=[procs.st_tchannel_t],
keys=['/ST_t_channel_top_4f_InclusiveDecays'],
n_files=6,
n_events=2242994,
n_events=5908000,
aux=None
)

Expand All @@ -26,7 +26,7 @@
processes=[procs.st_tchannel_tbar],
keys=['/ST_t_channel_antitop_4f_InclusiveDecays'],
n_files=3,
n_events=1106961,
n_events=2878000,
aux=None
)

Expand All @@ -36,7 +36,7 @@
processes=[procs.st_twchannel_t_sl],
keys=['/ST_tW_top_LNu2Q'],
n_files=18,
n_events=7590122,
n_events=9650268,
aux=None
)

Expand All @@ -46,7 +46,7 @@
processes=[procs.st_twchannel_t_dl],
keys=['/ST_tW_top_2L2Nu'],
n_files=10,
n_events=4454589,
n_events=4985000,
aux=None
)

Expand All @@ -57,7 +57,7 @@
processes=[procs.st_twchannel_t_fh],
keys=['/ST_tW_top_4Q'],
n_files=9,
n_events=3033233,
n_events=7919000,
aux=None
)

Expand All @@ -67,7 +67,7 @@
processes=[procs.st_twchannel_tbar_sl],
keys=['/ST_tW_antitop_LNu2Q'],
n_files=17,
n_events=7488647,
n_events=9519385,
aux=None
)

Expand All @@ -77,7 +77,7 @@
processes=[procs.st_twchannel_tbar_dl],
keys=['/ST_tW_antitop_2L2Nu'],
n_files=10,
n_events=4385641,
n_events=4907000,
aux=None
)

Expand All @@ -87,7 +87,7 @@
processes=[procs.st_twchannel_tbar_fh],
keys=['/ST_tW_antitop_4Q'],
n_files=9,
n_events=3054459,
n_events=7970000,
aux=None
)
cpn.add_dataset(
Expand All @@ -96,15 +96,15 @@
processes=[procs.st_schannel_t_lep],
keys=['/ST_s_channel_top_4f_leptonDecays'],
n_files=4,
n_events=1446621,
n_events=2588000,
)
cpn.add_dataset(
name="st_schannel_tbar_lep",
id=22120127,
processes=[procs.st_schannel_tbar_lep],
keys=['/ST_s_channel_antitop_4f_leptonDecays'],
n_files=2,
n_events=895742,
n_events=1600000,
)
### TT SAMPLES ###

Expand All @@ -114,7 +114,7 @@
processes=[procs.tt_sl],
keys=['/TTtoLNu2Q'],
n_files= 318,
n_events= 125809500,
n_events= 152653000,
aux=None
)

Expand All @@ -124,7 +124,7 @@
processes=[procs.tt_dl],
keys=['/TTto2L2Nu'],
n_files=111,
n_events=44488239,
n_events=48104000,
aux=None
)

Expand All @@ -134,7 +134,7 @@
processes=[procs.tt_fh],
keys=['/TTto4Q'],
n_files=142,
n_events=46072091,
n_events=104963000,
aux=None
)

Expand Down
4 changes: 2 additions & 2 deletions scripts/read_prodReport_nano.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

parser = argparse.ArgumentParser()
parser.add_argument( '--dir', help='path to the dataset directory where the prodReport_nano.json', default="Muon0_Run2023D_v1")
parser.add_argument( '--eos', help='path to the eos HLepRare directory', default="/eos/cms/store/group/phys_higgs/HLepRare/skim_2024_v2/Run3_2023BPix")
parser.add_argument( '--eos', help='path to the eos HLepRare directory', default="/eos/cms/store/group/phys_higgs/HLepRare/skim_2024_v2/Run3_2023")
args = parser.parse_args()

full_path = args.eos +"/" + args.dir + "/prodReport_nano.json"
Expand All @@ -16,6 +16,6 @@

files = prod_dict["outputs"].keys()
n_files = len(files)
n_events = sum([prod_dict["outputs"][x]["n_selected"] for x in prod_dict["outputs"].keys()])
n_events = sum([(prod_dict["outputs"][x]["n_selected"] + prod_dict["outputs"][x]["n_not_selected"])for x in prod_dict["outputs"].keys()])
print( args.dir ,":\n n_files = ", n_files, "\n n_events = ", n_events )

0 comments on commit 804fd74

Please sign in to comment.